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

Loki Datasource: Dashboard variable of type: Query has no Query-type: Query Result #82693

Closed
gelicia opened this issue Feb 15, 2024 Discussed in #68516 · 1 comment
Closed

Comments

@gelicia
Copy link
Contributor

gelicia commented Feb 15, 2024

Discussed in #68516

Originally posted by samjewell May 16, 2023
What happened:

I'm building a dashboard where I need to use the results of a Logs query as the input to a Metrics query.

Specifically there are Log-lines which identify which users are hitting a sad-path in the application. I need to join these results together with a dataset present in a metrics datasource. Unfortunately the metrics datasource is so large that I can only get results back by passing the user-ids as part of the query itself. Hence I need to know the user-ids before trying to render the panel, so I need to gather those IDs in a dashboard-variable (because these are evaluated first)

Prometheus datasource offers this option:

image

But Loki datasource doesn't:

image

And the data that I need isn't present in either "label names" or "label values"

What did you expect to happen:

Query-type: Query-result to be present in the dashboard-variables config for Loki

@svennergr
Copy link
Contributor

Duplicate of #76612

@svennergr svennergr marked this as a duplicate of #76612 Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants