Files

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.

  1. Acknowledge in the alert channel ("ack - investigating").
  2. Open the dashboard; confirm which service is DOWN and whether the other one is still UP.
  3. 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>.
  4. If both probes fail, check Caddy (docker compose logs --tail=50 caddy), DNS and the certificate.
  5. If only monitoring is affected (no data), check cd /opt/startup/monitoring && docker compose ps and the Prometheus targets (up).
  6. Recovery is confirmed when probe_success returns 1 and the RESOLVED notification arrives. Then run one Jenkins build and check the Gitea login page.
  7. 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.

  1. df -h / and docker system df on the droplet.
  2. Remove unused images: docker image prune (never docker compose down -v; it deletes data volumes).
  3. Clean old Jenkins workspaces/builds; check /var/lib/docker/containers/*/*-json.log sizes.
  4. 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 use down -v.
  • Roll back a config change: restore the previous file from Git (or compose.yaml.bak), docker compose config --quiet, then docker compose up -d <service>.
  • State that is not in Git: the monitoring_prometheus_data and monitoring_grafana_data volumes (Grafana users, contact point, alert rules). Back up with docker run --rm -v monitoring_grafana_data:/d -v $PWD:/b alpine tar czf /b/grafana-data.tgz -C /d . while Grafana is stopped.