--
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 view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8533225b-267c-4dd1-af32-5967966d5156n%40googlegroups.com.
Trying to manipulate alerts with absent() tends to behave badly.
--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/gi8GtrBMMMk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/4adf9702-adbc-43be-837e-794c6e009d2bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/da11741e-52c5-4cf4-baa3-deb3daed7b38n%40googlegroups.com.
Brian, even better - great.Now that you mentioned how count() returns no labels - it relates to another alert rule I was trying to implement.If I wanted to alert anytime a counter is incremented (and have it self resolve after x time), this seems to do it:count(exception_total) - count(exception_total offset 1h){} 0
above returns a zero value when it has been incremented but no labels or useful results otherwise, but this other query I happened upon returns labels and I don't understand whyexception_total unless exception_total offset 1hexception_total{pod="x"} 1exception_total{pod="y"} 1exception_total{pod="z"} 1
--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/gi8GtrBMMMk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8be84911-6b2f-4fdc-a7e7-007ea54de5dan%40googlegroups.com.