grafana-datasource
grafana-datasource copied to clipboard
Builder mode's Metric Dropdown Shows "No Options Found" When Custom Query Parameters Are Configured
Exploring a VictoriaMetrics data source in Builder mode within Grafana shows "No Options Found" in the Metric dropdown when "Custom query parameters" are configured. This prevents using the Builder mode to construct queries. However, switching to Code mode and entering a MetricsQL query works.
Steps to reproduce -
- Add VictoriaMetrics data source to Grafana
- Configure "Custom query parameters" such as the following - extra_filters[]={cluster_name="mycluster"}
- Save
- Explore the data source
- Notice that the query is in Builder mode by default.
- The Metric dropdown shows "No Options Found" when you click on it. The expectation is that It should list metrics available similar to how it would work if "Custom query parameters" weren't configured.
- Switch to Code mode
- Enter a MetricsQL query and click "Run query".
- Results are returned as expected.
I'm using Grafana 10.1.5 and victoriametrics datasource plugin 0.4.0.