I have been creating a grafana’s custom datasource plugin with backend. When i wanted to update/change things for the query variable screen, i was able to do that by creating a file and component called VariableQueryEditor and setting it as VariableQueryEditor in my module.ts using
export const plugin = new DataSourcePlugin<DataSource, QueryObj, DataSourceOptionsObj>(DataSource) .setConfigEditor(ConfigEditor) .setQueryEditor(QueryEditor) .setVariableQueryEditor(VariableQueryEditor);
Now i wanted to update and add some text fields/dropdowns to ad-hoc filter query variable but i am unable to find out a way to do that?
When we select variable type as ad-hoc filer, we just get an option to choose the datasource. Cant we add some more fields to be sent while querying for ad-hoc filters?