Capture Grafana evidence and complete Chapter 7 deliverable audit

This commit is contained in:
Codex
2026-11-18 21:04:09 +00:00
parent 4a18c2e67b
commit 9b0d7aed14
10 changed files with 336 additions and 17 deletions
+82 -15
View File
@@ -46,9 +46,11 @@ eventually exited successfully with code zero.
The instructor's capacity baseline was not captured completely before the first
installation. The user initially deferred capacity work, later requested
resource diagnosis, and chose a small proof of concept with explicit limits.
The plan name, billing amount and resize cost have not been supplied; no
recurring cost is asserted. Record those from the team's DigitalOcean billing
view before submission. The small deployment is a tested lab configuration,
The team supplied the upgraded plan at documentation review: DigitalOcean
Basic, 1 vCPU, 2 GB RAM, 50 GB nominal disk, at \$12/month. The observed 48 GB
root filesystem is distinct from the plan's advertised disk capacity. This
records the user's plan/price statement, not a new billing-console audit or a
claim that alternatives were compared before the resize. The small deployment is a tested lab configuration,
not a claim of compliance with Zammad's general production sizing guidance.
The existing services and their volumes were retained. Initial HTTPS checks
@@ -59,6 +61,14 @@ premature HUP during startup caused exit 129, after which it was restarted
again and its readiness endpoint was checked before using its data. This is
recorded separately from the controlled Zammad outage.
The post-installation audit captures all six prescribed command outputs:
Docker version, Compose version, \texttt{free -h}, \texttt{df -h}, bounded
\texttt{docker stats --no-stream}, and Docker network inventory, in
\path{support/evidence/chapter7-final-audit.json}. These are explicitly
post-install measurements, not a reconstructed original six-command baseline.
Historical Grafana comparisons provide retained before/after observations
with their collection gaps visible.
\section{2. Official deployment revision and images}
The separate deployment directory is
\path{/home/codex/dos-support/zammad-docker-compose}. The official repository
@@ -99,12 +109,14 @@ Local image IDs are not represented as registry manifest digests.
\node[left=of app] (old) {Retained Gitea / Jenkins\\pricing staging + production};
\node[right=of app] (data) {PostgreSQL :5432\\Redis :6379 / Memcached :11211\\Elasticsearch :9200};
\node[below=of app] (vol) {Named storage / database / search\\Redis / backup volumes};
\node[right=of vol] (backup) {Official backup container\\private project network};
\node[left=of vol] (monitor) {Existing Prometheus + Blackbox\\Grafana + Node Exporter};
\draw[arrow] (browser)--(proxy);
\draw[arrow] (proxy)--node[right,draw=none,text width=2cm]{private HTTP}(nginx);
\draw[arrow] (nginx)--(app);
\draw[arrow] (app)--(data);
\draw[arrow] (app)--(vol);
\draw[arrow] (backup)--(vol);
\draw[arrow,dashed] (monitor) to[bend left=35] (proxy);
\draw[arrow] (proxy) to[bend right=25] (old);
\end{tikzpicture}
@@ -238,6 +250,9 @@ attachment/rules, management-source SSH restrictions and host firewall rules
still require a fresh explicit check before final submission. The final
observation found no support AAAA answer and no global IPv6 interface address;
listeners on \texttt{[::]} alone do not establish public IPv6 access.
A current read-only UFW status attempt was blocked because sudo requires a
password; the failure is retained in \path{chapter7-final-audit.json} and is
not presented as proof that UFW is enabled or disabled.
Do not add public rules for Zammad dependencies or monitoring ports. Keep
80 only for the existing redirect/certificate mechanism and HTTPS on 443.
@@ -253,9 +268,9 @@ address was configured.
\begin{longtable}{L{1.6cm}L{5.1cm}L{6.4cm}}
\caption{Synthetic ticket examples and observed workflow}\label{Table:ZammadTickets}\\
\toprule Number & Example & Observed result\\\midrule\endhead
71002 & Portal access question & Open; synthetic customer and normal priority.\\
71003 & Pricing investigation & Open, owned by Student Agent; internal investigation note plus customer-visible reply.\\
71004 & Support HTTPS configuration & Closed with resolution; linked engineering issue 22.\\
71002 & Portal access question & Open/unassigned; Demo Customer; normal priority.\\
71003 & Pricing investigation & Open, Student Agent owner, Demo Customer, normal priority; internal note and public reply.\\
71004 & Support HTTPS configuration & Closed, Student Agent owner, Demo Customer, normal priority; resolution and issue 22 link.\\
71005 & Second customer's private request & Access denied when requested as the first customer.\\
71006 & TA permissions verification & TA created, assigned to self, replied, and closed using its Agent account.\\\bottomrule
\end{longtable}
@@ -353,11 +368,56 @@ and TLS certificate remaining lifetime (days). Existing host CPU, memory and
filesystem panels are retained for before/after comparisons; these describe
the whole host, not individual containers. Provisioned JSON is saved in
\path{monitoring/grafana/provisioning/dashboards/json/team-sre.json}.
Authenticated rendering and a final screenshot must be verified separately
before claiming that Grafana displayed the new panels. Exporter scrape
An authenticated Grafana session displayed all three Zammad panels alongside
the existing host and Gitea/Jenkins panels. Screenshots show the actual
support reachability dip/recovery, probe-duration measurements and roughly
89.93 days of certificate lifetime. The TLS field's unit was changed from
an auto-scaling duration to a literal days suffix, so it does not display
weeks under a days title. Exporter scrape
\texttt{up=1} and destination \texttt{probe\_success=1} are different checks.
The login probe verifies TLS, HTTP and timing, not login or ticket persistence.
\begin{figure}[htbp]\centering
\includegraphics[width=.75\linewidth,height=.77\textheight,keepaspectratio]{hw9_images/grafana-recovery-window.png}
\caption{Actual authenticated Grafana view, November 18, 15:37--15:41 New York
time. Zammad reachability falls to zero for the controlled frontend outage
and returns to one; the existing dashboard also shows probe duration.}
\label{Figure:ZammadGrafanaRecovery}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.75\linewidth,height=.77\textheight,keepaspectratio]{hw9_images/grafana-support-duration-tls-days.png}
\caption{Actual support duration and certificate-lifetime panels, with TLS
lifetime explicitly displayed in days. A later duration spike remains visible;
these measurements do not establish a latency objective or uninterrupted uptime.}
\label{Figure:ZammadGrafanaTLS}\end{figure}
\subsection{Whole-host before/after comparison}
The historical window from 13:30 New York time includes pre-installation
observations, the original overloaded startup period and the post-upgrade,
limited-stack period. CPU rises toward 100\% during the first startup and is
around 40--50\% at the later screenshot. Available memory and root available
space are shown in the retained Node Exporter panels. Root available space
increased after the disk upgrade; this cannot be attributed to application
tuning alone. The memory capacity also changed, so absolute available memory
is not a like-for-like workload comparison. Missing data during the stopped
Prometheus/restart interval is left as a gap; it does not mean zero usage or
prove service availability. Earlier Gitea probe failures around the initial
overloaded startup are retained in the historical view, rather than hidden
as a claim that all earlier services stayed continuously available.
\begin{figure}[htbp]\centering
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-cpu-before-after.png}
\caption{Reused whole-Droplet CPU panel before and after installation and
upgrade; observation gaps are preserved.}\label{Figure:ZammadHostCPU}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-memory-before-after.png}
\caption{Reused available-host-memory panel over the same historical window;
this is not per-container usage.}\label{Figure:ZammadHostMemory}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-memory-disk.png}
\caption{Reused root-filesystem available-space panel. The post-upgrade
increase is interpreted alongside the changed disk capacity, not as disk
space reclaimed by stopping a container.}\label{Figure:ZammadHostDisk}\end{figure}
\section{10. Controlled outage, persistence and backup}
The isolated test stopped only \texttt{zammad-nginx}, then restarted it in a
\texttt{finally} recovery path. No volume was removed. The first collector
@@ -388,6 +448,12 @@ availability and exact transition times are not inferred. The matching
Grafana dashboard screenshot is a separate outstanding browser check.}
\label{Figure:ZammadRecoverySamples}\end{figure}
The final audit queries the full 15:37--15:41 New York test window: Gitea
login, Jenkins login and production health each returned nine successful
probe samples; support included zero and one. This supports sampled continuity
of earlier services during the isolated test, not uninterrupted availability
outside the samples.
After frontend recovery, TA authentication still worked, ticket 71003 was
present, and the retained conversation included the internal note. This is
web-service restart persistence, not database restore or off-site backup.
@@ -441,23 +507,24 @@ not claimed.
\caption{Required Chapter 7 deliverable audit}\label{Table:ZammadCoverage}\\
\toprule Required aspect & Saved evidence / chapter location & Verification boundary\\\midrule\endhead
Deployment / continuity & Revision, images, manifest, architecture, final HTTPS observations & All six HTTPS checks returned 200\\
Capacity and versions & Initial disk/load observations, post-upgrade size, explicit small limits & Billing/plan and full historical baseline pending\\
Capacity and versions & Initial observations, user-confirmed Basic 1 vCPU/2 GB/50 GB at \$12/month, explicit limits & Full pre-install command baseline cannot be reconstructed\\
Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\
HTTPS / exposure & Certificate, redirect, blocked ports, private networks, no global IPv6/AAAA & Fresh cloud firewall and host-rule audit pending\\
Accounts / TA & Agent-only TA/group access, API CRUD 71006, authenticated screenshots & Browser login/read verified; API CRUD distinguished\\
Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/public reply & Browser visibility/isolation screenshots included\\
Engineering link & Issue 22 and ticket 71004 bidirectional link, resolution note, screenshot & Issue remains open\\
Monitoring & Existing job extended, three saved panels, successful probe & Authenticated dashboard rendering screenshot pending\\
Recovery graph & Corrected timestamps, source graph, retained conversation & Sampled graph included; Grafana screenshot pending\\
Monitoring & Existing job, three displayed panels, successful probe and host comparison & Authenticated Grafana screenshots included\\
Recovery graph & Corrected timestamps, source graph, Grafana recovery window, retained conversation & Two failed distinct scrapes and recovery verified\\
Manual / source & This chapter, Hosts, password hints, history, AI log, sanitized configuration & No PDF compiled; final Jenkins artifact pending\\\bottomrule
\end{longtable}
Every pending item is a required evidence follow-up, not an optional extra or
an assertion of completion. Before submission: finish the click-by-click TA
browser CRUD demonstration if required by the evaluator; verify the three
panels and recovery graph; refresh cloud firewall and host-rule evidence;
review the actual plan/cost, password handoff and Hosts chapter together with
the team as requested; record the grading window; publish reviewed source; provide TA
browser create/assign/reply/close demonstration and web-portal note/reply
submission evidence (API actions and portal visibility are already verified);
refresh cloud firewall and host-rule evidence;
review the password handoff and updated Hosts chapter together with the team
as requested (plan/price now supplied); record the grading window; publish reviewed source; provide TA
credentials privately; and run the user-authorized Jenkins PDF build followed
by visual and reference verification. Do not submit this unbuilt source draft
as a verified final PDF. After grading, retain evidence and the manual, revoke