[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

Projects

None yet

6 participants

@amuraru
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
Contributor

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

@f1nger
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
Contributor
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

@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

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 bergquist closed this in ca7baca Dec 15, 2016
@bergquist
Contributor

Will be available in 4.1.0

@svenmueller

Thx for the heads up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment