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
ngalert in Grafana 8.0.4: alert gives NoData while there is data (Prometheus node-exporter 0.15) #36571
Comments
I've done a bit more analysis. Our query is:
If I remove either part of the division, it works well, so doesn't result in NoData. So:
and
Both result in the condition evaluating to a number (1 in this case), not NoData. |
Other math operators also result in an output value correctly, not in NoData:
And the division operator with a constant also works fine:
Yet the situation where we use the division operator with two metrics results in NoData...
|
@kylebrandt tagging you as you were asked to file case-by-case issues for the new alerting system in #7832. |
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions! |
This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions! |
I'm testing the new
ngalert
feature, very happy this has now arrived after following issue #7832 for a long time :). Experiencing an issue with a preexisting alert, imported from the old alert system.What happened: we have disk space alerts for data sources based on Prometheus node-exporter. We have some machines still on node-exporter v0.15, some on the newer v0.18. As far as I can see the metrics used haven't changed between these versions of node-exporter, and we're using identical queries for v0.15 and v0.18. All of the alerts work fine in the old alerts system.
However in
ngalert
, the v0.15 source results in NoData (while there clearly is data visible), whereas the v0.18 works fine.What you expected to happen: both to work fine.
How to reproduce it (as minimally and precisely as possible):
Use the following query (A):
100 - ((node_filesystem_avail{device!~'rootfs'} * 100) / node_filesystem_size{device!~'rootfs'})
With a condition "WHEN avg() OF A IS ABOVE 60".
Output with a Prometheus node-exporter 0.18 data source (as expected):
Note the "0" under Value, that's good. Further down we see the state of the alert is Normal:
Output with a Prometheus node-exporter 0.15 data source, after pressing Run queries (shows the issue):
Note the empty space under Value. Further down, it's clearer this results in NoData:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: