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