Total number of results for a query

18 views
Skip to first unread message

Jade Foram

unread,
May 22, 2021, 4:06:53 PM5/22/21
to Prometheus Users
I am using blackbox's icmp to check if servers are up/down. In Grafana, I want to create a dashboard that says, for example, 5 of 300 are down. Is that even possible and how would you do that?

Marcelo Magallón

unread,
May 24, 2021, 10:42:11 AM5/24/21
to Jade Foram, Prometheus Users
The number of up targets would be sum (probe_success).

The total number of targets would be count (probe_success).

Depending on how you want to present the data, you can use the stat visualization to show both numbers.

Marcelo
Reply all
Reply to author
Forward
0 new messages