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.
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:
I encountered the same issue and Followed the documentation which you mentioned above, Still I am not seeing the query panel is being displayed, on selecting the Query variable type from the dropdown.
I am using the grafana version 9.15.0 So in this version .setVariableQueryEditor is deprecated, So is there any workaround to get this functionality to work.