On 2021-07-07 08:49, Or Fins wrote:
Assuming I have a counter with 3 different labels, how can I create an
alert with a different condition for each of the labels, without
splitting the query into 3?

So instead of 3 queries like this:rate(my_counter{mylabel=1}[30s])
I’d like to use just a single query: rate(my_counter[30s]), and
create different conditions for mylabel=1, mylabel=2, mylabel=3. Is it
possible?


You can use a regex match (=~ instead of =) to match all three of the values in a single query.

--
Stuart Clark

--
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/e2af23b662c98c9e76311bfe30095269%40Jahingo.com.

Reply via email to