-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Enable agent.monitoring.http
settings on agent policy UI
#180922
Conversation
Pinging @elastic/fleet (Team:Fleet) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Moving this back to draft as the reload changes are being reverted: elastic/elastic-agent#4583 |
Should be ready to enable again: elastic/elastic-agent#4586 |
/ci |
I think it's the host we want to listen to, so. I guess it make sense to make this configurable if we want to listen on |
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.
Can we make the display name and description better? The current values don't convey much meaning, a user would need to go to the docs to understand what this setting does.
My suggestion:
HTTP monitoring endpoint
Enables a liveness HTTP endpoint that returns the overall health of Elastic Agent. Can be used by Kubernetes to restart the container, for example.
@kilfoyle Can you suggest something better? More background is in elastic/elastic-agent#390. Also, I think we need a section for this setting on this page or expand the existing Override the default monitoring port
section, not sure if there's a docs issue yet.
I like the text @jen-huang suggested. Just one small tweak so the second sentence is complete:
Regarding the docs, @juliaElastic would you mind opening an issue for those? I think this Enable custom settings in an agent policy page might actually not be the best place for the changes, since those are all things you can do through the API because the setting isn't available in Fleet. Instead, I think we'd probably want a brief mention on the Monitoring Elastic Agents and a full description somewhere in the Fleet settings pages, but let me know if that doesn't seem right. |
You want to default to localhost so that the server is not exposed off of the current host. 0.0.0.0 could for example expose the server on an internet facing network. If you set it to null you are just deferring to the agent's default, which should also be localhost for the same reason. Better to explicitly list what the default is. |
@kilfoyle Thanks for the suggestion, created an issue: elastic/ingest-docs#1073 |
Updated the title and description. |
In 8.15.0 they should work from Fleet, we have an integration test that confirms it is reloadable using the overrides API https://github.com/elastic/elastic-agent/blob/fdba118cf3cb5ccff1dc6c9f1b747c4d1471248e/testing/integration/monitoring_probe_reload_test.go#L108-L124 |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Tested
In the agent diagnostics I'm seeing the changed config in
|
@juliaElastic @cmacknz I am not seeing this monitoring enable switcher in my kibana v8.15.0. |
@rgarcia89 Those settings are not enabled yet, as I couldn't successfully test it. We can create an issue to enable and test again. |
Understood so they will come in the next version? Otherwise how can I enable the liveness probe for an elastic-agent managed daemonset now? I am currently using https://github.com/elastic/elastic-agent/blob/main/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml Thanks |
@cmacknz Could you help with this? I'm not familiar with elastic-agent daemonsets. |
…nitoring.http.buffer.enabled` to agent policy advanced settings (#190984) ## Summary Ref #180922 Re-add the `agent.monitoring.enabled` and `agent.monitoring.buffer.enabled` settings under Agent Policy -> Advanced Settings. cc @pierrehilbert
Summary
Related to https://github.com/elastic/ingest-dev/issues/2471
With elastic/elastic-agent#4499 merged, it became possible to reload monitoring settings changes in a running agent, so enabling these settings on the UI.
To verify:
@cmacknz Does it make sense to allow changing the host name? It seems to me that monitoring can only work in localhost.
Another question, how can we verify that the
buffer.enabled
setting is applied correctly?Also, I'm not sure if switching off the
enabled
flag did anything, seeing this again in the logs: