sasaki77 / archiverappliance-datasource

EPICS Archiver Appliance plugin for Grafana dashboard
https://sasaki77.github.io/archiverappliance-datasource
MIT License
14 stars 7 forks source link

Grafana's backend faults when custom variables are used in the query #39

Closed n-wbrown closed 3 years ago

n-wbrown commented 3 years ago

Describe the bug Using Grafana's variables of the custom type causes the backend to fail queries.

To Reproduce Create a custom variable for a dsashboard Set up a query using a the variable in the PV with syntax like ${prefix} Create an alert using this query The alert fails because it cannot get data

Expected behavior Using Grafana variables should work with the backend querying system and match functionality with the frontend.

Desktop (please complete the following information):

Additional context Hey @sasaki77, I just found another issue in the backend. Would you mind assigning this one to me?

n-wbrown commented 3 years ago

This is not currently supported by grafana. Information about dashboard variables is not available to the backend query when scanning for alerting conditions.

Please see https://grafana.com/docs/grafana/latest/alerting/create-alerts/#conditions

I plan to revisit this in 90 days to see if support has been added.