Skip to content

[Bug]: [Dashboard] USE Method / Node(Windows) wrong queries for multiple choices variable (instance) #980

@mkozikowsk

Description

@mkozikowsk

What happened?

Queries expect the single value for instance varaible:
For example query from the CPU Utilisation panel:
node:windows_node_cpu_utilisation:avg1m{cluster="$cluster", instance="$instance"}
image

Grafana automatically constructs the value1|...|valueN regexp for the $instance variable so the query should look like this:

node:windows_node_cpu_utilisation:avg1m{cluster="$cluster", instance=~"$instance"}

=~: Select labels that regex-match the provided string

image

Please provide any helpful snippets.

No response

What parts of the codebase are affected?

Dashboards

I agree to the following terms:

  • I agree to follow this project's Code of Conduct.
  • I have filled out all the required information above to the best of my ability.
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have confirmed this bug exists in the default branch of the repository, as of the latest commit at the time of submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededkeepaliveUse to prevent automatic closing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions