Hi team,

We are trying to setup an alert using absent and regex on label values where

If No data received from any of the 4 sources ( SOURCE-10, SOURCE-11, 
SOURCE-13, SOURCE-14 ) , alert! Does anyone know the best way to handle 
this using absent and regex ?


These are the queries we intent to try but not sure if it works as we 
currently do not have a best way to test this out.

*absent(test_metric{deployment='production', persisted='true', 
test_id=~'(SOURCE-10|SOURCE-11|SOURCE-13|SOURCE-14)'}) == 1*
*absent(test_metric{deployment='production', persisted='true', 
test_id=~'(SOURCE-1.*)'}) == 1*

*If anyone can share an example or any inputs would be great, thanks. *

-- 
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/ff53d90f-6f22-4700-ab31-5ed2941b83edn%40googlegroups.com.

Reply via email to