Verify automatic application trigger and complete Chapter 5 evidence audit
manual-pdf / build-manual (push) Successful in 1m16s

This commit is contained in:
2026-10-30 21:28:50 +00:00
parent 8e20b016ce
commit 61c1efdc0a
18 changed files with 838 additions and 8 deletions
+11
View File
@@ -41,3 +41,14 @@ the server. Human peer review, exact receiver timestamps and the limitations
listed in \ChapterRef{SREMonitoring} remain outstanding. No main merge was
performed. Turan's initial configuration was adapted; no imported dashboard
was represented as an independently authored external template.
\section{Chapter 5 Final Audit and Automatic Trigger Check}
Date: October 30, 2026; tool: OpenAI Codex. Sergio requested an automatic
application-trigger test, complete Chapter 5 audit and no main merge. A small
application documentation commit was discovered by existing polling; exact
checkout, automatic cause, three passing tests and Gitea success status were
recorded. The audit found and fixed Grafana raw metrics exposure, supplied
missing metric inventory and backup instructions, and checked live cloud rules.
Sergio signed into DigitalOcean and explicitly chose to leave globally allowed
IPv4 SSH unchanged and flag it. Historical acknowledgement timing and genuine
human peer review were not invented. No new outage or restore is claimed.
+1 -1
View File
@@ -38,7 +38,7 @@
% Replace these values for each assignment.
\newcommand{\AssignmentTitle}{Group 10 DevOps Project}
\newcommand{\AssignmentNumber}{}
\newcommand{\DocumentVersion}{1.10}
\newcommand{\DocumentVersion}{1.11}
\newcommand{\DocumentStatus}{Active}
\newcommand{\CourseNumber}{SSW 590}
\newcommand{\CourseName}{DevOps}
+7
View File
@@ -22,6 +22,13 @@ link each entry to the changed chapter, table, figure, or controlled artifact.
\bottomrule
\endlastfoot
October 30, 2026 / 1.11 & SE, CDX &
Completed automatic application branch discovery/build/status verification;
closed the public Grafana metrics route; audited all eight Chapter 5 sections,
added the metric inventory, backup procedure, external/cloud firewall checks
and timeline annotations. Retained deferred global SSH and human review gaps;
no main merge. & \ChapterRef{SREMonitoring},
\hyperref[Table:SREFinalAudit]{rubric audit}\\
October 30, 2026 / 1.10 & SE, TI, CDX &
Deployed and verified Chapter 5 monitoring on the approved resized host;
recorded the slim-image capacity correction, dashboard, controlled Jenkins
+5
View File
@@ -141,3 +141,8 @@
author={{Grafana Labs}}, title={No Data and Error states},
howpublished={\url{https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rule-evaluation/nodata-and-error-states/}},
note={Accessed October 30, 2026}}
@misc{GrafanaBackup,
author={{Grafana Labs}}, title={Back up Grafana},
howpublished={\url{https://grafana.com/docs/grafana/latest/administration/back-up-grafana/}},
note={Accessed October 30, 2026}}
+158 -6
View File
@@ -7,6 +7,12 @@
Group 10 deployed four monitoring containers on October 30, 2026, using Turan
Islamli's prepared branch and Sergio Espinal's authorized operational changes.
This report records actual tests, rather than treating configuration as proof.
\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/1}{Implementation issue 1}
records the initial baseline, starting manual commit \path{1df4798a31}, and
preparation/deployment responsibilities. Sergio and Turan are both assigned;
Sergio operates the deployment and Turan is the second team member for final
verification. Formal assignment was corrected during this audit; independent
peer approval is still pending in draft PR 4.
The implementation remains on \path{chapter5-sre-monitoring}; main has not
been merged. Human peer review remains outstanding.
@@ -105,6 +111,22 @@ quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fe
quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13
\end{lstlisting}
\subsection{Backup of state that Git cannot reconstruct}
The retained cloud snapshot predates monitoring. A current monitoring backup
and an isolated restore have not been performed. The operator procedure is
versioned in \path{monitoring/BACKUP-RECOVERY.md}. Arrange a maintenance window,
check capacity, stop Grafana before copying SQLite, and stop Prometheus before
copying its complete data directory. Preserve the two inspected named-volume
paths, ownership and permissions. Protect the local environment, Discord
provisioning and Caddy configuration separately; these contain secrets and
must stay outside Git. Transfer using a binary-safe SSH/archive tool to an
approved encrypted off-host destination, verify checksums, restart in a
finally/trap cleanup path and check historical data plus alert delivery.
The small root disk must not be used to stage an unbounded archive.
Restore into isolated replacement volumes with matching versions/plugin first;
never overwrite the live volumes to demonstrate recovery. This procedure
extends the published Grafana backup guidance \cite{GrafanaBackup}.
\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
@@ -125,6 +147,45 @@ retaining their hostname/SNI and TLS verification. This measures the private
proxy/application route; it cannot establish public DNS or external Internet
availability. A shared-host outage also stops its own monitoring.
\subsection{Metric inventory and host comparison}
\small
\begin{tabularx}{\linewidth}{L{4.0cm}L{2.0cm}Y}
\caption{Required metric inventory\label{Table:SREMetricInventory}}\\
\toprule Metric & Type / unit & Labels, meaning and limitation\\\midrule
\path{node_cpu_seconds_total} & Counter / seconds & cpu, mode, job, instance.
Cumulative CPU time; rate of idle time gives averaged non-idle percent.
Not per-container attribution.\\
\path{node_memory_MemAvailable_bytes} & Gauge / bytes & job, instance.
Kernel estimate of memory available to applications, not merely unused RAM.\\
\path{node_filesystem_avail_bytes}, \path{node_filesystem_size_bytes} & Gauges / bytes &
job, instance, device, mountpoint, fstype. Available/size percent for the verified
root filesystem; do not combine mounts or use overlay data.\\
\texttt{up} & Generated gauge / 0 or 1 & job, instance. Prometheus collection
health, not application health. A missing sample remains unknown.\\
\path{probe_success} & Gauge / 0 or 1 & job, instance (HTTPS URL).
Login-page TLS/HTTP probe success; does not prove authenticated operations.\\
\path{probe_duration_seconds} & Gauge / seconds & job, instance.
Probe duration includes failures/timeouts; not application transaction latency.\\
\bottomrule\end{tabularx}
\normalsize
At the final audit, \texttt{free -b} reported total memory 2,063,564,800 bytes,
matching Node Exporter exactly. Host available memory was 852,103,168 bytes;
the most recent 30-second scrape reported 890,720,256, reflecting different
sample times while processes ran. \texttt{df -B1 /} and the exporter agreed on root size:
9,283,444,736 bytes. Available space changed from 1,825,554,432 to
1,825,574,912 bytes between observations, a difference of 20,480 bytes.
The raw comparisons and timestamps are retained in
\path{evidence/chapter5/host-metric-comparison.json}.
Node Exporter uses the host PID namespace and read-only host root mounted at
\texttt{/host}, with proc/sys/rootfs flags selecting the host view. This exposes
host metadata for collection; no monitoring container receives the Docker socket.
\subsection{Sanitized collection and probe configuration}
These are the actual versioned files used in the running deployment:
\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/prometheus/prometheus.yml}
\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/blackbox/blackbox.yml}
Only the final login page is checked; there is no authenticated content test.
\section{HTTPS and Access Control}
\begin{itemize}
\item Gitea login: \url{https://git.sespinal590.dev/user/login}.
@@ -147,14 +208,45 @@ Caddy's configuration was backed up before modification.
remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32
# Additional HTTPS virtual host:
metrics.165.227.90.215.sslip.io {
@rawMetrics path /metrics /metrics/*
respond @rawMetrics "Raw metrics are private." 403
reverse_proxy grafana:3000
}
\end{lstlisting}
No monitoring service has Compose host-port mappings. External TCP checks from
The inspected users are Prometheus/Node Exporter \texttt{nobody}, Grafana UID
472, and the Blackbox image default user (empty image user setting, Linux
root by default). Its configuration is read-only and no Docker socket is
mounted. No monitoring service has Compose host-port mappings. External TCP checks from
Sergio's Windows workstation on October 30 could not connect to primary ports
3000, 8080, 9090, 9100 or 9115. HTTPS remained reachable. These are point-in-time
observations from that source, not a universal firewall guarantee.
\subsection{Final network audit and retained SSH gap}
The signed-in DigitalOcean console confirmed firewall
\texttt{ssw590-gitea-firewall} is attached to the primary Droplet. It permits
TCP 80 and 443 publicly, and TCP 22 from all IPv4 plus an existing operator
/32. Other inbound ports are not allowed; outbound ICMP/TCP/UDP are allowed.
Host UFW is inactive, so protection relies on the cloud firewall, Docker port
mappings and Caddy. IPv6 is not enabled on the Droplet and the host has no
global IPv6 address; external IPv6 checks are therefore not applicable.
\textbf{Open gap: SSH is still globally reachable over IPv4. Sergio explicitly
requested that SSH be left unchanged and flagged.} This inherited policy is
not represented as a restricted SSH configuration.
The audit found Grafana's unauthenticated raw \texttt{/metrics} route returning
200 through HTTPS. Caddy was backed up, the route was blocked with the matcher
above, and configuration validation/reload passed. The versioned final proxy
configuration is \path{monitoring/Caddyfile}.
From the external Windows workstation at 21:16:31 UTC, TLS-verified
\texttt{curl.exe} checks returned: Gitea login 200, Gitea metrics 404,
Grafana login 200, Grafana raw metrics 403, and restricted Jenkins login 403.
HTTP Gitea login redirected to HTTPS with 308. Socket checks with three-second
timeouts could not connect to ports 3000, 8080, 9090, 9100 or 9115.
These commands and results are retained in
\path{evidence/chapter5/external-access-audit.json}; sanitized cloud rules and
container identities/mounts are retained alongside them. Both private HTTPS
probes and authenticated Grafana queries remained healthy after the proxy fix.
\begin{tabularx}{\linewidth}{L{3cm}Y}
\caption{Chapter 5 hosts, storage and credential hints\label{Table:SREHosts}}\\
\toprule Service / owner & Address, exposure, storage or secret handling\\\midrule
@@ -353,9 +445,35 @@ Those historical records do not establish current peer-review status.
The recovery build published a fresh success status to Gitea at 20:43:52 UTC,
context \path{startup-product-ci/pipeline/head}, target build 3, matching
commit \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
The repository has no configured webhook; the retained polling fallback is
distinct from webhook delivery. This manual run verifies execution and status
publication, not an automatic new-commit trigger.
The repository has no configured webhook; its configured periodic repository
scan uses \texttt{* * * * *} (once per minute). The following separate check
verifies automatic discovery rather than claiming webhook delivery.
\subsection{Automatic application-trigger verification}
A documentation-only commit was published on isolated application branch
\path{codex/chapter5-trigger-check}; application code and the existing
Jenkinsfile were unchanged. The exact commit is
\href{https://git.sespinal590.dev/group10-startup/startup-product/commit/b39613b2d2869065cf363bff36a7b54225cb7438}{b39613b2d2869065cf363bff36a7b54225cb7438},
created at 21:12:56 UTC (17:12:56 EDT). No Jenkins build or repository scan
was requested manually. Its scheduled scan discovered the branch and started
build 1 at 21:13:17.934; it ended SUCCESS at 21:13:22.127 UTC, 4.193 seconds
later. The retained cause is \path{jenkins.branch.BranchIndexingCause}, with
no manual user cause. Checkout matched the exact commit and all three unit
tests passed on the controller. Gitea received
\path{startup-product-ci/pipeline/head}=success for that commit at 21:13:22.
The observed commit-to-build delay was approximately 22 seconds, consistent
with one-minute polling. This is polling evidence, not a webhook receipt.
The application main remains \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
See the \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex\%252Fchapter5-trigger-check/1/}{automatic application build}
and \path{evidence/chapter5/automatic-trigger.json}. Historical incident,
recovery build and automatic build regions were added to the Grafana dashboard
using measured timestamps; \path{dashboard-annotations.json} records them.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.8\textheight,keepaspectratio]{evidence/chapter5/dashboard-annotated.png}
\caption{Actual incident dashboard with measured outage and recovery-build
annotation regions added during the final Chapter 5 audit.}
\label{Figure:SREAnnotations}\end{figure}
\subsection{Blameless review and owned improvements}
The intended maintenance injection caused the incident. Jenkins initialization
@@ -389,5 +507,39 @@ references and AI log accompany this chapter.
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 timing is limited to user-reported minutes; a separate channel
acknowledgement time and automatic new-commit trigger validation remain
unverified. A successful PDF build does not close those gaps.
acknowledgement timestamp was not captured during the incident. The automatic
application trigger is now verified. Public IPv4 SSH is explicitly deferred by
Sergio, and human peer review plus the requested unmerged status remain open. A successful PDF build does not close those gaps.
\subsection{Final Chapter 5 rubric audit}
This is an evidence audit, not a prediction of the instructor's grade.
\small
\begin{tabularx}{\linewidth}{L{3.5cm}Y}
\caption{Eight-section final audit\label{Table:SREFinalAudit}}\\
\toprule Requirement & Result and retained boundary\\\midrule
Deployment (15 points) & Four pinned containers, digests, topology, retention,
startup/recovery and persistent volumes verified. Backup procedure supplied;
current-state backup restore not claimed.\\
Metrics/probes (15) & Five scrapes healthy, host comparison and metric inventory
recorded; both real HTTPS login probes pass. Private-route limitation explicit.\\
Access control (10) & Authenticated HTTPS, private ports and external tests pass;
public Grafana metrics route fixed. Inherited global IPv4 SSH remains an
explicit user-deferred gap.\\
Dashboard/CI (15) & Six panels, queries/units, versioned definition and normal
build correlation present; measured timeline annotation regions added.\\
SLI/SLO (10) & Definitions, hypothetical budget and actual 20-sample-per-service
exercise window present. No full-day SLO claim; full-day collection is optional.\\
Alerts (15) & Both evaluated/fired/resolved and received in Discord; disk restored
to 15\%. Receiver times are user-reported to the minute, not exact seconds.\\
Incident (10) & Jenkins-only outage, measured detection/recovery, persistence,
passing recovery build, automatic exact-commit build/status and two owned
improvement issues verified. Separate channel acknowledgement time absent.\\
Manual/review (10) & Updated version/history, service/secret hints, inventory,
citations, attribution and automated build metadata present. Draft PR 4 is
unmerged; genuine second-member approval is still required.\\
\bottomrule\end{tabularx}
\normalsize
The user explicitly requested no main merge. Do not close the implementation
issue or present the source as peer-approved until that review occurs. The
remaining human review and deferred SSH policy are recorded openly rather
than being marked complete by automation.
+25
View File
@@ -0,0 +1,25 @@
# Chapter 5 final audit — 2026-10-30
This is an evidence audit against dosManual-V1.42.pdf Chapter 5, not a promised grade. The final updated PDF is the submission artifact; configuration/evidence stays in Gitea.
| Rubric section | Finding | Evidence |
|---|---|---|
| Deployment / 15 | Implemented: four images/digests, topology, private networks, volumes, retention, startup/recovery and restart persistence; backup procedure documented separately from an unperformed current-state restore. | compose.yaml, image-digests.json, sli-persistence.json, monitoring/BACKUP-RECOVERY.md |
| Metrics and probes / 15 | Implemented: five scrapes healthy; memory/root comparison, metric types/units/labels/limits, actual TLS login probes and explicit internal-route limitations. | host-metric-comparison.json, live-metrics.json, versioned scrape/module files |
| Access / 10 | Grafana public raw metrics route fixed and externally verified. Raw backend/exporter ports unreachable, TLS login behavior checked, no global IPv6. OPEN: inherited All IPv4 SSH retained at explicit user request. | monitoring/Caddyfile, external-access-audit.json, final-access-audit.json, cloud-firewall-audit.json |
| Dashboard / 15 | Six panels with queries/units/legends, normal build metrics, definitions in Git, measured incident/build annotations. | dashboard exports/screenshots, final-validation.json, dashboard-annotations.json |
| SLI/SLO / 10 | Definitions, correct hypothetical 2880-probe arithmetic and measured 10-minute 20/20-coverage window supplied. Full-day collection is optional. | sli-persistence.json, incident-samples.json, monitoring/SLI-SLO.md |
| Alerts / 15 | Both rules fired and resolved, owner/severity/runbooks/no-data/error routing documented, four real Discord messages confirmed with minute-level times; safe threshold test restored 15%. | controlled-tests.json, alert-rules-export.json, discord-receipt.json |
| Incident / 10 | Jenkins-only outage/recovery, persistence, passing recovery build 3, exact-commit automatic polling build 1 and matching Gitea success verified; issues 2/3 owned. Separate channel acknowledgement time was not recorded. | jenkins-incident.json, jenkins-recovery-build.json, automatic-trigger.json, restart-gaps.json |
| Manual / 10 | Version/history/hosts and secret hints/glossary/citations/AI attribution updated; final CI build must match new source metadata. OPEN: genuine peer approval; main merge expressly deferred. | devopsSREMonitoring.tex, draft PR 4 |
## Automatic application trigger
Existing one-minute repository scan discovered documentation commit b39613b2d2869065cf363bff36a7b54225cb7438 on codex/chapter5-trigger-check. Build 1 ran 21:13:17.934–21:13:22.127 UTC (17:13 EDT), cause BranchIndexingCause, unchanged pipeline, all three tests passed. Gitea published startup-product-ci/pipeline/head=success for the same SHA. No manual build or scan endpoint was called. The test branch remains isolated; application main is unchanged at 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065.
## Remaining boundaries
- User explicitly chose to retain global IPv4 SSH and flag it. No firewall rule was changed.
- Turan's genuine peer review of the final manual source remains required; draft PR 4 and implementation issue 1 remain open, and main must not be merged yet.
- Incident Discord times are user-reported to the minute; a separate channel acknowledgement time was not captured and cannot be reconstructed honestly.
- A monitoring backup/restore procedure is supplied; a new current-state off-host backup/restore was not performed. The previous cloud snapshot predates deployment.
+48
View File
@@ -0,0 +1,48 @@
{
"expected_commit": "b39613b2d2869065cf363bff36a7b54225cb7438",
"observations": [
{
"observed_at": "2026-10-30T21:13:34.396722+00:00",
"number": 1,
"building": false,
"result": "SUCCESS"
}
],
"build": {
"number": 1,
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/",
"result": "SUCCESS",
"timestamp": 1793394797934,
"duration": 4193
},
"revisions": [
"b39613b2d2869065cf363bff36a7b54225cb7438"
],
"causes": [
{
"_class": "jenkins.branch.BranchIndexingCause",
"shortDescription": "Branch indexing"
}
],
"console_excerpt": [
"Branch indexing",
"Running on Jenkins in /var/jenkins_home/workspace/_ci_codex_chapter5-trigger-check",
"Checking out Revision b39613b2d2869065cf363bff36a7b54225cb7438 (codex/chapter5-trigger-check)",
"Commit message: \"Document Chapter 5 monitoring handoff and automatic trigger check\"",
"Ran 3 tests in 0.000s",
"OK",
"Finished: SUCCESS"
],
"gitea_status": {
"state": "success",
"sha": "b39613b2d2869065cf363bff36a7b54225cb7438",
"statuses": [
{
"status": "success",
"context": "startup-product-ci/pipeline/head",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/display/redirect",
"created_at": "2026-10-30T21:13:22Z"
}
]
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

@@ -0,0 +1,43 @@
{
"observed_on": "2026-10-30",
"source": "Signed-in DigitalOcean firewall Rules and Droplets UI",
"firewall_id": "dc253da0-adff-4549-b4d1-ce3cb509914b",
"firewall_name": "ssw590-gitea-firewall",
"attached_droplet": {
"id": 604497684,
"name": "sergio-ssw590-gitea",
"public_ipv4": "165.227.90.215",
"size_display": "2 GB / 10 GB / NYC1"
},
"inbound": [
{
"tcp": 22,
"sources": [
"All IPv4",
"existing operator /32 (redacted)"
]
},
{
"tcp": 80,
"sources": [
"All IPv4",
"All IPv6"
]
},
{
"tcp": 443,
"sources": [
"All IPv4",
"All IPv6"
]
}
],
"outbound": [
"ICMP all IPv4/IPv6",
"TCP all ports IPv4/IPv6",
"UDP all ports IPv4/IPv6"
],
"host_ufw": "inactive",
"public_ipv6": "not enabled on droplet; no global host IPv6 address",
"ssh_decision": "User explicitly requested leave SSH unchanged and flag it; no firewall rule modified."
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

@@ -0,0 +1,53 @@
[
{
"request": {
"time": 1793392725484,
"timeEnd": 1793392959110,
"tags": [
"chapter5",
"controlled-exercise"
],
"text": "Jenkins-only controlled outage: stop request to first recovered HTTPS probe. UTC. See Chapter 5 incident timeline.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 10,
"message": "Annotation added"
}
},
{
"request": {
"time": 1793393012534,
"timeEnd": 1793393032340,
"tags": [
"chapter5",
"normal-build"
],
"text": "Jenkins main recovery build 3 SUCCESS, commit 6cfac4ec1e. Controller execution.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 11,
"message": "Annotation added"
}
},
{
"request": {
"time": 1793394797934,
"timeEnd": 1793394802127,
"tags": [
"chapter5",
"automatic-trigger"
],
"text": "Automatic branch-indexing build 1 SUCCESS; codex/chapter5-trigger-check; commit b39613b2d2869065cf363bff36a7b54225cb7438; three tests passed.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 12,
"message": "Annotation added"
}
}
]
@@ -0,0 +1,64 @@
{
"captured_at": "2026-10-30T21:16:31.703076+00:00",
"source": "Sergio Windows workstation, outside primary droplet",
"http": [
{
"url": "https://git.sespinal590.dev/user/login",
"exit": 0,
"result": "200 ",
"error": ""
},
{
"url": "https://git.sespinal590.dev/metrics",
"exit": 0,
"result": "404 ",
"error": ""
},
{
"url": "https://ci.165.227.90.215.sslip.io/login",
"exit": 0,
"result": "403 ",
"error": ""
},
{
"url": "https://metrics.165.227.90.215.sslip.io/login",
"exit": 0,
"result": "200 ",
"error": ""
},
{
"url": "https://metrics.165.227.90.215.sslip.io/metrics",
"exit": 0,
"result": "403 ",
"error": ""
},
{
"url": "http://git.sespinal590.dev/user/login",
"exit": 0,
"result": "308 https://git.sespinal590.dev/user/login",
"error": ""
}
],
"tcp": [
{
"port": 3000,
"reachable": false
},
{
"port": 8080,
"reachable": false
},
{
"port": 9090,
"reachable": false
},
{
"port": 9100,
"reachable": false
},
{
"port": 9115,
"reachable": false
}
]
}
+122
View File
@@ -0,0 +1,122 @@
{
"captured_at": "2026-10-30T21:14:45.733137+00:00",
"https://git.sespinal590.dev/user/login": {
"status": 200,
"content_type": "text/html; charset=utf-8"
},
"https://git.sespinal590.dev/metrics": {
"status": 404
},
"https://ci.165.227.90.215.sslip.io/login": {
"status": 403
},
"https://ci.165.227.90.215.sslip.io/prometheus/": {
"status": 403
},
"https://metrics.165.227.90.215.sslip.io/login": {
"status": 200,
"content_type": "text/html; charset=UTF-8"
},
"https://metrics.165.227.90.215.sslip.io/metrics": {
"status": 403
},
"global_ipv6": "",
"ufw_status": "Status: inactive\n",
"monitoring-prometheus-1": {
"user": "nobody",
"mounts": [
{
"source": "/var/lib/docker/volumes/monitoring_prometheus_data/_data",
"destination": "/prometheus",
"rw": true
},
{
"source": "/opt/ssw590-monitoring/prometheus/prometheus.yml",
"destination": "/etc/prometheus/prometheus.yml",
"rw": false
}
],
"ports": {
"9090/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"monitoring_monitoring_private"
]
},
"monitoring-grafana-1": {
"user": "472",
"mounts": [
{
"source": "/opt/ssw590-monitoring/grafana/provisioning",
"destination": "/etc/grafana/provisioning",
"rw": false
},
{
"source": "/var/lib/docker/volumes/monitoring_grafana_data/_data",
"destination": "/var/lib/grafana",
"rw": true
},
{
"source": "/opt/ssw590-monitoring/grafana/dashboards",
"destination": "/var/lib/grafana/dashboards",
"rw": false
}
],
"ports": {
"3000/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"gitea_default",
"monitoring_monitoring_private"
]
},
"monitoring-node-exporter-1": {
"user": "nobody",
"mounts": [
{
"source": "/",
"destination": "/host",
"rw": false
}
],
"ports": {
"9100/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"monitoring_monitoring_private"
]
},
"monitoring-blackbox-exporter-1": {
"user": "",
"mounts": [
{
"source": "/opt/ssw590-monitoring/blackbox/blackbox.yml",
"destination": "/etc/blackbox/blackbox.yml",
"rw": false
}
],
"ports": {
"9115/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"gitea_default",
"monitoring_monitoring_private"
]
}
}
+49
View File
@@ -0,0 +1,49 @@
{
"health": {
"database": "ok",
"version": "13.3.0",
"commit": "6f8ce3c693b493043ebcd4787566d2b6b118b0f0"
},
"datasources": [
{
"uid": "prometheus",
"url": "http://prometheus:9090"
}
],
"dashboard_panels": 6,
"rules": [
{
"uid": "sre-https-unavailable",
"title": "HTTPS Service Unavailable",
"for": "1m",
"noDataState": "NoData",
"execErrState": "Error",
"threshold": [
1
]
},
{
"uid": "sre-root-disk-low",
"title": "Host Root Disk Space Low",
"for": "5m",
"noDataState": "NoData",
"execErrState": "Error",
"threshold": [
15
]
}
],
"rule_states": [
[
"HTTPS Service Unavailable",
"inactive",
"ok"
],
[
"Host Root Disk Space Low",
"inactive",
"ok"
]
],
"annotations": 3
}
@@ -0,0 +1,213 @@
{
"captured_at": "2026-10-30T21:18:38.979555+00:00",
"host_free_b": " total used free shared buff/cache available\nMem: 2063564800 1211461632 147107840 3719168 886272000 852103168\nSwap: 1073737728 100024320 973713408\n",
"host_df_B1_root": "Filesystem 1B-blocks Used Available Use% Mounted on\n/dev/vda1 9283444736 7441113088 1825554432 81% /\n",
"node_memory_MemTotal_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemTotal_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.134,
"2063564800"
]
}
]
}
},
"node_memory_MemAvailable_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.283,
"890720256"
]
}
]
}
},
"node_filesystem_size_bytes{mountpoint=\"/\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_size_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793395119.412,
"9283444736"
]
}
]
}
},
"node_filesystem_avail_bytes{mountpoint=\"/\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_avail_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793395119.532,
"1825574912"
]
}
]
}
},
"up": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox-exporter"
},
"value": [
1793395119.647,
"1"
]
}
]
}
},
"probe_success": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.759,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.759,
"1"
]
}
]
}
},
"probe_duration_seconds": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.879,
"0.069309989"
]
},
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.879,
"0.025185514"
]
}
]
}
},
"docker_stats": "monitoring-grafana-1 CPU=1.12% MEM=172.5MiB / 1.922GiB\nmonitoring-prometheus-1 CPU=0.39% MEM=101.7MiB / 1.922GiB\nmonitoring-node-exporter-1 CPU=0.00% MEM=10.57MiB / 1.922GiB\nmonitoring-blackbox-exporter-1 CPU=0.00% MEM=14.8MiB / 1.922GiB\njenkins CPU=0.17% MEM=414.8MiB / 1.922GiB\ncaddy CPU=0.00% MEM=50.93MiB / 1.922GiB\ngitea CPU=2.74% MEM=145.3MiB / 1.922GiB\n",
"docker_version": "29.8.1",
"compose_version": "5.5.1"
}
+6 -1
View File
@@ -320,7 +320,7 @@ Turan — preparation: Architecture, proposed configuration, dashboard defi
Sergio — implementation: Capacity approval, deployment, networking, security, persistence, live verification, alert testing, controlled incident, evidence collection, final manual updates, reviewed merge, and PDF submission.
Current status: Preparation only. Monitoring deployment and operational verification remain pending.
Historical preparation checkpoint: Preparation only. Monitoring deployment and operational verification remain pending.
## Verified deployment checkpoint: October 30, 2026
The primary droplet (165.227.90.215) was resized with approval to 2 GiB RAM,
@@ -365,3 +365,8 @@ but the automated workflow and glossary generation are not yet verified.
## Completed exercise evidence, 2026-10-30
The measured deployment and incident report is in `devopsSREMonitoring.tex`. Both real alert pairs were received in Discord. Jenkins recovery build 3 passed and published its matching success status to Gitea. The 10-minute exercise recorded 20/20 successful Gitea observations and 13/20 Jenkins observations. Separate Prometheus/Grafana restarts retained history and configuration. Human peer review and main merge remain deferred. Earlier preparation/checkpoint sections describe the rollout sequence, not final evidence status. See `evidence/chapter5/` for sanitized records.
## Final audit checkpoint, 2026-10-30
Automatic application polling discovered commit b39613b2d2869065cf363bff36a7b54225cb7438 and built/tested it successfully without a manual trigger. Grafana public /metrics was blocked with the validated versioned Caddyfile. The complete eight-section audit is in devopsSREMonitoring.tex; backup procedure in BACKUP-RECOVERY.md; updated runtime evidence under evidence/chapter5/. The user explicitly deferred global IPv4 SSH restriction. Human peer review remains pending and main stays unmerged. Earlier preparation sections are historical, not the final runtime status.
+11
View File
@@ -0,0 +1,11 @@
# Monitoring backup and recovery procedure
Owner: Sergio (sespinal). This is an operator procedure, not a claim that a new monitoring backup or restore was performed. The retained DigitalOcean snapshot predates monitoring deployment.
1. Arrange a maintenance window and an approved encrypted backup destination outside this droplet. Check free bytes and estimated archive size first; retain the 15% free-space margin. Do not stage a full volume archive on the retained 10 GB root disk unless space is proven sufficient. A second directory on this droplet is not an off-host backup.
2. Record the source commit, image digests, Grafana plugin 13.2.4, Docker volume names and current UTC time. Stop Grafana before copying its SQLite state, and stop Prometheus before copying its entire data directory. Use a shell trap/finally block to restart both services even if copying fails. Leave Gitea, Caddy and Jenkins running.
3. Preserve `/var/lib/docker/volumes/monitoring_grafana_data/_data` and `/var/lib/docker/volumes/monitoring_prometheus_data/_data`, ownership, permissions and timestamps. Grafana's database is `grafana.db`; Prometheus history includes blocks, WAL and head data. Transfer with an approved binary-safe archive/SSH tool to the off-host destination. Also preserve `/opt/ssw590-monitoring/.env`, `grafana/provisioning/alerting/discord.local.yml`, and `/opt/gitea/Caddyfile` privately. Credentials, the Discord URL, sessions, and state archives must never enter Git, the PDF, screenshots or chat. Use root-only local permissions and encrypted storage/transport. Pin/reinstall the Prometheus plugin if omitting its reconstructible plugin files from the archive.
4. Restart using `docker compose start prometheus grafana` in `/opt/ssw590-monitoring`; check health, old samples, dashboard, datasource, rules, contact point and both probes. Record the collection gap. Generate and verify archive checksums at source and destination. Retain a dated inventory and agreed retention period. Remove temporary local archives only after destination verification and owner approval.
5. Prove recovery in isolated replacement volumes, not by overwriting the live volumes. Use the same source/images/plugin first; restore files with UID 472 for Grafana and the original Prometheus ownership. Restore the protected environment/contact provisioning privately, validate configuration and verify historical query results, HTTPS, alert routing and a test notification. An isolated recovery success is separate evidence from the already completed container restart test. Do not delete the live volumes or revert the droplet without explicit authorization.
Example checks (read-only): `docker volume inspect monitoring_grafana_data monitoring_prometheus_data`; `df -B1 /`; `du -sb <verified-volume-path>`. Any archive/restore commands must use the inspected paths and the approved backup destination. Review the official Grafana backup guide and Prometheus storage guidance cited in the manual.
+22
View File
@@ -0,0 +1,22 @@
git.sespinal590.dev {
encode zstd gzip
reverse_proxy gitea:3000
}
ci.165.227.90.215.sslip.io {
encode zstd gzip
@approved remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32
handle @approved {
reverse_proxy jenkins:8080
}
handle {
respond "Jenkins access requires an approved team source or administrator tunnel." 403
}
}
metrics.165.227.90.215.sslip.io {
encode zstd gzip
@rawMetrics path /metrics /metrics/*
respond @rawMetrics "Raw metrics are private." 403
reverse_proxy grafana:3000
}