-
Notifications
You must be signed in to change notification settings - Fork 204
Switch to the otel runtime manager by default for self-monitoring #10204
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
Conversation
|
This pull request does not have a backport label. Could you fix it @swiatekm? 🙏
|
|
ca48a67 to
91a3eee
Compare
|
This pull request is now in conflicts. Could you fix it? 🙏 |
0b48117 to
58c6ae1
Compare
cf0a4a9 to
3cf99b9
Compare
4bbb647 to
b70dc80
Compare
# Conflicts: # internal/pkg/agent/application/monitoring/component/v1_monitor_test.go
2e1e851 to
c26dee6
Compare
|
I can reproduce the endpoint test failure if I do it manually. The reproduction is exactly what the test does:
|
💔 Build Failed
Failed CI Steps
History
cc @swiatekm |
|
Doing the above with debugs logs give me the following relevant logs: {"log.level":"info","@timestamp":"2025-10-15T20:45:35.223Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/application/coordinator.(*Coordinator).refreshComponentModel","file.name":"coordinator/coordinator.go","file.line":1769},"message":"Updating running component model","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-10-15T20:45:35.223Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/application/coordinator.(*Coordinator).refreshComponentModel","file.name":"coordinator/coordinator.go","file.line":1770},"message":"Updating running component model","log":{"source":"elastic-agent"},"components":[],"ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-10-15T20:45:35.223Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/application/coordinator.(*Coordinator).updateManagersWithConfig","file.name":"coordinator/coordinator.go","file.line":1779},"message":"Updating runtime manager model","log":{"source":"elastic-agent"},"components":null,"ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-10-15T20:45:35.224Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/application/coordinator.(*Coordinator).updateManagersWithConfig","file.name":"coordinator/coordinator.go","file.line":1781},"message":"Updating otel manager model","log":{"source":"elastic-agent"},"components":null,"ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-10-15T20:45:35.227Z","log.logger":"otel_manager","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/otel/manager.(*OTelManager).Run","file.name":"manager/manager.go","file.line":327},"message":"new config hash ([]) is different than the old config hash ([167 69 55 143 124 32 164 165 106 69 11 110 206 119 75 169]), applying update","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"} |
|
What I think is happening is we are sending an empty configuration to the otel manager which stops the collector and it isn't clearing the previous status. |
|
Created a separate bug for the endpoint test failure on unenroll #10634 |
|
Closing in favor of #10594 |




What does this PR do?
Why is it important?
Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
How to test this PR locally
Related issues
Questions to ask yourself