16 Prove monitoring and disaster recovery
GET /metrics requires a separate MONITOR_TOKEN. A tenant API token does not grant monitoring access. The endpoint exports jobs by state and oldest queued age without per-user or per-job labels.
- From metric to delivered alert
- Operate on a schedule
- Encrypted backup and fresh-cluster restore
- What the drill does and does not prove
- Recovery decisions under pressure
Files: monitoring/, curl -sf http://127.0.0.1:8000/health, pg-xray. Environment: isolated local sockets and temporary data directories. The receipts in proof/ identify what actually ran. GET /metrics requires a separate MONITOR_TOKEN. A tenant API token does not grant monitoring access. The endpoint exports jobs by state and oldest queued age without per-user or per-job labels. Keep the monitoring endpoint private, and give Prometheus its credential through a restrictive file. A monitoring system that cannot authenticate should alert as a scrape failure rather than pretend the queue is empty. monitoring/prometheus.yml scrapes the local Compose API. alerts.yml declares APIUnavailable after two minutes of failed scrapes and QueueStalled after two minutes with queue age over 120 seconds.