Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Bài tập 3

Dùng blackbox exporter 10 web site:

https://github.com

https://google.com

https://yahoo.com

https://prometheus.io/

https://telegram.org/

https://www.facebook.com/

https://itforvn.com/

https://www.linkedin.com

https://tinhte.vn/

https://www.youtube.com/

Dùng module http_2xx của blackbox_exporter cho các website trên.

Sau đó dùng Grafana vẽ 1 chart top 10 web site có thời gian kết nối (probe_duration_seconds) lâu nhất.
Với tables legend (max, avg, current) như bên dưới.

Dùng biến variable của Grafana với cấu trúc sau

query_result(topk(10, avg (probe_duration_seconds [${__range_s}s])) by (instance)))

regex để lấy giá trị của instance .*instance="(.*?)".*


Ví dụ lấy top 5 cpu cao nhất theo thời gian

You might also like