I want to add more text fields under the Query Options here for a selected datasource. But in the datasource code, I don’t see where this is specified. Searching for “Regex” in the datasource codebase doesn’t return anything. Which file do I add these text fields to?
HI @ngalagali these are two different things. You are looking at variables and its regex field has a specific usage for them. This view is not related to the datasource query editor. See here Add and manage variables | Grafana documentation
Most datasources (that use react) have a QueryEditor component that you can see in their source code. Here’s an example from our plugins examples repository grafana-plugin-examples/QueryEditor.tsx at main · grafana/grafana-plugin-examples · GitHub