I have metric, LATENCY and label, status.
I want to fire an alert when LATENCY has status=CRITICAL
LATENCY{status="CRITICAL"}
LATENCY status will be critical only if latency is beyond a threshold.
How to check if there is at least one time series with LATENCY{status="CRITICAL"} ?
I used expr: absent(LATENCY{status="CRITICAL"}) == 0, but it doesn't work.
First you could try the following expression:
If it doesn't work as expected, then try the following one: