hello,I want to know how to calculate the packet loss, what is the calculation expression, through the probe_success indicator?can you help me? thanks!
在 2017年6月24日星期六 UTC+8下午4:51:52,[email protected]写道: > > Hi, > > I've started using Prometheus and blackbox_exporter yesterday. > > I'm trying to display RTT and packet loss for my servers using Grafana. > > However, I've noticed that, when the ping fails, I'm getting the timeout > value I've configured (5 seconds) for the RTT : > > curl "http://localhost:9115/probe?target=1.2.3.4&module=icmpv4" > > > # HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns > lookup in seconds > > # TYPE probe_dns_lookup_time_seconds gauge > probe_dns_lookup_time_seconds 8.812000000000001e-06 > > # HELP probe_duration_seconds Returns how long the probe took to complete > in seconds > # TYPE probe_duration_seconds gauge > probe_duration_seconds *5.000562537* > # HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6 > > # TYPE probe_ip_protocol gauge > probe_ip_protocol 4 > # HELP probe_success Displays whether or not the probe was a success > > # TYPE probe_success gauge > probe_success *0* > > I end up with the following graph : > > > <https://lh3.googleusercontent.com/-wN7bmCAbBwA/WU4nq7vqnNI/AAAAAAAAABU/AzKgiLshTXc1SHkWF3rFIdQ2csHijytdQCLcBGAs/s1600/Screen%2BShot%2B2017-06-24%2Bat%2B10.44.16.png> > Is there any way to have those values considered as zero or null ? > > Thanks ! > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/13cac142-932a-445a-b3e5-ca1431ff23f4%40googlegroups.com.

