New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NO DATA alert is not firing #60283
Comments
@Dhyanesh97 there's an issue reported here that walks through the way that NO DATA is evaluated. The issue talks about how the results of NO DATA aren't behaving as expected. Can you share a screenshot or example of the alert condition you're evaluating? I saw the error you reported, what does the query result look like for the same datasource in Explore? |
@mellieA It is normal query to get the field data. please find query below.
When query returns no data, grafana is throwing an error. We can see the error in UI as well. |
@Dhyanesh97 I was able to reproduce this with test data that we have on play.grafana.org. Thank you for the extra information, I've routed this over to the alerting squad to take a look There is data in this panel for the last three hours, but nothing in the past 30 minutes: When I copy this same query and try to use it as an alert condition. This works because there is data in the past 3 hours: Change the time range to last 15 minutes: Click preview and the page errors: |
This should be fixed by #61814 and will be in the next Grafana release. |
What happened:
NO DATA alert is not firing. Also when we click on preview or run queries, it shows below error in grafana.
What you expected to happen:
Alerts should be sent without any errors. We should able to preview the alert in case of NO DATA.
In earlier version we haven't experienced this issue.
How to reproduce it (as minimally and precisely as possible):
Use below grafana docker images:
grafana/grafana:9.3.1-ubuntu
grafana/grafana:9.3.0-ubuntu
Configure alert which returns no data.
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: