Add SRE monitoring chapter and manual v5.0 (refs #19)
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:
2026-10-28 13:08:23 -04:00
co-authored by Claude Opus 5.5
parent b6cf080618
commit 336eaaefa7
9 changed files with 903 additions and 27 deletions
+50
View File
@@ -679,3 +679,53 @@ changed. The revision is checked through the complete local TinyTeX build,
diagnostic inspection, and visual review of the affected PDF pages.
No commit, push, remote configuration change, or submission is performed
as part of this correction.
\section{Assignment 7 Monitoring Deployment, Tests, and Chapter}
Date: October 27--28, 2026; Tool: Anthropic Claude Code (Claude Opus 5.5);
Human: Billy Ye, with Vincent Sun as verifier and reviewer.
Inputs: instructor manual version 1.42 (Chapter 5), found in Billy's
downloads after Billy asked to implement ``chapter 5 of this manual''; the
repository and its AI guidance; Billy's decisions (measure capacity before
any resize and then try a capped deployment on the 1\,GiB plan, alerts to a
Discord webhook, hostname \texttt{metrics.yebilly.me}, Claude running droplet
commands over SSH with Billy approving each step, disabling four unused host
services after Claude showed the disk and boot checks); Billy's DNS record,
Discord channel and webhook, issue \#19, secrets file, Grafana login,
screenshots, pushes, and improvement issues \#20 and \#21.
Claude synced both checkouts, measured the baseline, chose and verified
pinned image digests, wrote the \texttt{monitoring/} configuration, the
Caddy and Compose changes, the dashboard, alert rules, and README runbooks;
validated them locally (Compose, \texttt{promtool}, \texttt{caddy validate},
and a throwaway Grafana run); deployed them after backing up the Caddy files;
ran the exposure, contact-point, capacity-alert, outage, persistence, and SLO
queries; and wrote \ChapterRef{SREMonitoring}, the Hosts and Passwords
updates, glossary terms, title page, abstract, and Document History. Billy
typed every secret himself: Claude never saw the Grafana password or the
webhook URL. API calls read the password from the Grafana container's
environment without printing it.
Human/AI corrections: the local Grafana run rejected an alert template
written with \texttt{\$\$labels}; the deployed Grafana could not read its
configuration after the Windows upload (fixed with \texttt{chmod}); Grafana~13
had removed the old contact-point test endpoint, so the replacement was found
from its own error message; one Grafana login from Claude failed because a
password was read from the file with untrimmed whitespace; the first
build-check before the outage matched the \texttt{ps} header and aborted
before anything was stopped; one SLO query was first evaluated at the wrong
time and was rerun; Billy's partial home IP address was removed from the
evidence file before commit; the push from Claude's shell failed
authentication, so Billy pushed and re-authorized Git Credential Manager.
Billy's questions about the CPU readings led to the I/O-wait finding and the
dashboard change.
Outputs used: commits \texttt{d3a5e6b} and \texttt{b6cf080} and the chapter
commit on \texttt{feature/issue-19-monitoring};
\texttt{monitoring/EVIDENCE.md}; \ChapterRef{SREMonitoring}; this record.
Assumptions and unresolved items: the title-page assignment title comes
from the Canvas page Billy showed (``\#7 Grafana and Promethous SRE --
Group''), with the spelling of Prometheus corrected; the acknowledgement was given to Claude before the restart, and
Billy's Discord reply came later; Billy created Vincent's Grafana
account \texttt{vsun1} as Viewer; the 24-hour SLO was not evaluated; the manual-PDF build needs
Vincent's runner when the branch is merged. No pull request, merge, or
submission was performed by Claude.