Skip to main content
← Course 0 Syllabus (44 Lessons)/Part IV · Worked Labs & Full Lifecycle (Ch 14–24)
COURSE 0 · CH 16 · 941 WORDS · 5 MIN READLIVE VM: lab0-free-range · TASK T15

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.

Read Full Lesson + Split-Screen Linux VM Launch Guided Linux Quest (T15) →
WHAT YOU WILL BUILD & VERIFY IN THIS LESSON
  1. From metric to delivered alert
  2. Operate on a schedule
  3. Encrypted backup and fresh-cluster restore
  4. What the drill does and does not prove
  5. Recovery decisions under pressure
CRUCIBLE STUDIO VOICE EXCERPT

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.