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:
@@ -15,41 +15,62 @@ October 22--23, 2026 (\ChapterRef{JenkinsCI}) the droplet record was updated
|
||||
for the 1\,GiB resize, the Jenkins service, and \texttt{ci.yebilly.me}; the
|
||||
Color Buttons app was marked retired; and the Passwords table gained the
|
||||
Jenkins administrators, the \texttt{jenkins-bot} Gitea account, and its token.
|
||||
On October 28, 2026 (\ChapterRef{SREMonitoring}) the droplet record gained
|
||||
the four monitoring containers, \texttt{metrics.yebilly.me}, the second swap
|
||||
file, and real monitoring status; the Passwords table gained the Grafana
|
||||
accounts, the monitoring secrets file, and the Discord webhook.
|
||||
|
||||
\section{Hosts}
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{@{}L{3.3cm}Y@{}}
|
||||
\caption{Hosts\label{Table:Hosts}}\\
|
||||
\toprule \textbf{Field} & \textbf{Droplet The-Ocean (git.yebilly.me, ci.yebilly.me)}\\ \midrule
|
||||
\toprule \textbf{Field} & \textbf{Droplet The-Ocean (git, ci, metrics .yebilly.me)}\\ \midrule
|
||||
\endfirsthead
|
||||
\toprule \textbf{Field} & \textbf{Droplet The-Ocean (git.yebilly.me, ci.yebilly.me)}\\ \midrule
|
||||
\toprule \textbf{Field} & \textbf{Droplet The-Ocean (git, ci, metrics .yebilly.me)}\\ \midrule
|
||||
\endhead
|
||||
\bottomrule \endlastfoot
|
||||
Role & Gitea work hub (Gitea 1.27.3 behind Caddy 2.11.4 TLS proxy); since
|
||||
22 Oct 2026 also the Jenkins 2.580.1 LTS controller, which runs the CI builds.
|
||||
The Assignment 3 Color Buttons app (29 Sep 2026) is retired: container
|
||||
22 Oct 2026 also the Jenkins 2.580.1 LTS controller, which runs the CI builds;
|
||||
since 28 Oct 2026 also the monitoring stack (Prometheus 3.15.1, Grafana OSS
|
||||
13.2.5, Node Exporter 1.12.1, Blackbox Exporter 0.29.1). The Assignment 3 Color Buttons app (29 Sep 2026) is retired: container
|
||||
stopped with restart policy \texttt{no}; its Caddy route remains\\
|
||||
Environment & Course production (team use)\\
|
||||
Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
|
||||
512\,MB to the 1\,GiB Basic plan in October 2026 (961\,MiB reported, 25\,GB
|
||||
plan disk, 1\,GiB swap file)\\
|
||||
plan disk); swap files \texttt{/swapfile} and \texttt{/swapfile2}, 1\,GiB
|
||||
each (second added 28 Oct 2026); \texttt{multipathd}, \texttt{fwupd},
|
||||
\texttt{udisks2}, and \texttt{ModemManager} disabled and masked\\
|
||||
Public address / DNS & IPv4 \texttt{147.182.178.136}; \texttt{A} records
|
||||
\texttt{git}, \texttt{ci}, and \texttt{colors} \texttt{.yebilly.me}; public
|
||||
\texttt{git}, \texttt{ci}, \texttt{metrics}, and \texttt{colors} \texttt{.yebilly.me}; public
|
||||
IPv6 \texttt{2604:a880:400:d1:0:5:22d:6001} assigned but not published in DNS\\
|
||||
Private services & Gitea \texttt{:3000} and Jenkins \texttt{:8080} (512\,MiB
|
||||
RAM, 0.75 CPU cap; agent port disabled) on Docker network \texttt{gitea\_web},
|
||||
no host ports; SQLite file in volume \texttt{gitea\_gitea-data}; Jenkins state
|
||||
in volume \texttt{gitea\_jenkins-home}\\
|
||||
in volume \texttt{gitea\_jenkins-home}. Monitoring (Compose project
|
||||
\texttt{monitoring}, no host ports): Prometheus \texttt{:9090} (128\,MiB),
|
||||
Node Exporter \texttt{:9100} and Blackbox Exporter \texttt{:9115} (32\,MiB
|
||||
each) on network \texttt{monitoring\_monitoring}; Grafana \texttt{:3000}
|
||||
(192\,MiB) also on \texttt{gitea\_web}; Blackbox at \texttt{172.30.90.10} on
|
||||
\texttt{gitea\_probe} (172.30.90.0/28); volumes
|
||||
\texttt{monitoring\_prometheus\_data} (7\,d / 500\,MB) and
|
||||
\texttt{monitoring\_grafana\_data}\\
|
||||
Exposed ports & 443/TCP and 80/TCP to all; 22/TCP to approved team addresses only
|
||||
(Cloud Firewall \texttt{gitea-fw}); \texttt{ci.yebilly.me} answers only
|
||||
Stevens 155.246.0.0/16 and team addresses (Caddy allowlist), 403 otherwise\\
|
||||
(Cloud Firewall \texttt{gitea-fw}); \texttt{ci.yebilly.me} and
|
||||
\texttt{metrics.yebilly.me} answer only Stevens 155.246.0.0/16 and team
|
||||
addresses (Caddy allowlist; \texttt{ci} also the probe address), 403
|
||||
otherwise; monitoring ports 9090, 9100, 9115 not reachable\\
|
||||
Owner & BY (server administration); VS (review)\\
|
||||
HTTPS URLs & \url{https://git.yebilly.me}, \url{https://ci.yebilly.me/login}\\
|
||||
HTTPS URLs & \url{https://git.yebilly.me}, \url{https://ci.yebilly.me/login},
|
||||
\url{https://metrics.yebilly.me/login}\\
|
||||
Backup status & No backup job; container-replacement persistence verified for
|
||||
Gitea (\ChapterRef{GiteaFoundation}) and restart persistence for Jenkins
|
||||
(\ChapterRef{JenkinsCI}) only\\
|
||||
Monitoring status & No alerting configured; checked manually with
|
||||
\texttt{docker compose ps}, \texttt{docker stats}, and logs\\
|
||||
Gitea (\ChapterRef{GiteaFoundation}), restart persistence for Jenkins
|
||||
(\ChapterRef{JenkinsCI}) and for Prometheus and Grafana
|
||||
(\ChapterRef{SREMonitoring}); manual volume backup procedure in
|
||||
\texttt{monitoring/README.md}\\
|
||||
Monitoring status & Prometheus and Grafana: host CPU, memory, root disk, and
|
||||
HTTPS probes of Gitea and Jenkins every 30\,s; alerts \emph{HTTPS service
|
||||
down} and \emph{Root disk space low} to Discord \texttt{\#devops-alerts}.
|
||||
Shares the droplet's failure domain; no external check yet (issue~\#20)\\
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
@@ -90,6 +111,10 @@ Gitea \texttt{jenkins-bot} (added 22 Oct 2026) & BY & BY's password manager; use
|
||||
Jenkins \texttt{billy} & BY & BY's password manager & Administer (all)\\
|
||||
Jenkins \texttt{vsun1} & VS & VS's password manager & Administer (all)\\
|
||||
Jenkins initial admin password & --- & One-time setup secret in \texttt{/var/jenkins\_home/secrets/}; read once by BY, superseded by named accounts & Setup only\\
|
||||
Grafana \texttt{billy} (added 28 Oct 2026) & BY & BY's password manager; initial value in the monitoring secrets file, used only when Grafana first created its database & Grafana Admin\\
|
||||
Grafana \texttt{vsun1} (added 28 Oct 2026) & VS & VS's password manager; temporary password set by BY and sent privately, to be changed by VS at first login & Viewer\\
|
||||
Monitoring secrets \texttt{.env.secret} & BY & \texttt{\textasciitilde/monitoring/.env.secret} on the droplet, mode 600, root; typed by BY; holds the initial Grafana admin password and the Discord webhook URL; never in Git & n/a\\
|
||||
Discord webhook \texttt{Grafana} & BY & BY's password manager and the monitoring secrets file; revoke under \texttt{\#devops-alerts} $\rightarrow$ Integrations $\rightarrow$ Webhooks & Post to \texttt{\#devops-alerts}\\
|
||||
CI allowlist \texttt{.env} & BY & \texttt{\textasciitilde/gitea/.env} on the droplet, root-only; holds team and approved grader IP addresses (personal data, not a secret); grader entries are removed after grading & n/a\\
|
||||
DigitalOcean team & BY, VS & Each member's own login, in their password manager & Team member\\
|
||||
Namecheap (\texttt{yebilly.me}) & BY & BY's password manager & Domain owner\\
|
||||
|
||||
Reference in New Issue
Block a user