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

Add filtering on metric name to label_values #1495

Closed
roman-vynar opened this Issue Mar 21, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@roman-vynar
Copy link
Contributor

roman-vynar commented Mar 21, 2016

Currently, Prometheus supports the following HTTP API call to retrieve all label values by its name:
/label/:name/values

It would be great to extend this with some kind of filtering on metric name, so you can get label values limited to the given metric.

For example, the label is device and I would like to get device name values only for the metric node_filesystem_free and not node_network_receive_bytes or other.

Say something like /label/:name/values?metric=:metric

Thanks!

@roman-vynar

This comment has been minimized.

Copy link
Contributor Author

roman-vynar commented Mar 24, 2016

Closing this, I realized that something more complex needed 😇

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.