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

When fetching label names, the API should return their cardinality #3226

Open
grafakus opened this issue Apr 17, 2024 · 0 comments
Open

When fetching label names, the API should return their cardinality #3226

grafakus opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@grafakus
Copy link
Collaborator

grafakus commented Apr 17, 2024

Is your feature request related to a problem? Please describe.

When fetching label names from the /querier.v1.QuerierService/LabelNames API endpoint, it would be great if the API could return the labels cardinality.

This would enable (e.g.) a UI to adapt itself and to prevent long loading times, or even timeouts, when fetching label values. Another advantage would be for DataTrails-like UI, where a threshold could be used to determine which timeseries ("grouped by") to automatically display or not.

Describe the solution you'd like

See above.

Describe alternatives you've considered

The Grafana app plugin currently hides high cardinality labels, based on their names. The query builder has also some special logic to prevent fetching label values in this case.

Additional context

-

@grafakus grafakus added the enhancement New feature or request label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant