So we have a gauge metric that is just zero or one. Starts at zero, goes
to one when event happens, rarely if ever goes back to zero.
We want to alert after event change 0->1 happens, but have the alert stop
after X time, and not alert indefinitely.
Basically this returns the data of what triggered:
sum by (customer) (event_triggered) > 0
{customer="A"} 1
{customer="B"} 1
{customer="C"} 1
But we want triggered in X past time. I realize rate doesn't work because
it's not a counter... but ideally would want something like this:
sum by (customer) (rate(event_triggered[5m])) > 0
{customer="A"} .003
i.e. just return the most recent one that triggered in the past 5 minutes
and have it stop alerting once it returns to base (which is now 1)
Thanks
Dan
--
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/18e0eb3a-9c6c-4f6c-93c4-bb3d1dc28deen%40googlegroups.com.