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
\textbf{Primary Droplet: Ubuntu 24.04, 1 CPU, 2 GB RAM, 10 GB disk}\\[5pt]
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{Grafana :3000}\\[5pt]
\textbf{Four separate monitoring containers}\\
@@ -53,7 +53,7 @@ Prometheus $\xrightarrow{\mathrm{probe\ request}}$
Blackbox $\xrightarrow{\mathrm{TLS}\ 443}$ Caddy
$\rightarrow$ Gitea /user/login and Jenkins /login\\[4pt]
\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]
\textbf{Persistent storage:} Prometheus named volume $\rightarrow$ /prometheus;\\
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.
\subsection{Repeatable operations}
Check out the feature branch and copy the non-secret \texttt{monitoring/}
directory to \texttt{/opt/ssw590-monitoring}. Privately supply the admin password,
Check out the feature branch and copy the non-secret \path{monitoring/}
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}.
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
@@ -108,14 +108,14 @@ quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478cc
\section{Metrics and Probes}
Prometheus privately scrapes itself, Node Exporter and Blackbox Exporter, plus
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
worked; it does not establish that the application probe succeeded.
Node Exporter has read-only host-root and proc/sys access. Its
\path{node_memory_MemTotal_bytes} was 2,063,564,800 bytes, consistent
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.
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}
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
\texttt{avg\_over\_time}, \texttt{count\_over\_time} and
\texttt{sum\_over\_time} of \texttt{probe\_success\{job="https"\}[10m]}.
\path{avg_over_time}, \path{count_over_time} and
\path{sum_over_time} of \texttt{probe\_success\{job="https"\}[10m]}.
Multiply the average by 100 for percent.
\begin{center}\begin{tabular}{lrrrr}\toprule
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
point remained. Collection can pause during restarts; the complete 10-minute
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
\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,
references and AI log accompany this chapter.
\begin{devopsNote}[Review boundary]
\paragraph{Review boundary.}
Deployment, rule evaluation, notification receipt, controlled recovery and
persistence have measured evidence. Human peer review and main merge remain
outstanding; main merge is explicitly deferred by Sergio. Receiver timestamps,
automatic new-commit trigger validation, and precise restart collection-gap
measurement remain
limitations. A successful PDF build does not close those gaps.
\end{devopsNote}
+8 -7
View File
@@ -24,7 +24,7 @@ Data source: Prometheus
PromQL:
probe_success{job="https"}
probe_success{job="https"} or on(instance,job) (0 * up{job="https"})
Condition:
@@ -46,7 +46,7 @@ Important:
Missing probe data must not automatically be interpreted as
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
existing Caddy IP allowlist without weakening Jenkins security.
@@ -91,10 +91,7 @@ Expected behavior:
## 4. Notification Contact Point
Configure a Grafana contact point approved by the team.
The destination may be email or another supported notification
channel.
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.
Do not commit passwords, API tokens, or notification secrets
to the repository.
@@ -323,4 +320,8 @@ Capture:
- Gitea Actions PDF workflow verification.
- 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.
+5 -1
View File
@@ -172,4 +172,8 @@ Capture evidence of:
- SLO and error-budget interpretation.
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.