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] Function or API to get metric meta information #3481

Closed
jiming opened this Issue Nov 16, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@jiming
Copy link

jiming commented Nov 16, 2017

For example the metric in https://prometheus.io/docs/prometheus/latest/querying/operators/

When execute the api or function, it can return

http_errors:
  type: Counter
  labels:
    method:
      - GET
      - POST
    code:
      - 200
      - 300
      - 400
      - 404
      - 500

And go further, when execute the api of function with label name, it only return the exists values of label. For example, I execute the api with parameters http_errors and method, it returns

GET
POST
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Nov 16, 2017

I believe you're looking for the existing labels apis.

@jiming

This comment has been minimized.

Copy link
Author

jiming commented Nov 16, 2017

@brian-brazil

Thank you for your reply! Could you please give me an url of the labels apis documents?

Have a nice day!

Jiming

@brian-brazil

This comment has been minimized.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 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 23, 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.