Finalize Assignment 7 evidence and local manual builds (refs #19)
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-10-28 16:23:42 -04:00
parent 34c4c7488a
commit 4d1996c0ab
11 changed files with 271 additions and 50 deletions
+100 -44
View File
@@ -22,24 +22,24 @@ at \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/9b0dc4d}{\t
implemented it with Claude Code running droplet commands that Billy approved;
Vincent is the verifier and pull-request reviewer. Times are UTC unless marked
Eastern (EDT, UTC$-$4). Sections~\ref{Section:SREDeployment}--\ref{Section:SREQuality}
follow the eight rubric rows in order. Raw timestamps for every test are kept
in
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/EVIDENCE.md}{\texttt{monitoring/EVIDENCE.md}};
repository links in this chapter point to \texttt{main}, where
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22}
merges this work.
follow the eight rubric rows in order. Deployment timestamps are kept in
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/EVIDENCE.md}{\texttt{monitoring/EVIDENCE.md}};
configuration links in this chapter identify the reviewed deployment snapshot
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/34c4c7488aa646ecc20f8a34012458a544c97069}{\texttt{34c4c74}}, the merge of
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22}.
Version 5.1 adds Vincent's later external TCP retest and final review corrections.
\begin{devopsNote}[Result summary]
The stack fits on the existing 1\,GiB droplet without a resize, with memory
caps and a second swap file. Both HTTPS probes, all three alert rules, and
the Discord route were tested for real: a disk-space rule fired and resolved
under a temporarily raised threshold; a planned 4~min~48~s Jenkins stop fired
the availability alert about 2~minutes after injection and resolved about
1.5~minutes after the restart; and stopping Blackbox Exporter fired the
under a temporarily raised threshold; a planned Jenkins stop lasting 4~min~48~s fired
the availability alert about 2~minutes after injection; the rule returned to
normal about 1.5~minutes after restart and Discord showed resolution at 16:12; and stopping Blackbox Exporter fired the
collection-health rule and the availability rule's no-data handling. Gitea
stayed available throughout. The
main measured weakness is memory pressure: about 15\% of CPU time is spent
waiting on swap (improvement
main measured weakness is memory pressure: about 15\% I/O wait was observed
alongside swap-in activity (improvement
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/21}{issue~\#21}).
\end{devopsNote}
@@ -71,7 +71,7 @@ shows its cost: frequent swap-in wait.
\paragraph{Versions and images.}
All four images come from the projects' own repositories~\cite{PrometheusDocs,GrafanaDocker,NodeExporter,BlackboxExporter} and are pinned by
tag \emph{and} digest in
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/compose.yaml}{\texttt{monitoring/compose.yaml}}
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/compose.yaml}{\texttt{monitoring/compose.yaml}}
(Table~\ref{Table:SREImages}). The instructor suggests a \texttt{.env} file
for the tags; this repository ignores every \texttt{.env} file to keep
secrets out of Git, so the versions live in the Compose file instead and are
@@ -187,7 +187,7 @@ hold its certificates and configuration.}
\paragraph{Configuration in Git and secrets outside it.}
The
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring}{\texttt{monitoring/}}
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring}{\texttt{monitoring/}}
folder holds the Compose file, \texttt{prometheus/prometheus.yml},
\texttt{blackbox/blackbox.yml}, Grafana provisioning (data source, dashboard
loader, three alert rules, the contact point), the dashboard JSON, and a
@@ -445,8 +445,11 @@ Caddyfile were copied to \texttt{\textasciitilde/gitea/backup-20261028T144040Z}.
\pagebreak[3]
\paragraph{External exposure tests.}
Billy's laptop (home network on the team allowlist; IPv6 available) ran the
tests in Table~\ref{Table:SREExposure} at 14:57 with \texttt{curl}; a status
of \texttt{000} means no TCP connection within the 5\,s limit:
tests in Table~\ref{Table:SREExposure} at 14:57 with \texttt{curl}. The raw-port
commands returned HTTP code \texttt{000}, which establishes no HTTP response,
but alone does not establish that TCP connection setup failed. The later
TCP retest below supplies that evidence; the original commands remain here
as the historical record:
\begin{minted}[breaklines]{sh}
for host in 147.182.178.136 "[2604:a880:400:d1:0:5:22d:6001]"; do
for p in 3000 3001 8080 9090 9100 9115 50000; do
@@ -462,8 +465,7 @@ curl -s -6 -o /dev/null --resolve ci.yebilly.me:443:2604:a880:400:d1:0:5:22d:600
\begin{tabularx}{\linewidth}{L{5.2cm}L{1.9cm}Y}
\caption{External exposure tests, October 28, 2026\label{Table:SREExposure}}\\
\toprule \textbf{Test} & \textbf{Expected} & \textbf{Actual}\\ \midrule
TCP 3000, 3001, 8080, 9090, 9100, 9115, 50000 on the droplet's IPv4 & no connection & no connection on all 7 \StatusPass\\
Same 7 ports on the droplet's IPv6 & no connection & no connection on all 7 \StatusPass\\
Raw ports on IPv4 and IPv6 (7 per address) & no connection & HTTP \texttt{000}; TCP result established by Table~\ref{Table:SRETCPRetest}\\
\texttt{https://metrics\ldots/login} over IPv4 (allowlisted) & 200 & 200 \StatusPass\\
\texttt{http://metrics.yebilly.me} & redirect & 308 to HTTPS \StatusPass\\
Grafana API without login (\texttt{/api/dashboards/\ldots}, data-source proxy query) & 401 & 401, 401 \StatusPass\\
@@ -474,6 +476,45 @@ Grafana API without login (\texttt{/api/dashboards/\ldots}, data-source proxy qu
\bottomrule
\end{tabularx}}
\paragraph{External TCP retest.}
On October 28 Vincent ran Windows PowerShell \texttt{Test-NetConnection}~\cite{MicrosoftTestNetConnection}
from his laptop on external Wi-Fi, outside the droplet's SSH session.
The CSV spans 19:32:40--19:40:00 UTC (15:32:40--15:40:00 EDT).
Each timestamp is recorded after that connection attempt returned.
The targets were IPv4 \texttt{147.182.178.136} and IPv6
\nolinkurl{2604:a880:400:d1:0:5:22d:6001}, without relying on AAAA records.
For each address, port 443 was tested first as a positive control;
both controls succeeded, so neither address family was skipped.
The actual per-port command was:
\begin{minted}[breaklines]{powershell}
Test-NetConnection -ComputerName $target -Port $port `
-InformationLevel Detailed -WarningAction SilentlyContinue
\end{minted}
The script recorded \texttt{TcpTestSucceeded}, expected reachability, and UTC
time for ports 443, 80, 3000, 3001, 8080, 9090, 9100, 9115, and 50000.
\texttt{True} means TCP connection establishment succeeded; \texttt{False}
means it did not succeed from this test network at that time. It does not
identify which firewall or network layer prevented the connection.
\begin{table}[H]
\centering\small
\caption{Vincent's external TCP retest, October 28, 2026\label{Table:SRETCPRetest}}
\begin{tabular}{@{}L{6.0cm}cc@{}}
\toprule \textbf{Ports} & \textbf{IPv4} & \textbf{IPv6}\\ \midrule
443 (HTTPS positive control) & True & True\\
80 (HTTP) & True & True\\
3000, 3001, 8080, 9090, 9100, 9115, 50000 & all False & all False\\
\bottomrule
\end{tabular}
\end{table}
All 18 outcomes matched the expected exposure. These are TCP tests;
the earlier hostname-based tests establish the HTTP redirect, login,
authentication, and TLS route behavior. The sanitized CSV and repeatable
script are versioned under \nolinkurl{monitoring/evidence/}; only the local
Wi-Fi name is replaced by a generic source description. Original results
remain under ignored \nolinkurl{build/evidence/assignment7-port-tests/}.
%---------------------------------------------------------------
\section{Dashboard and CI Correlation}
\label{Section:SREDashboard}
@@ -484,7 +525,7 @@ The provisioned dashboard \emph{Group 1 SRE} uses Eastern time
(\texttt{America/New\_York}), a 6-hour default range, 30\,s refresh, and the private data source
\texttt{http://prometheus:9090}. It was written for this deployment, not
imported, and its definition is versioned as
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/grafana/dashboards/sre.json}{\texttt{sre.json}}. Table~\ref{Table:SREPanels} lists the six
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/grafana/dashboards/sre.json}{\texttt{sre.json}}. Table~\ref{Table:SREPanels} lists the six
required panels and the optional seventh with their queries;
Figure~\ref{Figure:SREDashboard} shows them. In the queries, \texttt{R}
stands for the root-filesystem selector
@@ -576,9 +617,10 @@ Grafana's from 73 to 140\,MiB. Over 15 minutes the CPU modes were 74.3\% idle,
\textbf{14.7\% I/O wait}, 4.5\% system, 4.0\% user, and 1.6\% hypervisor steal.
The busy line is therefore mostly memory being paged back in from swap, not
computation. The dashboard was then changed to add the I/O-wait line to
panel~1, so it shows this directly. The same pressure explains a Gitea probe
of about 1.9\,s, one Grafana request that failed after 4\,s, and the later
build~\#2 taking 34\,s.
panel~1, so it shows the I/O-wait component directly. A Gitea probe of about
1.9\,s, one Grafana request that failed after 4\,s, and the later build~\#2
taking 34\,s are consistent with memory pressure contributing to delays.
The observations do not isolate the cause of each individual delay.
\begin{figure}[H]
\centering
@@ -639,8 +681,8 @@ Jenkins & 20 & 20 & 9 & 45\%\\
\end{tabular}
\end{table}
All expected samples arrived (16:03:20 to 16:12:50), so the window has no
unknown time. If samples had been missing, they would be reported as missing,
All 20 expected samples arrived (16:03:20 to 16:12:50), so no scheduled
observations are missing. Service behavior between probes remains unobserved. If samples had been missing, they would be reported as missing,
never counted as successes. Jenkins' 11 failed samples (16:05:20--16:10:20)
correspond to about 5.5 minutes of failed probes. This shows what the SLI
measures during a known outage. It cannot show whether the 24-hour SLO was
@@ -684,13 +726,14 @@ Condition / pending & below 1 for 1\,minute & below 15 for 5\,minutes & below 1
No data / error & Alerting / Error & Alerting / Error & Alerting / Error\\
Notification & \texttt{team-alerts}; group by alert and instance & \texttt{team-alerts}; group by alert & \texttt{team-alerts}; group by alert\\
Timing & group wait 10\,s, group interval 1\,m, repeat 4\,h & same & same\\
Runbook & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/README.md\#runbook-https-service-down}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/README.md\#runbook-root-disk-space-low}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/README.md\#runbook-monitoring-target-down}{README}\\
Runbook & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/README.md\#runbook-https-service-down}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/README.md\#runbook-root-disk-space-low}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/README.md\#runbook-monitoring-target-down}{README}\\
\bottomrule
\end{tabularx}}
The worst-case time from an outage to a notification is about one scrape
(30\,s) plus one evaluation (30\,s) plus the pending period (60\,s) plus the
group wait (10\,s): 2~minutes 10~seconds. The 15\% disk threshold is about
A nominal notification-delay estimate is one scrape (30\,s), one evaluation
(30\,s), the pending period (60\,s), and the group wait (10\,s):
2~minutes 10~seconds. Query/probe execution, scheduling, notification grouping,
and delivery can add delay; this is not a guaranteed upper bound. The 15\% disk threshold is about
3.7\,GB of the 24.9\,GB disk: enough time to clear build cache, journals, or
old images before Gitea, Jenkins, or Prometheus fail to write.
@@ -845,8 +888,10 @@ states polled every 6\,s, the Jenkins log, and Discord timestamps, all in UTC.
\paragraph{Measured response.}
Taking the injection as the start, the first failed probe came after 20\,s,
the rule fired after 1~minute 52~seconds, and the notification arrived after
about 2~minutes. That is within the 2~minutes 10~seconds that the settings
allow. From the restart, Jenkins was fully up after 57\,s, the first
about 2~minutes. Discord's screenshot records only the minute (16:07),
so receipt is bounded to 2~minutes through less than 3~minutes after injection;
it cannot prove a 2~minute~10~second maximum. The observed rule firing is
consistent with the scrape, evaluation, and pending settings. From the restart, Jenkins was fully up after 57\,s, the first
successful probe came after 62\,s, and the rule returned to normal after about
1.5~minutes. Probes failed for 5~minutes 30~seconds in total (16:05:20 to
16:10:50). The Gitea probe stayed at 1 throughout.
@@ -882,15 +927,19 @@ the status report back to Gitea after the outage. The changes then went
through the established review gate as
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22}
(\texttt{feature/issue-19-monitoring} into \texttt{main}): the required
check \texttt{vpn-dns-gateway/pipeline/pr-main} passed (on the manual commit
at 17:12:32), and Vincent approved at 17:09; Gitea dismisses an approval
as stale when later commits arrive, so branch protection requires a fresh
approval of the final head before the merge can happen. The manual-PDF workflow runs only on pushes to \texttt{main}, on
Vincent's laptop runner, so its post-outage run is the merge build that
produced this PDF; the title-page build suffix
(\texttt{+build.}\textit{run}\texttt{.}\textit{commit}) identifies that run
and the merge commit, listed under
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions}{Gitea Actions}.
check \texttt{vpn-dns-gateway/pipeline/pr-main} passed on final head
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/11270cfced41f700851753ab85c1202c71b4dff3}{\texttt{11270cf}}
at 18:16:18
(\href{https://ci.yebilly.me/job/vpn-dns-gateway/job/PR-22/4/display/redirect}{PR-22 build~\#4}).
Vincent approved that head at 18:18:11; PR~\#22 merged at 18:18:36 as
\texttt{34c4c74}. These final-head records supersede the earlier approvals
that became stale after later commits. The merge's Jenkins main build~\#5
passed at 18:18:59. The
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/11/jobs/11}{run-11 manual job}
passed at 18:19:27, producing version \texttt{5.0+build.11.34c4c74}.
This verifies the post-outage manual build on Vincent's laptop runner.
The version 5.1 corrections are compiled locally; their PDF does not claim
to be the run-11 artifact.
\paragraph{How this differs from a failed build.}
In \ChapterRef{JenkinsCI}, PR~\#15's deliberate unit-test failure
@@ -914,8 +963,9 @@ link and the failing URL. \emph{Measurement gaps:} the acknowledgement was
given to the operator rather than posted in Discord before the restart, so
its exact time is not timestamped in the channel; the next exercise should
acknowledge in the channel first. Probe timing is limited to 30\,s samples.
The minute-long Jenkins start-up and the swap pressure in
Section~\ref{Section:SREDashboard} share one cause: too little memory.
The minute-long Jenkins start-up occurred alongside the swap pressure in
Section~\ref{Section:SREDashboard}. Memory pressure may have contributed,
but this exercise did not isolate its effect on start-up time.
\emph{Shared failure domain:} monitoring runs on the same droplet, so a
whole-droplet outage would silence collection and alerts together, and the
probe never leaves the droplet. Improvements, in priority order:
@@ -972,9 +1022,15 @@ updated title and abstract; \ChapterRef{HostsPasswords} adds the monitoring
host details, \texttt{metrics.yebilly.me}, the Grafana accounts, and the
Discord webhook; new glossary terms are indexed; sources are cited in the
Bibliography; and AI assistance is recorded in \ChapterRef{AIPromptLog}. The
reviewed source is the head of
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22},
merged into \texttt{main}; the merge commit and the Gitea Actions run that
built this PDF are identified by the build suffix on the title page.
reviewed deployment source is PR~\#22 head \texttt{11270cf}, merged as
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/34c4c7488aa646ecc20f8a34012458a544c97069}{\texttt{34c4c74}};
the configuration links above pin that merge. Version 5.1 records Vincent's
TCP retest, the final review and CI records, and qualified measurement
conclusions. The original run-11 PDF remains historical evidence. Local
builds replace the ignored PDF in \texttt{manual/}; only Actions builds add
the actual run/commit suffix. Hosts and Passwords tables remain unchanged
because this correction changes no service, account, or credential.
The missing pre-deployment build observation remains an explicit limitation
in Section~\ref{Section:SREDashboard}; the later comparison cannot recreate it.
\endgroup