-
Notifications
You must be signed in to change notification settings - Fork 531
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
OTLP: Use optimized OTel metric translator, converting directly to Mimir format #7957
Conversation
144d40d
to
6ecf12a
Compare
383bb02
to
67cc712
Compare
954bd60
to
c4ec41e
Compare
88ba95d
to
2ea6c1a
Compare
Signed-off-by: Arve Knudsen <[email protected]>
Signed-off-by: Arve Knudsen <[email protected]>
Building new version of mimir-build-image. After image is built and pushed to Docker Hub, a new commit will automatically be added to this PR with new image version |
Signed-off-by: Arve Knudsen <[email protected]>
Not building new version of mimir-build-image. This PR modifies |
Signed-off-by: Arve Knudsen <[email protected]>
Not building new version of mimir-build-image. This PR modifies |
@pstibrany do you think there's any need to test this in a dev cell first, or should we be good to go (as it's just a transformation from Prom sources)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Arve, nice work!
As per Slack discussion, we may want to have a temporary feature flag to enable new, or use old translation code, in case we find a problem with the new code. After we successfully roll this out to our prod, we can remove the flag and old code. |
Not building new version of mimir-build-image. This PR modifies |
ec1a73f
to
488e83a
Compare
Not building new version of mimir-build-image. This PR modifies |
Signed-off-by: Arve Knudsen <[email protected]>
488e83a
to
361c5ae
Compare
Not building new version of mimir-build-image. This PR modifies |
@pstibrany flag added w/ true for default (is false preferable?), PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
…mir format (grafana#7957) * Use optimized OTLP translator, converting directly to Mimir format --------- Signed-off-by: Arve Knudsen <[email protected]>
What this PR does
Use optimized OTel metric translator in OTLP endpoint, converting directly to Mimir format.
The translation code is generated by downloading Go sources from mimir-prometheus, and transforming them to use Mimir protobuf types and enums via the gopatch tool. The generated files (_generated.go suffix) are checked into Git, and CI verifies that they are up to date with the mimir-prometheus version depended on.
The workflow should be that when we update the mimir-prometheus dependency, we should also execute
make generate-otlp
, to make sure we have the latest translation code. It's a minor hassle, but I think the performance gains are worth it.TODO
gopatch
in build imageBenchmark results
Which issue(s) this PR fixes or relates to
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.