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

[Feature Request] Legend variables #28619

Closed
orenwolf opened this issue Oct 28, 2020 · 2 comments
Closed

[Feature Request] Legend variables #28619

orenwolf opened this issue Oct 28, 2020 · 2 comments

Comments

@orenwolf
Copy link

We have many instances of Prometheus as a data source, pulling in integer values for items like an event ID or userid.

These IDs map to human-readable names in a SQL data source (which we also have configured in grafana)

While we can use grafana variables to, for example, provide a dropdown to modify the graph query by friendly name (if, for example, we wanted to filter on an ID, the legend does not appear to be alterable when we aren't filtering, so we end up with integers in the legend instead of the __text value of the variable names.

It would be wondrous if we could use a variable for the legend in such a way that the __text value from the variable, rather than the raw value, appeared in the legend.

Thanks!

@hugohaggmark
Copy link
Contributor

/duplicate #1032

@grafanabot
Copy link
Contributor

Thanks for creating this issue! It looks like this has already been reported by another user. We’ve closed this in favor of the existing one. Please consider adding any details you think is missing to that issue.

To avoid having your issue closed in the future, please read our CONTRIBUTING guidelines.

Happy graphing!

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

3 participants