Alert time window query
returns wrong range of data
#31766
Labels
needs more info
Issue needs more information, like query results, dashboard or panel json, grafana version etc
What happened: I am setting up an alert using the condition:
WHEN min() OF query(A, 90m, now-60m) IS BELOW 150
But the response when hitting
Test rule
shows:Note that the query constructed the correct time window (10:12:42 to 10:42:42) but the results contain data between 11:16 and 11:37.
This is independent of the timezone or the time ranges I tried, although for small time ranges the query is usually completely empty (~<30 minutes), even though the data has a data point roughly every 5 minutes.
This makes it impossible to exclude, say, the last 10 minutes for which the data usually shows 0 before having the right values.
What you expected to happen:
That the inbetween query returns data in between.
How to reproduce it (as minimally and precisely as possible):
See query above.
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: