Dasboard variable of Query type - Query Form not shown

I’m in a process of development of a custom datasource and I need to use data returned as option list for dashboard variable. The query needs to be parametrized, but, datasources query form does not display in the dashboard variable definition at all.


On the panel definition, the query form shows up just fine.

With the GitHub - grafana/grafana-starter-datasource: A starter for Grafana data source plugins, I have the same behaviour.
Using Grafana v8.2.1

You need to explicitly set the query editor for the variable query editor. For more information, check out the documentation on using variables in plugins:

Thank you very much, that was exactly it.
Shame on me I did not find it myself.

1 Like