2.4 KiB
2.4 KiB
SSW590 monitoring runbook
Owner: Shubham Bhayana (SB). Verifier/backup: Sandya Devanahally (SD).
Alerts go to the team-alerts Grafana contact point (team Discord channel; webhook URL kept outside Git).
Dashboard: https://metrics.ssw590.abrdns.com/d/ssw590-ops
Alert: HTTPS service unavailable (severity: critical)
Fires per service when probe_success{job="https"} stays 0 for 1 minute, or when the series is missing.
- Acknowledge in the alert channel ("ack - investigating").
- Open the dashboard; confirm which service is DOWN and whether the other one is still UP.
- On the droplet:
cd /opt/startup && docker compose ps. If the service is stopped,docker compose start <service>; if running but unhealthy,docker compose logs --tail=100 <service>. - If both probes fail, check Caddy (
docker compose logs --tail=50 caddy), DNS and the certificate. - If only monitoring is affected (no data), check
cd /opt/startup/monitoring && docker compose psand the Prometheus targets (up). - Recovery is confirmed when
probe_successreturns 1 and the RESOLVED notification arrives. Then run one Jenkins build and check the Gitea login page. - Record start/ack/restore times in the incident notes.
Alert: Root filesystem free space below 15% (severity: warning)
Fires when available/size for the host root filesystem (/dev/vda1, ext4, /) stays below 15% for 5 minutes. 15% leaves room for logs, image pulls and Jenkins workspaces on a 25 GB disk before services fail.
df -h /anddocker system dfon the droplet.- Remove unused images:
docker image prune(neverdocker compose down -v; it deletes data volumes). - Clean old Jenkins workspaces/builds; check
/var/lib/docker/containers/*/*-json.logsizes. - If still low, plan a disk/volume resize and open a Gitea issue.
Restore / rollback
- Monitoring config lives in
monitoring/in this repository and on the droplet at/opt/startup/monitoring. - Pause:
docker compose stop/docker compose start. Do not usedown -v. - Roll back a config change: restore the previous file from Git (or
compose.yaml.bak),docker compose config --quiet, thendocker compose up -d <service>. - State that is not in Git: the
monitoring_prometheus_dataandmonitoring_grafana_datavolumes (Grafana users, contact point, alert rules). Back up withdocker run --rm -v monitoring_grafana_data:/d -v $PWD:/b alpine tar czf /b/grafana-data.tgz -C /d .while Grafana is stopped.