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

Custom variable in grafana with Stream selector {$label_name=~"$label_value"} is not correct works #12983

Open
Vitaliy155 opened this issue May 17, 2024 · 0 comments
Labels
component/dashboards type/bug Somehing is not working as expected

Comments

@Vitaliy155
Copy link

Vitaliy155 commented May 17, 2024

Describe the bug
Grafana dashboard variable works incorrect where variable definition as {$label_name=~"$label_value"}

To Reproduce

  1. Create 3 variables in the Grafana dashboard:
    label_name - Query type: Label names;
    label_value - Query type: Label values, Label: {$label_name};
    loglevel - Query type: Label values, Label: loglevel, stream selector: {$label_name=~“$label_value”}

  2. Save and go to dashboard.

  3. Choose Label name:host, Label value: , level: one of the available levels. In my case it's ERROR.
    There is no level ERROR ... but should be!

Expected behavior
Should be available value from custom variables related to label_value.
As workaround, you can see label_value: "ERROR" without custom variable
if choose:
label_name: "loglevel" and label_value: "ERROR"

Environment:
Grafana: 10.4.3
Loki:3.0.0

Screenshots, Promtail config, or terminal output
1
2
33
label_loglevel
label_name
label_value

Tasks

No tasks being tracked yet.
@JStickler JStickler added type/bug Somehing is not working as expected component/dashboards labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/dashboards type/bug Somehing is not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants