Skip to content

Use latest metric description / help in Prometheus Exporter #40466

Open
@wjones127

Description

@wjones127

Component(s)

exporter/prometheus

Is your feature request related to a problem? Please describe.

If one changes the description of a metric, the Prometheus Exporter will ignore the change, and continue to emit metrics with the old help message. It will also emit a log message:

2025-06-03T18:54:40.508Z	info	[email protected]/collector.go:453	Instrument description conflict, using existing	{"otelcol.component.id": "prometheus", "otelcol.component.kind": "Exporter", "otelcol.signal": "metrics", "instrument": "request_duration", "existing": "Duration of request in milliseconds", "dropped": "Duration of request in seconds"}

It looks like this was improved a while ago in #36356, where before the behavior was to just drop the metrics.

This seems to make it hard to update descriptions if they have typos or need additional information.

Describe the solution you'd like

It would be nice to choose the latest description, rather than the first in these instances. I'm assuming downstream consumers can handle this. If they can't, then we can disregard this.

Describe alternatives you've considered

The alternative is to create new metrics, and have people migrate to those.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions