Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ArthurSens
Copy link
Member

Moving https://github.com/ArthurSens/otlp-prometheus-translator into this repository.

Its intended usage is to replace duplicated code between several projects, like Prometheus, OpenTelemetry-Collector, and Thanos, that accept an OTLP metric and return valid Prometheus metric/label names.

The code is modified, so we're dependency-free instead of depending on OTel libraries like the original ones.

… into Prometheus metric/label names

Signed-off-by: Arthur Silva Sens <[email protected]>
@ArthurSens ArthurSens requested a review from ywwg March 12, 2025 17:55
@ArthurSens ArthurSens changed the title otlptranslator: Add dependency free package that translator OTLP data into Prometheus metric/label names otlptranslator: Add dependency free package that translates OTLP data into Prometheus metric/label names Mar 13, 2025
Copy link
Member

@ywwg ywwg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one thing not covered by the tests, which is great. Since this is just a bulk move I don't have any comments... we'll know more once we start pointing prom and otel at this.

@ArthurSens ArthurSens requested a review from ywwg March 13, 2025 16:22
…with a digit and addMetricSuffixes is true

Signed-off-by: Arthur Silva Sens <[email protected]>
Copy link
Member

@ywwg ywwg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks

@ArthurSens ArthurSens merged commit cf3c56f into main Mar 13, 2025
10 checks passed
@ArthurSens ArthurSens deleted the otlp-translator branch March 13, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants