feat(plugins/opentelemetry): Replace PeriodicReader with direct gRPC export#400
Open
ValentinCB wants to merge 2 commits into
Open
feat(plugins/opentelemetry): Replace PeriodicReader with direct gRPC export#400ValentinCB wants to merge 2 commits into
ValentinCB wants to merge 2 commits into
Conversation
9937c87 to
b46d398
Compare
guigomcha
suggested changes
May 12, 2026
guigomcha
left a comment
Contributor
There was a problem hiding this comment.
Super nice, just a few questions
c27ced7 to
3fc5d99
Compare
guigomcha
approved these changes
May 15, 2026
guigomcha
left a comment
Contributor
There was a problem hiding this comment.
LGTM! nice improvement!
de427c7 to
d96be3a
Compare
ahuret
reviewed
May 18, 2026
ahuret
reviewed
May 18, 2026
ahuret
reviewed
May 18, 2026
ahuret
reviewed
May 18, 2026
ahuret
reviewed
May 18, 2026
ahuret
requested changes
May 18, 2026
ahuret
reviewed
May 18, 2026
b1e4f3c to
791abb3
Compare
ahuret
reviewed
May 21, 2026
ahuret
reviewed
May 21, 2026
115a2c4 to
7512a58
Compare
ahuret
previously approved these changes
May 21, 2026
TheElectronWill
requested changes
May 26, 2026
cbd27cc to
39a1893
Compare
39a1893 to
eca06b6
Compare
TheElectronWill
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A output plugin which exports Alumet metrics to an OpenTelemetry collector via gRPC.
This PR replaces the previous
opentelemetry-sdk-based implementation that used aPeriodicReader, which capped the export frequency at 1Hz regardless of Alumet's pipeline cadence. The new implementation calls the OTLP gRPC endpoint directly insidewrite(), allowing metrics to be exported at any frequency.Functional tests are also added to cover the main export behaviors.
For more info, please refer to
./plugins/opentelemetry/README.md.How to test
At the root of the repo, edit the
alumet-config.tomlfile. Lower the pool intervals of RAPL and Procfs under 1s, and add the[opentelemetry]config field:Start a local OpenTelemetry collector (e.g. with Docker):
Build the binary and launch Alumet with
raplandopentelemetry:You should see metrics being exported to your collector in real time.
To run the functional tests:
cargo test --test output -p plugin-opentelemetry