diff --git a/CHANGELOG.md b/CHANGELOG.md index 93debcad0f7..e6b38dc03cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -112,6 +112,8 @@ release. - Add OpenCensus migration guide and add BinaryPropagation as an option to gRPC instrumentation for OpenCensus compatibility ([#3015](/~https://github.com/open-telemetry/opentelemetry-specification/pull/3015)). +- Add condition with sum and count for Prometheus summaries +([3059](/~https://github.com/open-telemetry/opentelemetry-specification/pull/3059)) ### OpenTelemetry Protocol diff --git a/specification/compatibility/prometheus_and_openmetrics.md b/specification/compatibility/prometheus_and_openmetrics.md index 7d4370ae1d0..437c46bfd4a 100644 --- a/specification/compatibility/prometheus_and_openmetrics.md +++ b/specification/compatibility/prometheus_and_openmetrics.md @@ -103,6 +103,8 @@ Multiple Prometheus metrics are merged together into a single OTLP Summary: * The `quantile` label on non-suffixed metrics is used to identify quantile points in summary metrics. Each Prometheus line produces one quantile on the resulting summary. * Lines with `_count` and `_sum` suffixes are used to determine the summary's count and sum. +* If `_count` is not present, the metric MUST be dropped. +* If `_sum` is not present, the summary's sum MUST be [set to zero.](/~https://github.com/open-telemetry/opentelemetry-proto/blob/d8729d40f629dba12694b44c4c32c1eab109b00a/opentelemetry/proto/metrics/v1/metrics.proto#L601) ### Dropped Types