Skip to content
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

[Feature request] Alerting - Add option If no data or all values are null SET STATE TO "OK" #6866

Closed
amuraru opened this issue Dec 7, 2016 · 7 comments
Assignees
Labels
area/alerting Grafana Alerting
Milestone

Comments

@amuraru
Copy link
Contributor

amuraru commented Dec 7, 2016

Sometimes no value returned by a query means everything is ok.
It would be useful to have this option in the Alerting tab:
If no data or all values are null SET STATE TO "OK"

@bergquist
Copy link
Contributor

@amuraru Wouldn't this be the same as Keep last state?

@torkelo torkelo added the area/alerting Grafana Alerting label Dec 8, 2016
@f1nger
Copy link

f1nger commented Dec 9, 2016

I also need it. I have a graph with some errors, where 100 errors - it is an alert, but 0 errors (no data) - that's OK.
Now 0 errors after Alert - is state "No Data" or still state Alert (Keep Last State).

@amuraru
Copy link
Contributor Author

amuraru commented Dec 12, 2016

Wouldn't this be the same as Keep last state?

Not quite @bergquist - imagine you have a graph where only errors are graphed. Then if last state is kept an error alert would be fired.

@joostfaassen
Copy link

@bergquist It looks like SET STATE TO "OK" was there, but was removed in this commit:

489f087

Hopefully this helps in restoring the feature

@svenmueller
Copy link

Yes, we also have the usecase where we want to alert in case of responses with status code 5xx but not when having no 5xx response (= all fine).

@bergquist bergquist added this to the 4.1.0 milestone Dec 15, 2016
@bergquist bergquist self-assigned this Dec 15, 2016
@bergquist
Copy link
Contributor

Will be available in 4.1.0

@svenmueller
Copy link

Thx for the heads up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting Grafana Alerting
Projects
None yet
Development

No branches or pull requests

6 participants