-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Fleet] Fix monitoring.enabled for agentless #241508
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
|
Pinging @elastic/fleet (Team:Fleet) |
…tion_tests/ci_checks
Do we need kibana/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/full_agent_policy.ts Line 765 in afbe65e
|
That a good point agentless has Edit: @jen-huang it seems it will keep the value from the file as they are not overided by the fleet config (it's what it's happening in cloud) |
|
I pulled locally and I see this in the agent yml with default agentless policy settings which looks expected based on the changes here: I updated the monitoring settings for the policy to explicitly enable the http endpoint: the saved object becomes: and the agent yml becomes: @nchaulet So you're saying that Also spotted this when I tried to look at the agent yml (with http turned on), but download yml works fine, and it happens for regular agent policies too so it's probably not related to the changes here - I'll take a look at this separately: |
Yes that another reason to have a dedicated API for agentless policies and do not allow to edit their agent policies #240879
Not really the |
|
@elasticmachine merge upstream |
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
History
|
|
@elasticmachine merge upstream |
|
we decided the fix will be in agentless agent where, the agent will honor the config on disk, so no need to modify Kibana, it will be more future proof as we could easily fix any config issue for agentless controller instead of relying on a Kibana release |


Summary
Disabling monitoring for agentless had the unwanted side effect of disabling the http monitoring server.
We had the similar issue with could policies and it was mitigated by adding the
keep_monitoring_aliveflag.That PR enable that flag for all the agentless flag