Skip to content

Prometheus exporter should use Gauge for non-monotonic sums #1210

@jmacd

Description

@jmacd

The existing exporters/metric/prometheus exporter exports a sum for the UpDown- instruments, which leads to issues like open-telemetry/opentelemetry-go-contrib#368.

The metric.Kind type already has a getter Kind.Monotonic() that tells us whether the Sum aggregation is an UpDown- variety or not. If the aggregation is UpDown-, Prometheus exporters should not export Counter data points, Prometheus exporters should export Gauge data points.

Metadata

Metadata

Assignees

Labels

area:metricsPart of OpenTelemetry Metricsblocked:specificationWaiting on clarification of the OpenTelemetry specification before progress can be made

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions