That's a complicated expression.

I suggest you paste the whole expression into the promql browser (i.e. 
prometheus port 9090) and look at the graph.  If you see gaps in the graph, 
that's where the expression does not have any value, and that's where the 
alert is getting resolved.

Note that while you can configure prometheus to require an alert to be 
firing for a certain amount of time before generating an alert ("for: 5m"), 
you cannot configure it for an alert to be *not firing* for a certain 
amount of time before it is resolved.  As soon as your expression does not 
generate a value, even for one evaluation cycle, it will be considered 
resolved.

-- 
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/de883b91-8e96-4538-b911-4afdbb083dc6%40googlegroups.com.

Reply via email to