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

Prometheus exporter: emit target_info metric using Resource #360

Open
dashpole opened this issue Dec 6, 2022 · 0 comments
Open

Prometheus exporter: emit target_info metric using Resource #360

dashpole opened this issue Dec 6, 2022 · 0 comments
Labels
metrics Metrics feature or improvement

Comments

@dashpole
Copy link

dashpole commented Dec 6, 2022

From the spec for handling resource in prometheus exporters:

In SDK Prometheus (pull) exporters, resource attributes SHOULD be converted to a single target_info metric; otherwise, they MUST be dropped, and MUST NOT be attached as labels to other metric families. The target_info metric MUST be an info-typed metric whose labels MUST include the resource attributes, and MUST NOT include any other labels. There MUST be at most one target_info metric exposed on an SDK Prometheus endpoint.

The Prometheus exporter currently doesn't use resource attributes for anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metrics Metrics feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants