HostAgentics Monitoring
Last updated: 2026-08-06
This document describes how the HostAgentics platform monitors runtimes and the control plane: health checks, metric and usage snapshots, limit warnings, the status page, and reference codes. A core rule applies everywhere: **when a value is not available, surfaces say "Data unavailable" — they never show an invented number.**
1. Runtime health checks
2. Metric snapshots
`metric_snapshots` capture CPU percent, memory used, storage used, and restart counts per runtime at intervals. **All metric fields are nullable**: a null value means data was not available at capture time. The dashboard renders nulls as "Data unavailable" — there is no interpolation, no placeholder zero, and no fabricated trend. Charts may show gaps; they never show invented points.
3. Usage snapshots and limit warnings
`usage_snapshots` track monthly outbound transfer, workflow executions, and agent task counts per period (unique per runtime + period start, so the limit engine upserts safely). The limit engine compares measured usage against the plan's entitlements (`docs/resource-limits.md`) and emits warnings at **70%, 85%, 95%, and 100%** of storage and of monthly outbound transfer:
4. Status page
`status.hostagentics.com` reflects platform components (`status_components`: dashboard, provisioning, n8n hosting, agent hosting, backups, updates, API, Relay) with statuses operational / degraded / partial_outage / major_outage / maintenance. Incidents (`incidents`) carry public updates (timestamp, status, message) published through the incident process. A machine-readable aggregate is exposed at `GET /status/health.json` for monitors. Component status is derived from real checks — a component is never marked operational while its checks are failing.
5. HA-* reference codes
Errors that reach customers carry a safe message plus an internal **HA-*** diagnostic reference (e.g. `runtime_operations.diagnosticCode`). Customers can quote the code; support and on-call look it up to find the full internal context (correlation ID, provider error, steps). The codes are stable identifiers in the platform's error taxonomy — never free-form text, and never containing provider identifiers.