Alert rule with multiple time series

Hello, I have multiple grafana alert rules and each of this rule returns multiple time-series. Lets say for example I have a metric “example_metric” which returns “example_series_A” and “example_series_B”, I want my alert to be triggered only if 1 of the time series is above the certian threshold of 100 for 2 mins. But what happen is that if “example_series_A” met the condition and break the threshold for 1 min and then drops and than the other "example_series_B met the condition for the last 1 min and the alert will fire, but I dont want that.

What I want to achieve:

a) Alerts to fire only when a single timeseries is in the pending state for the whole duration of 2 mins.


This is my configuration

Do you have any expressions for the rule? If it’s “Classic Condition” then it can explain the problem because that expression aggregates all metrics into a single number.

You need to switch to multi-dimensional alerting and use Threshold or Math expressions.

1 Like

Yes it is “Classic Condition”. Your answer is very helpful. Thank you!