Files
orangecat/.github/workflows
Georgy ButaevandClaude Opus 4.8 78814deb83 feat(observability): expose box disk/mem on /api/health + alert on disk pressure
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>
2026-06-19 03:35:08 +02:00
..