mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 11:08:20 +01:00
The Hetzner box is the whole platform's single failure domain and was at ~68% disk
and climbing with zero visibility — a silent disk-full = hard outage. Since the app
runs as a standalone Node process directly on the box (not containerized), it can read
the real filesystem:
- src/lib/host-metrics.ts: statfs('/') + os mem → {disk_used_pct, mem_used_pct}
(percentages only — nothing sensitive — safe on the public health endpoint).
- /api/health now returns a host{} block alongside service status.
- uptime.yml (free off-box monitor) reads disk_used_pct and opens/auto-closes a
'disk-pressure' GitHub issue at ≥85% — early warning before the box fills.
Also recorded the 2026-06-19 DR restore drill result in the runbook (B2 pull →
pg_restore into a throwaway DB → real rows verified).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>