Skip to content
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

V2: V1 monitoring is unconditionally enabled during fleet server bootstrap #1761

Closed
cmacknz opened this issue Nov 21, 2022 · 2 comments · Fixed by #1923
Closed

V2: V1 monitoring is unconditionally enabled during fleet server bootstrap #1761

cmacknz opened this issue Nov 21, 2022 · 2 comments · Fixed by #1923
Assignees
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team V2-Architecture v8.6.0

Comments

@cmacknz
Copy link
Member

cmacknz commented Nov 21, 2022

The V1 monitoring flag is enabled by default (see here), even during fleet server bootstrap.

In particular, in ESS during fleet server bootstrap none of the agent monitoring settings are configured so it uses the default setting of enabled with a default output of "localhost:9200" (see the fleet server bootstrap config). This leads to confusing messages in the logs about the agent trying to connect to localhost:9200.

We should not enable monitoring during fleet server bootstrap.

See related discussion in #1731 (comment) where determining the root cause of the connection attempts to localhost:9200 took significant time.

@cmacknz cmacknz added bug Something isn't working V2-Architecture v8.6.0 labels Nov 21, 2022
@pierrehilbert pierrehilbert added the Team:Elastic-Agent Label for the Agent team label Nov 29, 2022
@michalpristas
Copy link
Contributor

i agree with bootstrap but are you sure we should disable monitoring by default?
it would mean that any user running standalone would need to enable it in a config to get the best experience and see agent logs and metrics in the dashboards.

@cmacknz
Copy link
Member Author

cmacknz commented Dec 8, 2022

Agreed, I believe I wrote this too quickly. Monitoring can be on by default, except during Fleet server bootstrap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team V2-Architecture v8.6.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants