Skip to content

prometheusremotewrite export unit as part of metadata #29452

Closed
@jmichalek132

Description

@jmichalek132

Component(s)

exporter/prometheusremotewrite

Describe the issue you're reporting

As discussed here #27565 (comment) the current implementation of metadata in the remote write exporter leaves unit unset, because prometheus expects full words instead of the UCUM abbreviation. To enabling this refactoring of https://github.com/jmichalek132/opentelemetry-collector-contrib/blob/1f646ab1bf7f01e014cadbfff9494e3694cf9c18/pkg/translator/prometheus/normalize_name.go#L119 might be necessary.

I don't think this is critical, especially since as afar as I know there is no way to view the unit in the UI of prometheus or Grafana as of now. So it's mostly relevant for other systems using the prometheus metadata APIs which will return the unit if set.

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