Skip to content

Migrate from pkg/translator/prometheus to prometheus/otlptranslator. #39822

Open
@ArthurSens

Description

@ArthurSens

Component(s)

No response

Describe the issue you're reporting

Throughout the years, we've seen several different projects develop their own codebases to translate OTLP metrics and attribute names into Prometheus naming conventions, including collector contrib, which developed the package pkg/translator/prometheus.

The problem is that this codebase is not usable for other projects like Prometheus and OTel-Go SDK, since it creates cyclic dependencies and uses Global registries for feature gates.

A group inside the Prometheus team has developed https://github.com/prometheus/otlptranslator to centralize the development of those translations. We're currently working on migrating all codebases to that library and we'd love to do the same here

Metadata

Metadata

Assignees

Labels

never staleIssues marked with this label will be never staled and automatically removedpkg/translator/prometheus

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions