Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive escaping when using Grafana variables in queries #161

Open
rul-hydro opened this issue Jun 4, 2024 · 1 comment
Open

Excessive escaping when using Grafana variables in queries #161

rul-hydro opened this issue Jun 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working need more info

Comments

@rul-hydro
Copy link

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

@hagen1778 hagen1778 added the bug Something isn't working label Jun 24, 2024
@hagen1778
Copy link
Contributor

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:

  1. Created a variable below:
image 2. Created panel with VM datasource plugin and the following query: image 3. Tried changing the variable options and observe state of the panel: image image 4. Request params in Network panel seem correct as well image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info
Projects
None yet
Development

No branches or pull requests

3 participants