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

[Elastic Agent] Enable HTTP endpoint configuration for Elastic Agent #107

Closed
nimarezainia opened this issue Dec 7, 2021 · 12 comments
Closed
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Team:Fleet Label for the Fleet team v8.4.0

Comments

@nimarezainia
Copy link
Contributor

Describe the enhancement:

Enable the HTTP Endpoint for Elastic Agent to bring us to parity. This should be done on a "per policy basis"

Describe a specific use case for the enhancement or feature:

as per what is already available for filebeat

@nimarezainia nimarezainia added 8.2-candidate Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Fleet Label for the Fleet team labels Dec 7, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@jlind23 jlind23 added v8.2.0 and removed Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team 8.2-candidate labels Jan 28, 2022
@jlind23
Copy link
Contributor

jlind23 commented Jan 28, 2022

@ph moving it to control plane as the team should own this.

@ph
Copy link
Contributor

ph commented Jan 28, 2022

@jlind23 Agree.

Looking at the linked "enhancement request", exposing "only" the HTTP endpoint of Agent would not solve the real problem or the underlying need. Which is Expose the state of Syslog input or at least Filebeat state through HTTP endpoint (/stats available through HTTP endpoint do not reveal anything about underlying Beats).

If I wanted to solve that case I would like to have something like this

Elastic Agent exposes the health status of input (TCP with id 3433 is healthy)
Elastic Agent exposes available port.

The two options above allow you to have "healthy" check + know if you need to expose it to a load balancer.

@jlind23 jlind23 transferred this issue from elastic/beats Mar 7, 2022
@jlind23 jlind23 added v8.4.0 and removed v8.2.0 labels Mar 29, 2022
@jlind23
Copy link
Contributor

jlind23 commented May 24, 2022

@ph shouldn't we close this one and rather rely on the liveness probe one?

@jlind23
Copy link
Contributor

jlind23 commented May 27, 2024

@nimarezainia is this one still required? Haven't seen traction on this for a while.

@cmacknz
Copy link
Member

cmacknz commented May 27, 2024

For standalone this has been implemented for a while, and #4586 made it reloadable from Fleet. Closing.

@cmacknz cmacknz closed this as completed May 27, 2024
@zez3
Copy link

zez3 commented May 27, 2024

@cmacknz or @nimarezainia what would then be the recommend way to LB healthcheck managed Agents?

@cmacknz
Copy link
Member

cmacknz commented May 27, 2024

In 8.15.0 there will be a /liveness endpoint that is enabled whenever agent.monitoring.http.enabled: true is set in the policy, available where that same server is configured to be exposed. By default it returns a 200 OK status as long agent's internal main loop is responsive and can process configuration changes. It can be configured to also monitor the component states to return an error if anything is degraded or failed.

There's no documentation to point at yet because it isn't released.

@nimarezainia
Copy link
Contributor Author

fyi: @kilfoyle

@nimarezainia
Copy link
Contributor Author

@zez3 you can preview the Fleet changes here: elastic/kibana#180922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Team:Fleet Label for the Fleet team v8.4.0
Projects
None yet
Development

No branches or pull requests

6 participants