Node monitoring: uptime, alerts and disk-full prevention
A node without monitoring is a node you find out about when your app breaks. The checks that matter are few and specific: is the node synced, is it peering, is the disk filling, and is the process alive? Monitoring that watches those four things and alerts on thresholds that make sense keeps a node honest — and keeps disk-full, the most common self-inflicted outage, off the calendar.
The four checks that matter
- Sync status. Is the node at the chain's head, and how far behind is it? Sync lag is the leading indicator for most incidents: a node that stops advancing is about to serve stale data.
- Peer count and quality. Peers at or above the client's healthy range, from diverse networks. Peer collapse precedes sync stalls and eclipse risk.
- Disk headroom. Free space and growth rate. A node that fills its disk stops writing — and a stopped writer is a stopped chain participant.
- Process and RPC health. The node process is up, and the RPC endpoint answers with sane latency. Liveness checks catch crashes; latency checks catch the slow death.
Disk-full prevention, the specific way
Disk-full is the failure people keep having because it is predictable:
- Track the growth rate, not just free space. Chain data grows on a schedule. Alert when free space divided by growth rate falls below your response window — days, not percent.
- Watch the logs and temp directories. Logs, crash dumps, and temporary sync files eat disk silently. Rotate and cap them before they discover your partition.
- Plan the expansion before you need it. Know which data can be pruned, which snapshots can be moved, and which drive you would add — and practice once, on a testnet node.
Alerts that earn attention
- Tier by consequence. Page on sync stalls and process death; ticket on peer dips and slow growth. An alert that cries wolf gets ignored, and the ignored one is the real incident.
- Burn windows. Require a condition to persist before firing. Momentary spikes are noise; sustained anomalies are incidents.
- Every alert carries a runbook. What to check, what to do, who to escalate to. Three in the morning is not the time to reason from first principles.
The minimal stack
- Metrics collection for disk, memory, CPU, and network per node.
- Client-specific exporters for sync height, peer count, and RPC latency.
- A status page or dashboard that shows the four checks at a glance.
- Alert routing that reaches a human, with escalation when the first responder does not acknowledge.
The takeaway
Node monitoring reduces to four checks — sync, peers, disk headroom, process health — and one discipline: alert on thresholds that predict consequence, with burn windows and runbooks attached. Disk-full is preventable by tracking growth rate against response time, not by staring at percent free. Monitor the leading indicators, and the node stays honest without anyone watching it.