Skip to content

Issue when mapping OpenTelemetry MinMaxSumCount aggregator to Prometheus Gauge metric #228

@CunjunWang

Description

@CunjunWang

Is your feature request related to a problem?

Yes. According to the specification here, we need to support MinMaxSumCount in OpenTelemetry. However, when I was translating OpenTelemetry metric data to Prometheus data type and mapping OpenTelemetry Aggregator to Prometheus, I referred to the specification here. The spec states we need to map MinMaxLastSumCount to Prometheus Gauge, and use the Last Value as the gauge metric. The problem is we don’t have a MinMaxLastSumCount aggregator. What we have is MinMaxSumCount aggregator but there is nothing can be mapped to gauge in this aggregator.

Describe the solution you'd like

  1. Ignore this aggregator when mapping from OpenTelemetry to Prometheus for now, if possible.

  2. Choose another value in the aggregator (min, max, sum, or count) to expose as the Prometheus gauge metric.

Describe alternatives you've considered

  1. Support the MinMaxLastSumCount Aggregator. This is not a preferred solution because the team that implemented the aggregators will end their internship next week. It’s not a good choice to ask them add new implementations at this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions