Heartbeat & Monitoring
How Heartbeats Work
Each enrolled agent sends a heartbeat to the backend every 60 seconds (±5s jitter to prevent thundering herd). The heartbeat includes:
- System metrics — CPU usage, memory usage, disk usage, uptime
- Agent version — Current binary version
- Hostname and OS information
Agent Status
| Status | Meaning |
|---|---|
| Online | Heartbeat received within the last 2 minutes |
| Offline | No heartbeat for more than 2 minutes |
Agent Management UI
The Agents page pairs a fleet-pulse rail with the agent table.

The rail on the left carries, top to bottom: an online/offline/stale ring, the attention chip (stale agents: active, but no completed task in 7 days; click it to list only those), version rollout, tag groups, key-rotation settings, and downloadable binaries per platform. On a narrow window the rail is replaced by a summary bar that opens it as a bottom sheet.
The table groups agents by their first tag and shows, per row:
- Status dot (accent = online, danger = offline) and hostname in mono
- Operating system and architecture
- Health score with a proportional bar
- A 24-hour heartbeat sparkline
- Tags, with × to remove one and + tag to add one (Tag Management)
- Agent version, plus
outdated/stale/key rotatingchips - Last-seen, coloured by staleness
Heartbeat sparklines
Every row's sparkline comes from a single fleet-wide request —
GET /api/agent/admin/agents/heartbeats?hours=24 — introduced in 2.1. Before
that the page issued one request per agent, which meant a 200-agent fleet fired
200 requests on every load. See
Bulk Heartbeat Buckets.
A flat line means the agent has not checked in during the window; gaps show exactly when it dropped.
Agent detail
Click a hostname for the per-agent view: Overview (system info, metadata, recent tasks), Task History, Heartbeat charts, and the Event Log.

Task History lists everything this endpoint has run, with type, duration, exit code, and retry chips:


Stale Task Detection
If an agent goes offline while executing a task, the task is automatically marked as failed with a stale detection message. This prevents tasks from hanging indefinitely.
Disconnect Reason Reporting
When an agent reconnects after being offline, it reports why it was disconnected. The reason appears in the Event Log tab on the agent detail page, next to the "Came Online" event.
| Reason | Icon | Meaning |
|---|---|---|
| Service Restart | ↻ | Agent process crashed and the OS service manager restarted it |
| Machine Reboot | ⏻ | The host machine was rebooted |
| Network Adapter Disabled | 📵 | Network interface was disabled or disconnected |
| Server Unreachable | 🖥 | Agent could reach the network but the server refused connection |
| DNS Failure | 🔍 | DNS resolution failed — server hostname could not be resolved |
| Network Unreachable | 📵 | No network route to the server |
| Connection Timeout | ⏱ | Server did not respond within the timeout period |
| TLS/Certificate Error | 🔒 | TLS handshake failed (expired certificate, untrusted CA) |
| Disk Pressure (Crash) | 💾 | Agent crashed with critically low disk space (< 100 MB free) |
| Memory Pressure (Crash) | 🧠 | Agent crashed with critically high memory usage (> 90% of total) |
| Network Recovery | 📶 | Generic network issue resolved (none of the above specific causes matched) |
| Update Restart | ⬇ | Agent was restarted after applying a self-update |
| Unknown | ? | Reason could not be determined (typically agents running an older version) |

Reasons are detected via a dual-layer system: agent-side error classification (HTTP error type, network adapter state checks per platform) and backend-side last-known metrics correlation. Process restarts with high memory or low disk at the time of the last heartbeat are correlated with the last-known metrics to infer crash causes (e.g., a service_restart following a heartbeat with > 90% memory usage is tagged as memory_pressure_crash).
Adaptive Heartbeat Backoff
During extended server outages, the agent automatically reduces its heartbeat and polling frequency to minimize wasted network requests:
| Consecutive Failures | Heartbeat Interval | Task Poll Interval |
|---|---|---|
| 0–5 | Normal (60s) | Normal (30s) |
| 6–10 | 5 minutes | 5 minutes |
| 11–20 | 15 minutes | 15 minutes |
| 21+ | 30 minutes (cap) | 30 minutes (cap) |
On the first successful heartbeat after an outage, both intervals snap back to normal immediately. The agent logs the recovery: connectivity recovered after N consecutive failures, resetting intervals.
Agent Health Score
Each agent is assigned a health score (0–100) visible in the Agents list and on the agent detail page. The score is computed from three metrics over the past 7 days:
| Component | Weight | Description |
|---|---|---|
| Heartbeat Consistency | 40% | Ratio of received heartbeats to expected heartbeats |
| Task Success Rate | 30% | Completed tasks ÷ (completed + failed tasks) |
| Stability | 30% | Fewer disconnections = higher score (10+ disconnects in 7 days = 0% stability) |
The score is color-coded in the UI:
- Green (80–100) — Healthy agent
- Amber (50–79) — Some reliability issues
- Red (0–49) — Unreliable, investigate
The Dashboard's Fleet health card shows fleet-wide numbers next to it: agents online, the 7-day task success rate and the mean time between failures.