-
Notifications
You must be signed in to change notification settings - Fork 200
otel: add env variable to set agent.monitoring runtime #11018
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
base: main
Are you sure you want to change the base?
Conversation
732f736 to
66827dd
Compare
58d05ca to
3e3e7ae
Compare
3e3e7ae to
aad4f67
Compare
🔍 Preview links for changed docs |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
| monRuntimeManager := DefaultRuntimeManager | ||
| monRuntimeEnv := os.Getenv("AGENT_MONITORING_RUNTIME_EXPERIMENTAL") | ||
| switch monRuntimeEnv { | ||
| case ProcessRuntimeManager, OtelRuntimeManager: | ||
| monRuntimeManager = monRuntimeEnv | ||
| } | ||
|
|
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.
For reviewers: The right place for this logic should be containerCfgOverrides, but unfortunately due to config reloading the value is discarded. This is an experimental environment variable that will eventually be removed, so hopefully it is fine to keep it here.
What does this PR do?
This PR adds a new experimental environment variable, AGENT_MONITORING_RUNTIME_EXPERIMENTAL, which overrides the runtime used by
agent.monitoringcomponents. This env takes precedence over the value set in configuration files, but has lower precedence than the policy when the agent is enrolled in Fleet.Checklist
./changelog/fragmentsusing the changelog toolRelated issues