opentelemetry-specification
opentelemetry-specification copied to clipboard
Prometheus compatibility: represent Prometheus Info, StateSet and Unknown-typed metrics in OTLP
Fixes https://github.com/open-telemetry/opentelemetry-specification/issues/3058 Fixes https://github.com/open-telemetry/opentelemetry-specification/issues/1712 Fixes https://github.com/open-telemetry/opentelemetry-specification/issues/2409
Changes
Use metric.metadata (added in https://github.com/open-telemetry/opentelemetry-proto/pull/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.
- [ ] Related issues #
- [ ] Related OTEP(s) #
- [ ] Links to the prototypes (when adding or changing features)
- [ ]
CHANGELOG.md
file updated for non-trivial changes - [ ]
spec-compliance-matrix.md
updated if necessary
@open-telemetry/wg-prometheus
This PR was marked stale due to lack of activity. It will be closed in 7 days.
Should this be included in March's release?
@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
Aha! yes, I had forgotten about the proto not releasing yet the related update. WDYT @jsuereth ?
This PR was marked stale due to lack of activity. It will be closed in 7 days.
@carlosalberto I think we need to release the proto directory....
This PR was marked stale due to lack of activity. It will be closed in 7 days.
Merging as proto 1.2.0 with metric.metadata
has been released.