elasticsearchloggingalertgrafanadashboard

how to reset "alerting" state in Grafana


I have set up a Grafana alert, that alerts when my values in a graph reaches a specific value.

And that value was reached a month ago and ever since then the state has been "ALERTING".

I obviously want to reset this state to "OK", since the incident happened a month ago and has been resolved.

Any idea how to do that?

I've taken some screenshots of the graph/panel and the settings for the alert, so you can see, what I've set it to.

screenshot of graph

Alerting

screenshot of the alert-customization

The main goal is to get a alert everytime the values reach over 468.


Solution

  • Well it is obvious and I guess you just get better at Grafana when trying...

    I've found out that you should simple go to the page "Alert Rules" and from there pause and then restart the alert.

    how to go to Alert Rules

    where to pause the alert - and re-enable it

    When you re-enable it it will change status from "alerting" to "pending", the alert will then check after some time (check what time you've set it too) and if the query no longer calls the alert, it will change to "OK", if not - it will again send out a new alert.

    Grafana should normally do this itself - but I've experienced that I've had to manually do this.

    Should you not have this possibility - meaning that the query should not call the alert, but should show "OK" and it instead keeps showing "Alerting", then I couldn't find another way around than to delete the alert and set it up again. Not the best solution, but pausing and re-enabling didn't work and I haven't had any difficulties since.

    If anyone have had the same experience and found a better solution, then please feel free to post it.

    I can also see that this has been a bug/known error as stated here