-
Notifications
You must be signed in to change notification settings - Fork 89
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 metadata to prometheus metrics #90
Comments
Hi @jonny-wg2, what kind of metadata are you after, and how would you need it exposed? |
Sorry for the late reply. Essentially, I am wondering if it is possible to add prometheus labels to a prometheus metric that is created by the exporter. For example, adding the following to
Would create a metric with
Would there be a way to also include prometheus labels with metadata from the metric? Such as the |
Creating result buckets with an aggregation (e.g. terms or filter) is usually the best way to create labels from data like tags. Your example seems to only match a single tag, however. In cases like that, the tag data would usually be part of the metric name, not a label? Is there a particular reason you need it as a (single value) label? There have been a few requests before for the ability to add extra labels, but so far they've all been solved by changes to the query (e.g. aggregations). |
Closing for now - feel free to re-open if you'd like to discus your use case further. |
Hi, I am curious if there is a way to add metadata from an es query to a prometheus metric?
The text was updated successfully, but these errors were encountered: