grafana-datasource icon indicating copy to clipboard operation
grafana-datasource copied to clipboard

Excessive escaping when using Grafana variables in queries

Open rul-hydro opened this issue 8 months ago • 1 comments

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

rul-hydro avatar Jun 04 '24 08:06 rul-hydro