grafana-datasource
grafana-datasource copied to clipboard
Excessive escaping when using Grafana variables in queries
My dashboard has a variable with a regular expression to select different metrics.
If I use this variable in a query, special characters are escaped twice.
With a variable value of Regex=unit., the query {my_tag=~"${Regex}"} will be executed as {my_tag=~"unit\\."}, not returning any series instead of {my_tag=~"unit."}, which would return unit1, unit2 etc.
Grafana 11, Plugin 0.8.2, VictoriaMetrics 1.101.0
Hello @rul-hydro ! Could you try repeating the test with Plugin 0.8.5? I've failed to reproduce it. Here's the steps I took:
- Created a variable below:
- Created panel with VM datasource plugin and the following query:
- Tried changing the variable options and observe state of the panel:
- Request params in Network panel seem correct as well
Closing this ticket as stale. Feel free to rep-open if issue still remains.