Add SRE monitoring chapter and manual v5.0 (refs #19)
vpn-dns-gateway/pipeline/pr-main This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
New chapter "Introduction to SRE: Monitoring and Reliability" covering the eight Assignment 7 rubric rows: deployment and capacity trial, metrics and probes, HTTPS and exposure tests, dashboard and build comparison, SLI/SLO worked example and measured window, alert rules and tests, the Jenkins outage exercise with blameless review (#20, #21), and controls. - Title page and abstract for Assignment 7 "Grafana and Prometheus SRE -- Group", version 5.0; Document History entry. - Hosts table: monitoring containers, ports, volumes, metrics DNS, swap, disabled host services, monitoring and backup status. - Passwords table: Grafana billy and vsun1, monitoring secrets file, Discord webhook (hints only). - Glossary: SLI, SLA, SRE, error budget, exporter, scrape, contact point, blameless review. AI prompt log record. - EVIDENCE.md: SLO window, post-recovery build, probe status codes, improvement issues, Grafana accounts. Outage dashboard figure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -102,6 +102,7 @@ undo: systemctl unmask multipathd fwupd udisks2 ModemManager && systemctl enable
|
||||
- Pre-check: no Jenkins build process (python3/sh/git/durable) in gitea-jenkins-1; ci probe 1; HTTPS rule instances ci Normal, git Normal. (A first attempt aborted before injection because the check matched the ps header line.)
|
||||
- 16:05:00 INJECT `cd ~/gitea && docker compose stop jenkins`; container stopped 16:05:06.
|
||||
- Prometheus ci probe_success samples: 16:04:50 = 1; 16:05:20 = 0 (first failing probe); 0 at 16:05:50, 16:06:20, 16:06:50.
|
||||
- probe_http_status_code (ci): 200 at 16:04:20, 16:04:50; 502 (Caddy, upstream down) 16:05:20-16:09:50; 0 (no HTTP response while Jenkins was starting) at 16:10:20; 200 at 16:10:50.
|
||||
- Grafana rule HTTPS service down, instance ci: Normal until ~16:05:48; Pending observed 16:05:54; Alerting observed 16:06:52 (poll every ~6 s). Gitea instance Normal throughout.
|
||||
- 16:07 (12:07 PM EDT) Discord "[FIRING:1] HTTPS service down SRE https://ci.yebilly.me/login (https billy critical)", Value A=0, C=1, runbook_url present (screenshot).
|
||||
- Acknowledgement: Billy sent the FIRING screenshot to the operator (Claude session) before the restart; a Discord "ack" reply was posted afterward (its timestamp is later than the restart).
|
||||
@@ -118,3 +119,25 @@ undo: systemctl unmask multipathd fwupd udisks2 ModemManager && systemctl enable
|
||||
- Before 16:12:05: oldest TSDB sample 14:52:16; 160 `up{job="prometheus"}` samples in 2 h; dashboard Group 1 SRE v2 (7 panels); data source Prometheus http://prometheus:9090; rules HTTPS service down + Root disk space low (inactive); contact point team-alerts.
|
||||
- 16:12:09 `docker compose restart prometheus`; answering 16:12:15. After: oldest sample still 14:52:16 (history kept on volume monitoring_prometheus_data). Raw scrapes node 16:11:36, 16:12:06, 16:12:36, 16:13:06; https 16:11:50, 16:12:20, 16:12:50: no gap > 35 s (restart fell between scrapes).
|
||||
- 16:12:56 `docker compose restart grafana`; at 16:13:44 dashboard v2 7 panels, data source, both rules, contact point all present; admin login unchanged (volume monitoring_grafana_data). A restart shows persistence, not a backup restore.
|
||||
|
||||
## SLI short window around the incident (UTC)
|
||||
|
||||
- Window [10m] 16:03:00-16:13:00, evaluation time 2026-10-28 16:13:00 UTC, scrape interval 30 s (expected ~20 samples). Queries: 100*avg_over_time(probe_success{job="https",instance="<url>"}[10m]), count_over_time(...), sum_over_time(...).
|
||||
- Gitea https://git.yebilly.me/user/login: 100% (20 received, 20 successes).
|
||||
- Jenkins https://ci.yebilly.me/login: 45% (20 received, 9 successes, 11 failures). Raw: 1 at 16:03:20-16:04:50; 0 at 16:05:20-16:10:20; 1 at 16:10:50-16:12:50. No missing samples, so no unknown time; boundary: the first sample in the window is 16:03:20.
|
||||
- (First attempt evaluated at the wrong epoch, 16:23:00, giving 100%/20 for both; rerun with date -d.)
|
||||
|
||||
## Post-recovery verification (UTC)
|
||||
|
||||
- Billy pushed b6cf080 (d3a5e6b..b6cf080) after re-authorising Git Credential Manager (stale OAuth refresh token removed).
|
||||
- Gitea status vpn-dns-gateway/pipeline/head on b6cf080: pending 16:36:27, success 16:37:08 (webhook + status integration working after the outage).
|
||||
- Jenkins feature/issue-19-monitoring #2: start 16:36:34.6, duration 33.923 s, SUCCESS, "Ran 2 tests ... OK", commit b6cf08061815acd628bf3caaa90e38c46d57a8e7 (slower than #1's 11.8 s, consistent with swap pressure after the restarts).
|
||||
- Manual PDF build (Gitea Actions, runner latex-local on Vincent's laptop) runs only on pushes to main; it is verified at merge.
|
||||
|
||||
## Improvement issues from the blameless review
|
||||
|
||||
- #20 "Add an off-droplet uptime check for git, ci, and metrics" (priority 1, owner @vsun1) and #21 "Remove swap churn on The-Ocean (memory headroom)" (priority 2, owner @bill), opened by bill 2026-10-28.
|
||||
|
||||
## Grafana accounts
|
||||
|
||||
- 2026-10-28 17:03:14 UTC Billy created Grafana user vsun1 (Vincent Sun), org role Viewer, not server admin. Org users: billy Admin, vsun1 Viewer.
|
||||
|
||||
Reference in New Issue
Block a user