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
Alerting: No Data should take "For" setting into account #16290
Comments
I think the logic in |
Re-labeled this as a feature request since the For feature was not built with No Data in mind. |
In current releases (e.g. 6.4.3), the default alert rule contains both
At the same time, documentation notes:
Because 'No data' is about handling errors for a rule and "For" applies to the rule evaluation (not the conditions/query), I think the |
@patricktokeeffe thanks. I agree and your comment make sense. Changed to bug. |
As this issue is marked with
prio/awaiting-more-evidence
This is how our alert is configured: The State History panel showed us this history: As you can see, on Mar 14, 2023 15:53:42, the alert transitioned into OK state, but on Mar 14, 2023 15:55:40 the alert transitioned into No Data. As the "For" field is set to 5 minutes, the notification should not be sent immediately, but in reality it was sent immediately. Happy to provide more details if that helps this issue moving through! |
There has not been any progress on this issue for a few years and releases now. Is there any way how this could be put on the agenda again? Or do you recommend looking for workarounds and alternatives? |
Hi @justfortherec, there's been a bit of progress here as of late. Grafana Alerting rules with NoDataState configuration set to Alerting will now respect "For" duration (See PR). The other parts of this issue are being tracked here: #55320 |
We see the same issue on our instance - except that it happens with DatasourceError. Strangely, it worked at some point and only ceased to work recently. When it worked and when it ceased to work we were using version 9.4.7. Switching to 9.5.1 didn't help. We've been using the new alerting system for a while now. Just for additional context, that's the issue we're tracking this on our side: https://progress.opensuse.org/issues/128870 |
I see a similar issue with 10.1.1 Alert settings: For is set to 5min and eval to 1m Documentation states:
But from he logs it's clear it fire immediately on error without waiting for 5min. 04:25:06 state=Normal |
We experience the same issue with AWS managed Grafana 9.4: DatasourceNoData immediately sending an alert instead of waiting for the 5 minute evaluation period. Please look into this! |
The new 'Keep Last State' option as of 10.4 will respect the 'for' period. |
What happened:
Alert notification send immediately after "No Data" condition
What you expected to happen:
Alert notification should be delayed the same way as for "Alerting" condition obeying "For" setting
How to reproduce it (as minimally and precisely as possible):
Create alert rule
set 'If no data or all values are null' to "No Data"
set For "5m"
simulate "No Data" condition from the data-source side
Receive notification immediately
Anything else we need to know?:
Environment:
5.4.3
carbonapi (graphite 0.12 compatible)
Linux Centos 7
The text was updated successfully, but these errors were encountered: