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 Instrumentation Scope and Version as info metric and label in Prometheus exporter #3273

Closed
MrAlias opened this issue Oct 12, 2022 · 1 comment · Fixed by #3357
Closed
Assignees
Labels
area:metrics Part of OpenTelemetry Metrics help wanted Extra attention is needed pkg:exporter:prometheus Related to the Prometheus exporter package

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Oct 12, 2022

Based on open-telemetry/opentelemetry-specification#2703

Prometheus exporters SHOULD generate an Info-typed
metric named otel_scope_info. If present, Instrumentation Scope
name and version MUST be added as otel_scope_name and
otel_scope_version labels. Scope attributes MUST also be added as labels
following the rules described in the Metric Attributes
section below.

Prometheus exporters MUST add the scope name as the otel_scope_name label and
the scope version as the otel_scope_version label on all metric points by
default.

Prometheus exporters SHOULD provide a configuration option to disable the
otel_scope_info metric and otel_scope_ labels.

@MrAlias MrAlias added help wanted Extra attention is needed area:metrics Part of OpenTelemetry Metrics pkg:exporter:prometheus Related to the Prometheus exporter package labels Oct 12, 2022
@MrAlias MrAlias added this to the Metric SDK: Beta milestone Oct 12, 2022
@fatsheep9146
Copy link
Contributor

@MrAlias @Aneurysm9 Could I take this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics help wanted Extra attention is needed pkg:exporter:prometheus Related to the Prometheus exporter package
Projects
No open projects
Status: Done
2 participants