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: omit empty otel_scope_info and otel_target_info metrics #4581

Open
dashpole opened this issue Oct 2, 2023 · 0 comments
Labels
enhancement New feature or request pkg:exporter:prometheus Related to the Prometheus exporter package

Comments

@dashpole
Copy link
Contributor

dashpole commented Oct 2, 2023

Description

otel_scope_info and target_info should now only be generated when scope attributes and resource attributes are non-empty.

From open-telemetry/opentelemetry-specification#3660:

Prometheus exporters SHOULD generate an Info-typed
metric named otel_scope_info for each Instrumentation Scope with non-empty
scope attributes.

In SDK Prometheus (pull) exporters, resource attributes SHOULD be converted to
a single target_info metric
if the resource is not empty;

@dashpole dashpole added enhancement New feature or request pkg:exporter:prometheus Related to the Prometheus exporter package labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pkg:exporter:prometheus Related to the Prometheus exporter package
Development

No branches or pull requests

1 participant