Alert not working on panel configured template variable

  • What Grafana version and what operating system are you using?
    Grafana v7.5.5 (b5190ee547)

  • What are you trying to achieve?
    To send notification from panel configured with template variables.

  • How are you trying to achieve it?
    By setting the alert on panel

  • What happened?
    Getting below error when creating alert. The same alert alert works when passing values instead of variable

“alert validation error: Data source used by alert rule not found, alertName=Backend Last Byte Response Time alert, datasource=${datasource}”

  • What did you expect to happen?
    Seems like this is an open issue.

  • Can you copy/paste the configuration(s) that you are having problems with?

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

  • Did you follow any online instructions? If so, what is the URL?
    Nope.