Skip to content

otlptranslator: Add dependency free package that translates OTLP data into Prometheus metric/label names #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2025

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 <arthursens2005@gmail.com>
@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 <arthursens2005@gmail.com>
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.

2 participants