--
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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d4e7b6e1-43de-4b01-aa1b-f54c15c7a207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The total number of 1s:sum_over_time(probe_success[1m])The total number of 0s:count_over_time(probe_success[1m]) - sum_over_time(probe_success[1m])
On Tue, Sep 5, 2017 at 6:20 AM, Emmanuel Yong <yongem...@gmail.com> wrote:
Dear All,Currently trying to count number of blackbox probe_success = 0 over a period of 1 minute but seeing data inaccuracy. Using the below inside Prometheus rulesprobe_success_nonzero = probe_success == 1probe_success_zero = probe_success == 0If i use count_over_time(probe_success}[1m]) i can see total of probe success in 1 minute but it does not show me how many is 1 or how many is 0how should i go about achieving thisThank You,Emmanuel
--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
--
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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e7e0d9d3-4255-4224-a149-5cc94ea08f20%40googlegroups.com.
What I use for grafana is this query:avg_over_time(probe_success[$__interval])Then I set the y axis to percent 0.0 - 1.0On Sep 5, 2017 12:44, "Emmanuel Yong" <yongem...@gmail.com> wrote:--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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e7e0d9d3-4255-4224-a149-5cc94ea08f20%40googlegroups.com.
Hi BenCan explain why put y axis?Or what does the query do?
Thank You
On Tue, 5 Sep 2017, 19:04 Ben Kochie <sup...@gmail.com> wrote:
What I use for grafana is this query:avg_over_time(probe_success[$__interval])Then I set the y axis to percent 0.0 - 1.0On Sep 5, 2017 12:44, "Emmanuel Yong" <yongem...@gmail.com> wrote:--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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e7e0d9d3-4255-4224-a149-5cc94ea08f20%40googlegroups.com.
Thank you Ben for sharing, the above queries helped in achieving packet loss calculation
Thank You
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e7e0d9d3-4255-4224-a149-5cc94ea08f20%40googlegroups.com.