Could not apply macros: interval: 0s

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?
    Trying to build some panels and alerts with data from Snowflake

  • How are you trying to achieve it?

  • What happened?
    The panel works just fine but when the alert is built we just get tan error, shown in the error question below.

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?
    I am not able to as it contains proprietary information

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

Error: tsdb.HandleRequest() response error &{Could not apply macros: interval: 0s. unrecognized interval unit Could not apply macros: interval: 0s. unrecognized interval unit A [] [] 0xc0025aadb0}

We had the intervals set to Evaluate every 6h and the condition set to query(A, 6h, now) as far as timing. I have since updated it to be the defaults on the new monitor and I have note had the error so maybe it’s something to do with how long a window that can be used? I’ll keep playing with this on my end as well.

Also worth noting that 7.4.5 uses legacy alerting, which is getting deprecated in favor the completely rebuilt Unified Alerting, which was introduced in Grafana 8. Might be worth checking that out:

1 Like