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
Grafana 9.1.4 NoData reduce problem #55085
Comments
I see this same problem too and posted about it including a screenshot in the Grafana Forum. |
Hi! 👋 This is an issue with how Grafana reduces data frames from InfluxDB. With InfluxDB, no data returns a |
Thank you for the explanation. Am I correct in interpreting your answer to say that this is indeed a bug in how Grafana treats no data from Influx? |
Hi! I have opened a pull request to fix this #55347. It should be available in Grafana 9.1.6. |
Hi! I don't think #55347 will be merged in time for 9.1.6, so it will instead be available in Grafana 9.1.7. |
I don't understand how #55347 fixed this, actually. I'm on v9.2.0-beta.1 right now and the Grafana then just sends a DatasourceError notification, instead of dealing with a NoData situation correctly. This didn't happen in Grafana 7. Specially annoying when you have other queries in the same alert. They won't be run even if they'd return something, just because one other query returned nothing. Am I missing something here? |
i just installed 9.1.7 and I can confirm the issue is solved, now the NoData is handled in proper way |
Hi @vinivosh! 👋 Would it be possible to see the SQL query and the database schema of the table you are querying in your alert rule? |
I'm actually using Influx' own Flux query language to query data from InfluxDB v2.3.0. The query in question:
It currently returns nothing, because the hardware isn't set up properly at the moment. I still wanted other queries in the alert to be ran, though, as they do return data. Or at least for Grafana to deal with this scenario normally, by sending a NoData alert. I also tried using Math or Reduce conditions, but the same DatasourceError happens. |
Hi @vinivosh! I'm not sure I can reproduce the issue. I copied the FluxQL and created an alert with Reduce, and I get a |
I did some tests and i'm getting same error as @vinivosh , I was not able to experience that before because I don't use classic condition but always the reduce. with the same query i'm stil getting the error |
@grobinson-grafana is there an issue to track the status of the classic condition + NoData? |
Hi @matrog! I've just merged a fix for NoData in Classic Conditions which should be available in both 9.1.9 and 9.2.1. |
Super! thanks |
After upgrading from grafana 8.5.6 to 9.1.4 i'm getting the following error message if the query returns "NoData", which is a totally expected situation in case we do not receive any data from one of our probes.
This alert used to work fine in v8.5.6 producing a NoData Alert.
Here's the alert config
then a reduce and a math expression
Log Snippet
The expected result is NoData state if the query returns NoData
Environment:
The text was updated successfully, but these errors were encountered: