Alert configuration does not change the state if we set $__interval variable in the query. #26090
Labels
area/alerting
Grafana Alerting
datasource/Prometheus
needs more info
Issue needs more information, like query results, dashboard or panel json, grafana version etc
prio/support-subscription
What happened:
Configured an alert panel using Prometheus as the datasource. The query is using the variable [$__interval] for rate function. However, the alert configuration does not change the state based on condition/threshold value.
Set the threshold value as 80, so that if the query result reaches above 80, the alert should be triggered. It didn't happen. Replaced the [$__interval] variable with a value [2m] and the alert got triggered correctly.
Now, changed the rate interval with [$__interval] variable again and waited for the query result come down. However, the alert is not cleared even after the result value less than 80 (which is the threshold limit in condition). Replaced the [$__interval] variable with value [2m] and the alert got cleared.
What you expected to happen:
The alert should work correctly when we have [$__interval] variable in the query.
How to reproduce it (as minimally and precisely as possible):
Configure a panel with alert configuration.
Use the rate function in the query and use $__interval variable for rate interval value
Set the threshold value in the alert condition.
Check whether the alert is triggering correctly?
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: