Page 1 of 1
Change OK to metric
Posted: Thu Sep 17, 2020 9:54 am
by coitop
Hello,
I would like to graph the availability of hosts in grafana. I would use the output of check_icmp or check_ping commands, but the return is "OK". Anyone knows how I can turn this "OK" in percentage? 100% for up and 0% for down so I can graph it?
Thank you
Re: Change OK to metric
Posted: Thu Sep 17, 2020 2:52 pm
by scottwilkerson
check_ping should return performance data where the pl metric is what you are looking for, it shows the percent of packet loss
Re: Change OK to metric
Posted: Fri Sep 18, 2020 4:20 am
by coitop
scottwilkerson wrote:check_ping should return performance data where the pl metric is what you are looking for, it shows the percent of packet loss
Packet loss is not exactly availability. I understand what you say, but if I lose 1 ping out of 3, it is not unavailability, but it is packet loss. I want to graph the availability, not the pl that might occur if I lose 1 ping packet out of 3 or 5, which I test in every check.
Re: Change OK to metric
Posted: Fri Sep 18, 2020 6:58 am
by scottwilkerson
coitop wrote:scottwilkerson wrote:check_ping should return performance data where the pl metric is what you are looking for, it shows the percent of packet loss
Packet loss is not exactly availability. I understand what you say, but if I lose 1 ping out of 3, it is not unavailability, but it is packet loss. I want to graph the availability, not the pl that might occur if I lose 1 ping packet out of 3 or 5, which I test in every check.
How are you sending the data to Grafana?