Grafana 8 alerting - unable to create alert for no Data

  • What Grafana version and what operating system are you using?
    Using grafana version 8.1.2 installed as a docker container on ec2 instance.

  • What are you trying to achieve?
    Create alert when no data is coming

  • How are you trying to achieve it?
    Using grafana 8 alerting system

  • What happened?
    Getting error - “Input data must be wide series got type not (input refid)”

  • What did you expect to happen?
    For no data case - alert should show.

  • Can you copy/paste the configuration(s) that you are having problems with?
    This is the query i want to run:

alert condition:

also tried with Math/Reduce & Math inplace of classic condition - still gets same error. But if data is coming then no alert works fine.

Hoping to get early response.

1 Like

I would like to add that the same happens for MySQL when counting aggregated rows, expecing to alert on >0 in response.

I feel that this should trigger the “No Data” situation for an alert. The error is likely coming from the expression, however the expression does not accept the option for “Result of B has no value.”

Am I correct in reading this to mean that you’re getting an error with the query when you try to save the alert rule or preview alerts?

Can you clarify what you mean? The NoData state has a very specific definition and I also want to make sure you’re aware of that State and Health of alerting rules | Grafana Labs