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 compatibility: represent Prometheus Info, StateSet and Unknown-typed metrics in OTLP #3868

Merged

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Feb 7, 2024

Fixes #3058
Fixes #1712
Fixes #2409

Changes

Use metric.metadata (added in open-telemetry/opentelemetry-proto#514) to support representing prometheus metric types in OTLP.

Alternative Considered

We could consider using a metadata key that is not prometheus specific (e.g. gauge.subtype=unknown), but a prometheus-specific key seems better for avoiding collisions with other uses.

@open-telemetry/wg-prometheus

@dashpole dashpole requested review from a team February 7, 2024 21:18
@dashpole dashpole changed the title Prometheus type metadata Prometheus compatibility: represent Prometheus Info, StateSet and Unknown-typed metrics in OTLP Feb 7, 2024
@dashpole dashpole force-pushed the prometheus_type_metadata branch from fa7a69f to b22dd04 Compare February 7, 2024 21:19
Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 16, 2024
@dashpole dashpole force-pushed the prometheus_type_metadata branch 2 times, most recently from 69e93df to 2697ad1 Compare February 20, 2024 15:44
@dashpole dashpole force-pushed the prometheus_type_metadata branch from 5b26ba5 to f32b0dd Compare February 22, 2024 19:17
@carlosalberto
Copy link
Contributor

Should this be included in March's release?

@dashpole
Copy link
Contributor Author

dashpole commented Mar 5, 2024

@carlosalberto I would appreciate that. The only caveat is that the proto changes this is based on haven't been released yet, so this can't actually be implemented yet

@github-actions github-actions bot removed the Stale label Mar 6, 2024
@carlosalberto
Copy link
Contributor

Aha! yes, I had forgotten about the proto not releasing yet the related update. WDYT @jsuereth ?

Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Mar 14, 2024
@jsuereth jsuereth removed the Stale label Mar 21, 2024
@jsuereth
Copy link
Contributor

@carlosalberto I think we need to release the proto directory....

Copy link

github-actions bot commented Apr 2, 2024

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 2, 2024
@carlosalberto carlosalberto mentioned this pull request Apr 5, 2024
@carlosalberto
Copy link
Contributor

Merging as proto 1.2.0 with metric.metadata has been released.

@carlosalberto carlosalberto merged commit ebc157f into open-telemetry:main Apr 8, 2024
7 checks passed
@dashpole dashpole deleted the prometheus_type_metadata branch April 8, 2024 14:54
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
…nown-typed metrics in OTLP (open-telemetry#3868)

Fixes
open-telemetry#3058
Fixes
open-telemetry#1712
Fixes
open-telemetry#2409

## Changes

Use metric.metadata (added in
open-telemetry/opentelemetry-proto#514) to
support representing prometheus metric types in OTLP.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants