Skip to content

[9.2] (backport #10594) Switch to otel self-monitoring by default#10958

Merged
ebeahan merged 1 commit into9.2from
mergify/bp/9.2/pr-10594
Oct 31, 2025
Merged

[9.2] (backport #10594) Switch to otel self-monitoring by default#10958
ebeahan merged 1 commit into9.2from
mergify/bp/9.2/pr-10594

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 31, 2025

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 read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

Disruptive 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


This is an automatic backport of pull request #10594 done by [Mergify](https://mergify.com).
* 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)
@mergify mergify bot requested a review from a team as a code owner October 31, 2025 13:57
@mergify mergify bot added the backport label Oct 31, 2025
@mergify mergify bot requested review from pkoutsovasilis and swiatekm and removed request for a team October 31, 2025 13:57
@mergify mergify bot added the backport label Oct 31, 2025
@github-actions github-actions bot added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Oct 31, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@ebeahan ebeahan enabled auto-merge (squash) October 31, 2025 15:17
@ebeahan ebeahan merged commit 601888d into 9.2 Oct 31, 2025
24 checks passed
@ebeahan ebeahan deleted the mergify/bp/9.2/pr-10594 branch October 31, 2025 16:22
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

cc @swiatekm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

4 participants