-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Description
Currently, https://www.elastic.co/guide/en/fleet/8.15/monitor-elastic-agent.html#view-agent-status describes the unhealthy status as follows:
Elastic Agents have not checked in to Fleet Server. At this point, you may need to address the situation.
This is inaccurate. Agents will only report as unhealthy when one or more input/output reports as unhealthy. When agents miss check-ins for a period of time defaulting to 5 minutes, they will be considered offline. There is no intermediate state transition from healthy -> unhealthy -> offline when an agent is missing check-ins, and the agent transitions directly from healthy -> offline when it hasn't checked in for five minutes.
Explicitly, when an agent's last check-in status value is either error
or degraded
, the agent's status will be reported as "unhealthy".
@cmacknz can you sanity check this to make sure I'm not misrepresenting anything?
Resources
- https://www.elastic.co/guide/en/fleet/8.15/monitor-elastic-agent.html#view-agent-status
- https://github.com/elastic/kibana/blob/1b2cbf15d88401249eb8017d529ce88a866ce931/x-pack/plugins/fleet/server/services/agents/build_status_runtime_field.ts#L93-L134 ("error" status is coerced to "unhealthy" here
Collaboration
Please choose a preferred collaboration model.
Point of contact.
Main contact: @kpollich
Stakeholders: @elastic/fleet @elastic/elastic-agent