ALERT suddenjumpIF fufutos > 2 * avg_over_time(fufutos [7d])FOR 10m
--
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/4168794b-6050-4e1a-a94b-471317ebb61a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That seems like the right way to do what you're looking for.But, the "proper" thing to do is follow the "symptoms-based alerting" guidelines:The difficulty with what you're trying to do is going to be problematic on multiple levels.* What does 2x the last week mean for your users? You could just set a threshold.* What if last week was bad, it's going to ruin your alerting for this week.* What if the problem is getting worse slowly, this will likely miss it.
On Tue, Jul 25, 2017 at 5:41 AM, JI Ioannidis <jay...@gmail.com> wrote:
How can I express an alert rule such as "if metric X becomes 2 times what its average has been for the last week, and stays there for ten minutes". I tried:ALERT suddenjumpIF fufutos > 2 * avg_over_time(fufutos [7d])FOR 10m(fufutos is my metric, obviously, and I want a different alert for every label combination, hence no labels are selected).It seems to work, but is this the "proper" way of setting up such an alert, or is there some catch that I'm missing / a better way? I assume I can use any of the foo_over_time functions?Thanks,/ji
--
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/4168794b-6050-4e1a-a94b-471317ebb61a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/CABbyFmoBW%2BN5pvGssJe4m%2BD2VUGRE5Vn62-X%3DMPoH8fbTJSdHg%40mail.gmail.com.