Reconcile operator runbooks with verified monitoring results
manual-pdf / build-manual (push) Successful in 2m28s

This commit is contained in:
2026-10-30 21:01:32 +00:00
parent fb9407a011
commit 7540f0c2cd
3 changed files with 23 additions and 19 deletions
+10 -11
View File
@@ -41,7 +41,7 @@ pinned in Compose; the digests identify the images actually inspected.
\fbox{\begin{minipage}{0.94\linewidth}\centering \fbox{\begin{minipage}{0.94\linewidth}\centering
\textbf{Primary Droplet: Ubuntu 24.04, 1 CPU, 2 GB RAM, 10 GB disk}\\[5pt] \textbf{Primary Droplet: Ubuntu 24.04, 1 CPU, 2 GB RAM, 10 GB disk}\\[5pt]
Browser $\xrightarrow{\mathrm{HTTPS}\ 443}$ \fbox{Caddy}\\ Browser $\xrightarrow{\mathrm{HTTPS}\ 443}$ \fbox{Caddy}\\
\texttt{gitea\_default} proxy network: Caddy routes by hostname\\[4pt] \path{gitea_default} proxy network: Caddy routes by hostname\\[4pt]
\fbox{Gitea :3000}\quad \fbox{Jenkins :8080}\quad \fbox{Gitea :3000}\quad \fbox{Jenkins :8080}\quad
\fbox{Grafana :3000}\\[5pt] \fbox{Grafana :3000}\\[5pt]
\textbf{Four separate monitoring containers}\\ \textbf{Four separate monitoring containers}\\
@@ -53,7 +53,7 @@ Prometheus $\xrightarrow{\mathrm{probe\ request}}$
Blackbox $\xrightarrow{\mathrm{TLS}\ 443}$ Caddy Blackbox $\xrightarrow{\mathrm{TLS}\ 443}$ Caddy
$\rightarrow$ Gitea /user/login and Jenkins /login\\[4pt] $\rightarrow$ Gitea /user/login and Jenkins /login\\[4pt]
\path{monitoring_monitoring_private}: all four monitoring services\\ \path{monitoring_monitoring_private}: all four monitoring services\\
Grafana and Blackbox additionally join \texttt{gitea\_default}.\\ Grafana and Blackbox additionally join \path{gitea_default}.\\
Grafana $\xrightarrow{\mathrm{outbound\ HTTPS}}$ Discord team alerts\\[4pt] Grafana $\xrightarrow{\mathrm{outbound\ HTTPS}}$ Discord team alerts\\[4pt]
\textbf{Persistent storage:} Prometheus named volume $\rightarrow$ /prometheus;\\ \textbf{Persistent storage:} Prometheus named volume $\rightarrow$ /prometheus;\\
Grafana named volume $\rightarrow$ /var/lib/grafana;\\ Grafana named volume $\rightarrow$ /var/lib/grafana;\\
@@ -74,8 +74,8 @@ and installed plugin in its named volume. Removing volumes would destroy this
persistence. All four containers use \texttt{unless-stopped} restart policies. persistence. All four containers use \texttt{unless-stopped} restart policies.
\subsection{Repeatable operations} \subsection{Repeatable operations}
Check out the feature branch and copy the non-secret \texttt{monitoring/} Check out the feature branch and copy the non-secret \path{monitoring/}
directory to \texttt{/opt/ssw590-monitoring}. Privately supply the admin password, directory to \path{/opt/ssw590-monitoring}. Privately supply the admin password,
Grafana root URL, and the current Caddy private IP in a mode-600 \texttt{.env}. Grafana root URL, and the current Caddy private IP in a mode-600 \texttt{.env}.
The proxy network must already exist. Confirm its subnet and that The proxy network must already exist. Confirm its subnet and that
172.18.0.250 is unused before assigning Blackbox's fixed address. Set readable 172.18.0.250 is unused before assigning Blackbox's fixed address. Set readable
@@ -108,14 +108,14 @@ quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478cc
\section{Metrics and Probes} \section{Metrics and Probes}
Prometheus privately scrapes itself, Node Exporter and Blackbox Exporter, plus Prometheus privately scrapes itself, Node Exporter and Blackbox Exporter, plus
two relabeled HTTPS probe targets every 30 seconds. Five \texttt{up} series two relabeled HTTPS probe targets every 30 seconds. Five \texttt{up} series
were 1 at the verification checkpoint; both \texttt{probe\_success} values were 1 at the verification checkpoint; both \path{probe_success} values
were 1 after recovery. A successful scrape (\texttt{up}) means collection were 1 after recovery. A successful scrape (\texttt{up}) means collection
worked; it does not establish that the application probe succeeded. worked; it does not establish that the application probe succeeded.
Node Exporter has read-only host-root and proc/sys access. Its Node Exporter has read-only host-root and proc/sys access. Its
\path{node_memory_MemTotal_bytes} was 2,063,564,800 bytes, consistent \path{node_memory_MemTotal_bytes} was 2,063,564,800 bytes, consistent
with host \texttt{free}. The root series labels were verified as with host \texttt{free}. The root series labels were verified as
\texttt{device=/dev/vda1}, \texttt{mountpoint=/}, \texttt{fstype=ext4}, \path{device=/dev/vda1}, \path{mountpoint=/}, \texttt{fstype=ext4},
matching \texttt{df}. This excludes container overlay filesystems. matching \texttt{df}. This excludes container overlay filesystems.
The HTTPS module requires HTTP 200, valid certificate verification and a The HTTPS module requires HTTP 200, valid certificate verification and a
@@ -234,8 +234,8 @@ Thirty failures exceed the budget by 1.2 samples, approximately 0.6 minutes.
\subsection{Measured short exercise window} \subsection{Measured short exercise window}
The actual interval is (20:35:00,20:45:00] UTC on October 30, evaluated at The actual interval is (20:35:00,20:45:00] UTC on October 30, evaluated at
20:45:00 with a 30-second scrape interval. Queries were 20:45:00 with a 30-second scrape interval. Queries were
\texttt{avg\_over\_time}, \texttt{count\_over\_time} and \path{avg_over_time}, \path{count_over_time} and
\texttt{sum\_over\_time} of \texttt{probe\_success\{job="https"\}[10m]}. \path{sum_over_time} of \texttt{probe\_success\{job="https"\}[10m]}.
Multiply the average by 100 for percent. Multiply the average by 100 for percent.
\begin{center}\begin{tabular}{lrrrr}\toprule \begin{center}\begin{tabular}{lrrrr}\toprule
Service & Received / expected & Successes & Failures & Percent\\\midrule Service & Received / expected & Successes & Failures & Percent\\\midrule
@@ -325,7 +325,7 @@ before and after the Prometheus restart. Grafana's health returned database OK;
dashboard UID \texttt{sre-overview}, both rules (1m/5m) and the Discord contact dashboard UID \texttt{sre-overview}, both rules (1m/5m) and the Discord contact
point remained. Collection can pause during restarts; the complete 10-minute point remained. Collection can pause during restarts; the complete 10-minute
SLI window above predates them. This test demonstrates persistence, not backup SLI window above predates them. This test demonstrates persistence, not backup
restoration. Raw sanitized records are under \texttt{evidence/chapter5/}. restoration. Raw sanitized records are under \path{evidence/chapter5/}.
Gitea Actions manual-pdf run 16 (displayed build 12), source Gitea Actions manual-pdf run 16 (displayed build 12), source
\path{2fc6e8909034bd615fd5f3caffd71f0ef386d18f}, passed in 44 seconds \path{2fc6e8909034bd615fd5f3caffd71f0ef386d18f}, passed in 44 seconds
@@ -379,11 +379,10 @@ Use that revision to inspect the exact source, rather than relying only on a
moving branch link. The updated history, service/secret-hints table, glossary, moving branch link. The updated history, service/secret-hints table, glossary,
references and AI log accompany this chapter. references and AI log accompany this chapter.
\begin{devopsNote}[Review boundary] \paragraph{Review boundary.}
Deployment, rule evaluation, notification receipt, controlled recovery and Deployment, rule evaluation, notification receipt, controlled recovery and
persistence have measured evidence. Human peer review and main merge remain persistence have measured evidence. Human peer review and main merge remain
outstanding; main merge is explicitly deferred by Sergio. Receiver timestamps, outstanding; main merge is explicitly deferred by Sergio. Receiver timestamps,
automatic new-commit trigger validation, and precise restart collection-gap automatic new-commit trigger validation, and precise restart collection-gap
measurement remain measurement remain
limitations. A successful PDF build does not close those gaps. limitations. A successful PDF build does not close those gaps.
\end{devopsNote}
+7 -6
View File
@@ -24,7 +24,7 @@ Data source: Prometheus
PromQL: PromQL:
probe_success{job="https"} probe_success{job="https"} or on(instance,job) (0 * up{job="https"})
Condition: Condition:
@@ -46,7 +46,7 @@ Important:
Missing probe data must not automatically be interpreted as Missing probe data must not automatically be interpreted as
successful service availability. successful service availability.
The team must inspect No Data behavior separately. Final policies: noDataState=NoData, execErrState=Error. The zero-valued up fallback surfaces a missing probe series while its scrape target remains configured. Removing a target must undergo source review.
Jenkins monitoring requests must be permitted through the Jenkins monitoring requests must be permitted through the
existing Caddy IP allowlist without weakening Jenkins security. existing Caddy IP allowlist without weakening Jenkins security.
@@ -91,10 +91,7 @@ Expected behavior:
## 4. Notification Contact Point ## 4. Notification Contact Point
Configure a Grafana contact point approved by the team. The approved contact point is team-alerts, UID team-discord, using Grafana's dedicated Discord integration. Its local provisioning file is excluded by *.local.yml. Owner: sespinal. Resolved notifications are enabled. Group by grafana_folder and alertname; group_wait 10s, group_interval 30s, repeat_interval 4h.
The destination may be email or another supported notification
channel.
Do not commit passwords, API tokens, or notification secrets Do not commit passwords, API tokens, or notification secrets
to the repository. to the repository.
@@ -324,3 +321,7 @@ Capture:
- Two follow-up Gitea issues. - Two follow-up Gitea issues.
Evidence must reflect actual execution, not planned behavior. Evidence must reflect actual execution, not planned behavior.
## Verified exercise: 2026-10-30 UTC
Both rules reached firing and returned to normal. Sergio confirmed the test message plus both firing/resolved pairs in Discord. Capacity threshold was temporarily 30%, then restored to 15% in a finally block. Jenkins was stopped for approximately three minutes and recovered; build 3 passed and Gitea received its success status. Exact retained evaluation times and receiver-timestamp limitations are in devopsSREMonitoring.tex and evidence/chapter5/. Never substitute evaluation time for destination receipt time.
+4
View File
@@ -173,3 +173,7 @@ Capture evidence of:
The hypothetical example must be clearly distinguished from The hypothetical example must be clearly distinguished from
the actual deployment measurements. the actual deployment measurements.
## Measured exercise, 2026-10-30
Evaluation 20:45:00 UTC, range (20:35:00,20:45:00], interval 30s. avg_over_time(probe_success{job="https"}[10m]), count_over_time and sum_over_time returned: Gitea 20 received/20 expected, 20 successes, 100%; Jenkins 20/20, 13 successes, 7 failures, 65%. Coverage was 100% for this interval. Missing samples in other windows remain unknown, never success. This short window cannot establish the full-day SLO. Raw results: evidence/chapter5/sli-persistence.json.