Will it work if I alert on foo < 3 and foo exists?

Instead of 'or', if I use and ? So that when telemetry goes missing after
alert, the second condition which checks if the metric is available will
not send the resolution. .


On Tue, May 26, 2020, 5:25 PM Brian Candler <[email protected]> wrote:

> You have to alert on the condition "foo < 3, or foo does not exist".
>
> To make the "does not exist" condition, you must have some other metric
> which *does* exist, for the relevant set of labels.
>
> Then you can alert on something like "(foo < 3) or (bar unless foo)"
>
> - with appropriate on(..) or ignoring(..) between bar and foo, if required.
>
> --
> 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/oUVvsp3IgTE/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/16061c18-255e-43e4-ae0b-55f586ce84dc%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/16061c18-255e-43e4-ae0b-55f586ce84dc%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAJO1_QSku-wG62aVovNbdRXEnOdbm%3DCx7Dty%2Bzwya3ZomgLcDg%40mail.gmail.com.

Reply via email to