Can we put alert in Grafana on number of times my threshold has been violated?

  • What Grafana version and what operating system are you using?
    Version 9.2.0-beta1

  • What are you trying to achieve?
    I want to put an alert on number of times my threshold has been violated.

  • How are you trying to achieve it?
    I am trying to put a threshold and then put an alert on that.

  • What happened?
    Nothing is happening. Grafana cannot evaluate alerts on the basis on thresholds

  • What did you expect to happen?
    Hi all, I want to set an alert on threshold. I want Grafana to fire an alert on number of
    times my threshold has been violated.

For Example, I have a panel which shows me my CPU usage. I put a threshold on 80% and put an alert on that panel. I want Grafana to fire the alert for me if my threshold mark crosses more than 5 times in last 1 one. Right now, Grafana evaluates alerts every time our condition is violated but I want alert on the basis of number of times my threshold has been violated.

Is there any way or a tool or plugin that can help me calculate the number to times my threshold condition is violated?