Thanks brian .. that answers most of my questions ... Regarding using [15m] in the increase we have purposely kept it [2m] that runs for 15 minutes since we are really tracking something continuously to be true all the time to trigger an alert as opposed to only once .
On Mon, Mar 9, 2020 at 5:07 AM Brian Candler <b.cand...@pobox.com> wrote: > BTW, I think that rule would be more robust against missing values by using > > expr: increase(metric_name[15m]) == 0 > > instead of using "for:". If you use "for:" then the condition must be > true for every single evaluation, and a single missed sample may reset the > alert. > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/f62a0e3a-8f71-48aa-a5f3-b86f16be57b2%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/f62a0e3a-8f71-48aa-a5f3-b86f16be57b2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAHg4STyYZeT4hc1Ma8-5jgfpkPeD2R6VU82Lzdp90UfdHhE1NQ%40mail.gmail.com.