On Tuesday, 28 April 2020 11:03:45 UTC+1, piyush sharma wrote:
>
> Is there any way. I can set no data condition as alerting .
>

You can use "or" to give a default value, e.g.

(.... expr ....) or (up * 99)

(assuming that 'expr' and 'up' have the same set of labels - if not, then 
you can use grouping terms).  See also the tail end of
https://www.robustperception.io/existential-issues-with-metrics

Or you can alert using the absent() function: see
https://www.robustperception.io/absent-alerting-for-jobs

Maybe also useful:
https://www.robustperception.io/booleans-logic-and-math
https://www.robustperception.io/combining-alert-conditions

-- 
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/9aa379c2-9a95-4f56-a7a0-1c6483e17fb0%40googlegroups.com.

Reply via email to