Switch to otel self-monitoring by default#10594
Merged
Conversation
Contributor
|
This pull request does not have a backport label. Could you fix it @swiatekm? 🙏
|
Contributor
|
This pull request is now in conflicts. Could you fix it? 🙏 |
292908a to
1722db1
Compare
4 tasks
This was referenced Oct 21, 2025
faa852e to
df78f0c
Compare
# Conflicts: # internal/pkg/agent/application/monitoring/component/v1_monitor_test.go
df78f0c to
fdfda2b
Compare
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @swiatekm |
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
8 tasks
cmacknz
approved these changes
Oct 28, 2025
Member
|
Creating the 9.2 backport now that we are unblocked. |
mergify bot
pushed a commit
that referenced
this pull request
Oct 31, 2025
* Switch to the otel runtime manager by default for self-monitoring * Update monitoring tests # Conflicts: # internal/pkg/agent/application/monitoring/component/v1_monitor_test.go * Add changelog entry (cherry picked from commit 79931dd)
5 tasks
ebeahan
pushed a commit
that referenced
this pull request
Oct 31, 2025
* Switch to the otel runtime manager by default for self-monitoring * Update monitoring tests # Conflicts: # internal/pkg/agent/application/monitoring/component/v1_monitor_test.go * Add changelog entry (cherry picked from commit 79931dd) Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
hayotbisonai
pushed a commit
to hayotbisonai/elastic-agent
that referenced
this pull request
Nov 23, 2025
* Switch to the otel runtime manager by default for self-monitoring * Update monitoring tests # Conflicts: # internal/pkg/agent/application/monitoring/component/v1_monitor_test.go * Add changelog entry
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.
What does this PR do?
Switches Elastic Agent self-monitoring to use the otel runtime by default. The self-monitoring components will run as receivers within a managed otel collector, rather than individual processes.
Why is it important?
This is the first step in an effort to give a similar treatment to all inputs. The benefit of this will be improved resource efficiency and compatibility with the otel universe.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog tool[ ] I have added an integration test or an E2E testDisruptive User Impact
There should be no user-facing impact, other than reduced resource consumption. If there is one, this change can be reversed by setting
agent.monitoring._runtime_experimental: process.How to test this PR locally
Build agent and run it with the default configuration. You should see an otel collector process, and the self-monitoring inputs should be listed in status as
beats-receiver.Related issues