Compare commits
@@ -1,7 +1,7 @@
|
||||
name: Team manual PDF
|
||||
on:
|
||||
push:
|
||||
branches: [main, manual-build-validation]
|
||||
branches: [main, manual-build-validation, assignment7/manual-1.9.2]
|
||||
jobs:
|
||||
manual:
|
||||
runs-on: manual-latex
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Publish verified PDF and traceability manifest
|
||||
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
|
||||
with:
|
||||
name: assignment6-1.8.2-run-${{ github.run_number }}-${{ github.sha }}
|
||||
name: assignment7-1.9.2-run-${{ github.run_number }}-${{ github.sha }}
|
||||
path: |
|
||||
documentation/build/main.pdf
|
||||
documentation/build/build-manifest.json
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
pipeline {
|
||||
agent any
|
||||
options {
|
||||
skipDefaultCheckout()
|
||||
disableConcurrentBuilds()
|
||||
timeout(time: 5, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
timestamps()
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'git rev-parse HEAD'
|
||||
}
|
||||
}
|
||||
stage('Syntax check') {
|
||||
steps {
|
||||
sh 'python3 --version'
|
||||
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'python3 -m unittest discover -s tests -v'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
## Product Scope
|
||||
|
||||
FilePilot demonstrates a controlled file-update workflow. It accepts a target
|
||||
MyFileAgent demonstrates a controlled file-update workflow. It accepts a target
|
||||
file description, expected text, and replacement text. The application locates
|
||||
the file only within an approved demonstration directory, verifies the expected
|
||||
text, creates a backup, presents a diff, performs the replacement, verifies the
|
||||
result, and records the outcome.
|
||||
|
||||
FilePilot does not provide unrestricted filesystem access, general desktop
|
||||
MyFileAgent does not provide unrestricted filesystem access, general desktop
|
||||
control, arbitrary shell execution, or open-ended autonomous planning.
|
||||
|
||||
## Demonstration Acceptance Criteria
|
||||
|
||||
The demonstration succeeds when FilePilot:
|
||||
The demonstration succeeds when MyFileAgent:
|
||||
|
||||
1. finds the approved project-status file;
|
||||
2. confirms that it contains `Status: Draft`;
|
||||
|
||||
@@ -19,3 +19,11 @@ checkout, syntax and two unit tests and reported success to Gitea. This work-in-
|
||||
edition also records the private webhook, enforced merge gate, controlled
|
||||
failure/repair, human review, merge and passing post-merge main build. The restart test, team port checks and plugin review are also recorded;
|
||||
remaining access-policy and credential checks are explicitly pending.
|
||||
|
||||
Assignment 7 adds persistent private Prometheus/Grafana monitoring, whole-host metrics,
|
||||
TLS-validating HTTPS probes, a six-panel dashboard, measured availability and two
|
||||
Discord-tested alerts. An approved Jenkins-only outage demonstrated firing, recovery
|
||||
and resolved delivery while Gitea remained healthy. The chapter records response
|
||||
timing, restart persistence, an approved/merged operational change and owned follow-up
|
||||
issues. External IPv4 port evidence is included; IPv6 and skipped external HTTPS
|
||||
capture remain explicit limits. The documentation was approved and published through Gitea Actions; version 1.9.2 incorporates the final editorial and layout corrections.
|
||||
|
||||
@@ -18,12 +18,20 @@
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
|
||||
\parbox[t]{2.7cm}{\raggedright October 28, 2026\\ 1.9.2\\ GDL, NK, CDX} & Write the full SRE chapter through the Gitea-backed Droplet checkout; retain the team's screenshot choices, add Grafana host/vault hints, apply final editorial/layout corrections and compile through Gitea Actions. & Codex authored from recorded deployment, probes, alert tests, incident samples and persistence evidence; created source diagrams without changing original screenshots; recorded PR 14's human approval/merge and post-merge CI. The team supplied outside-Droplet port results and incognito/dashboard images, skipped the extra external HTTPS capture, and specified \texttt{bitwarden-grafana}. The team approved documentation PR 15 and Actions run 16 compiled the manual; version 1.9.2 applies the requested final wording and wrapping corrections. Next-day recovery-build timing remains accurately identified. \\
|
||||
|
||||
|
||||
\parbox[t]{2.7cm}{\raggedright October 24, 2026\\ 1.9.1\\ GDL, NK, CDX} & Write only the SLI/SLO material into the manual source. & The user authorized this narrow source update. Codex used the recorded live baseline (20/20 successful probes for each service) and kept it separate from the instructor's hypothetical example. The draft explicitly leaves controlled-outage and full-day conclusions unclaimed. \\
|
||||
|
||||
\parbox[t]{2.7cm}{\raggedright October 24, 2026\\ 1.9.0\\ GDL, NK, CDX} & Clarify retired public ports and historical branch-protection wording on the Droplet. & AI reviewed the operational checkout and newer Assignment 6 publication source, marked earlier 5050/8080 public endpoints closed while preserving historical commands/evidence, and distinguished private Jenkins 8080. The earlier no-protection observation now points to the later enforced gate. \\
|
||||
|
||||
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.2\\ GDL, NK, CDX} & Configure Jenkins through its web interface: accounts, repository discovery, credentials, multibranch builds, required checks, peer review and plugin operations. & The team entered administrator and integration passwords/tokens privately. Codex assisted with Gitea discovery scope, the dedicated repository identity, job discovery and the Python checkout/syntax/test pipeline. It correlated issue 10 and PR 11 with automatic runs, made the isolated arithmetic defect and repair, and verified commit-specific failure and success. It corrected the required PR check context and configured branch protection. NK independently approved the final change; GDL performed the normal merge. The merged main commit passed Jenkins. The team selected Matrix-based security, supplied its permissions view and confirmed administrative access after saving. Codex explained the permission settings, checked plugin-update information and retained the controller-build warning. The CI token inventory showed one current entry; token values were neither read nor recorded. Post-save anonymous access and self-registration were not independently confirmed. \\
|
||||
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.1\\ GDL, NK, CDX} & Configure DNS, HTTPS, reverse-proxy routing, private webhook delivery and network exposure; verify firewall attachment and IPv4-only operation. & Codex assisted with the CI A record, Caddy site and loopback-only Jenkins mapping. It diagnosed the failed tunnel's Docker-name resolution and used the host loopback endpoint instead. HTTPS verification recorded the certificate, login response, redirect and anonymous API denial. The private Gitea webhook used an exact-host destination allowance; Caddy blocked its public receiver. The installed handler did not validate HMAC, so no shared-secret authentication was claimed. A successful delivery was matched to its Jenkins run. The team chose public browser access and later removed retired 5050/8080 firewall allowances. It supplied the named firewall rules, attached Droplet view, external TCP results, disabled-IPv6 view, DNS AAAA result and UFW-inactive output. These human-performed checks retain that attribution; earlier TCP tests are not relabeled as post-cleanup tests. Instructor approval for the public-browser exception was not supplied. \\
|
||||
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.0\\ GDL, NK, CDX} & Deploy official Jenkins LTS, preserve its home directory, record the toolchain and verify jobs survive restart on the existing Droplet. & The team selected the existing 1 GB host and the permitted Python application. Codex recorded capacity, deployed the official Jenkins image with a pinned digest and non-secret Compose configuration, and bounded its resource use. When the initial start stalled, it stopped only Jenkins, checked Gitea health and retried successfully; it did not assert an unproven cause for the startup exception. Plugin versions and the persistent home volume were recorded. Controller builds were selected for trusted source without a Docker socket; Python installation and replacement-container recovery were made reproducible. For the authorized restart, Codex saved file sizes and hashes, restarted the service without deleting its volume, and confirmed all 13 configuration/build records were unchanged. The saved main job passed afterward. The team reviewed the observed results. No Jenkins backup/restore test, new paid cloud host or capacity upgrade was performed. \\
|
||||
\parbox[t]{2.7cm}{\raggedright October 6--7, 2026\\ 1.7.1\\ GDL, CDX, NK} & Implement approved Chapter 3; update the manual, verify Actions artifacts, and apply the requested concise history/log and rubric review. & The user approved remote implementation, supplied the original source/images, and selected version 1.7.1. AI configured the runner/toolchain, corrected its memory limit, executed builds 3--4 and failure/repair 5--6, and verified downloaded PDFs by identity, checksum, links and rendered pages. The team reviews the final Actions PDF before submission. \\
|
||||
\parbox[t]{2.7cm}{\raggedright September 29, 2026\\ 1.6.1\\ NK, GDL, CDX} & Complete and review the public-domain, HTTPS, evidence, recovery, and reference material for Assignment 4. & The team supplied the domain and renewal facts, verified DNS, HTTPS, certificate automation and external ports, and approved the backup/restore exercise. AI assisted with diagnostics, isolated recovery evidence, requirement auditing, live links, security explanations, concise credential and reference updates, figure-flow improvements, compilation, and visual review. \\
|
||||
\parbox[t]{2.7cm}{\raggedright September 26, 2026\\ 1.6.0\\ NK, GDL, CDX} & Implement and document the MyFileAgent Gitea startup foundation while preserving the earlier grading services. & The team selected the accounts, approved changes, completed the repository workflow, ran verification commands, and supplied evidence. With permission, AI assisted with pinned Gitea/SQLite, persistent volumes, key-only SSH, and the Cloud Firewall while preserving ports 5050 and 8080 and documenting the instructor-cleared SSH exception. \\
|
||||
\parbox[t]{2.7cm}{\raggedright September 26, 2026\\ 1.6.0\\ NK, GDL, CDX} & Implement and document the MyFileAgent Gitea startup foundation while preserving the earlier grading services. & The team selected the accounts, approved changes, completed the repository workflow, ran verification commands, and supplied evidence. With permission, AI assisted with pinned Gitea/SQLite, persistent volumes, key-only SSH, and the Cloud Firewall while preserving ports 5050 and 8080 at that historical stage (both are now closed publicly) and documenting the instructor-cleared SSH exception. \\
|
||||
\parbox[t]{2.7cm}{\raggedright September 18, 2026\\ 1.5.1\\ NK, GDL, CDX} & Develop and integrate Chapter 8, the Project Proposal, for the MyFileAgent one-click DevSecOps pipeline. & The team supplied the project direction and selected tools. AI assisted with organizing the proposal, defining a limited demonstration task, and presenting the planned installation, build, configuration, testing, deployment, security, and Grafana monitoring workflow. The team reviews and approves the final proposal. \\
|
||||
\parbox[t]{2.7cm}{\raggedright September 18, 2026\\ 1.5.0\\ NK, GDL, CDX} & Document the DigitalOcean Droplet and Docker installation, website deployment, class-based JavaScript button design and UML diagram in Chapter 6, and the TeX Live Docker build, run, and verification workflow in Chapter 7. & The team supplied the requirements, deployment evidence, commands, and project files. AI assisted with LaTeX organization, code presentation, UML preparation, compilation, and layout review. The team reviews the material and verifies all commands and live deployment results. \\ \pagebreak
|
||||
\parbox[t]{2.7cm}{\raggedright September 12, 2026\\ 1.4.1\\ NK, GDL, CDX} & Update Section 3.2 with the human-run command outputs, include Hosts and Passwords, reduce and link the glossary, and verify index links. & AI suggested Linux commands to run and assisted with document organization and LaTeX editing. The team verified the commands before running them, made changes as needed, ran the commands, and gathered the outputs. AI did not execute the commands or produce the recorded terminal outputs. \\
|
||||
|
||||
@@ -15,4 +15,9 @@ The following acronyms occur in the assignment document.
|
||||
\item[\textbf{SSH}] Secure Shell. \hfill Reference: \hyperref[AcronymRef:SSH]{p.~\pageref*{AcronymRef:SSH}}
|
||||
\item[\textbf{TCP}] Transmission Control Protocol. \hfill Reference: \hyperref[AcronymRef:TCPAssignment4]{p.~\pageref*{AcronymRef:TCPAssignment4}}
|
||||
\item[\textbf{TLS}] Transport Layer Security. \hfill Reference: \hyperref[AcronymRef:TLS]{p.~\pageref*{AcronymRef:TLS}}
|
||||
\item[\textbf{SRE}] Site Reliability Engineering. \hfill Reference: \hyperref[AcronymRef:SRE]{p.~\pageref*{AcronymRef:SRE}}
|
||||
\item[\textbf{SLI}] Service-Level Indicator. \hfill Reference: \hyperref[AcronymRef:SLI]{p.~\pageref*{AcronymRef:SLI}}
|
||||
\item[\textbf{SLO}] Service-Level Objective. \hfill Reference: \hyperref[AcronymRef:SLO]{p.~\pageref*{AcronymRef:SLO}}
|
||||
\item[\textbf{SLA}] Service-Level Agreement. \hfill Reference: \hyperref[AcronymRef:SLA]{p.~\pageref*{AcronymRef:SLA}}
|
||||
\item[\textbf{TSDB}] Time-Series Database. \hfill Reference: \hyperref[AcronymRef:TSDB]{p.~\pageref*{AcronymRef:TSDB}}
|
||||
\end{description}
|
||||
|
||||
@@ -195,9 +195,12 @@ The current review edition must not inherit the identity of an earlier artifact.
|
||||
|
||||
\section{Runner and secret boundary}
|
||||
\index{runner!security}\index{Docker socket}
|
||||
The repository's Owners team may change workflows; preflight found no direct
|
||||
collaborators and no branch-protection rules. Peer review is a team procedure,
|
||||
not an enforced gate for this assignment. Only trusted team pushes to the
|
||||
The repository's Owners team may change workflows. The historical Assignment 5
|
||||
preflight found no direct collaborators and no branch-protection rules; peer
|
||||
review was then a team procedure rather than an enforced gate. This is not
|
||||
the current policy: Assignment 6 subsequently enforced the required Jenkins
|
||||
status check and peer approval on main, with bypass disabled, as documented
|
||||
in \ChapterRef{JenkinsContinuousIntegration}. Only trusted team pushes to the
|
||||
selected branches execute. Untrusted pull-request triggers are not enabled.
|
||||
The runner controls the host Docker socket and therefore has powerful host
|
||||
access; containers are not a security boundary against a malicious trusted
|
||||
|
||||
@@ -68,6 +68,11 @@ sudo docker run hello-world
|
||||
\end{minted}
|
||||
|
||||
\section{First Container: Hello World Website}
|
||||
\begin{devopsNote}[Historical deployment: public port 5050 is closed]
|
||||
The commands and endpoint below preserve the earlier assignment record.
|
||||
Public access to port 5050 has since been closed; do not rerun these historical
|
||||
port-publishing commands as the current deployment procedure.
|
||||
\end{devopsNote}
|
||||
|
||||
Following Section 2.5 of the supplied Docker setup guide, the team created a
|
||||
minimal Node.js HTTP server, its \texttt{package.json}, a
|
||||
@@ -82,10 +87,16 @@ sudo docker run -d --name hello-node -p 5050:3000 hello-node
|
||||
sudo docker ps
|
||||
\end{minted}
|
||||
|
||||
The deployed endpoint is
|
||||
The historical endpoint (public port now closed) was
|
||||
\href{http://142.93.193.110:5050}{http://142.93.193.110:5050}.
|
||||
|
||||
\section{Second Container: Two Buttons Website}
|
||||
\begin{devopsNote}[Historical deployment: public port 8080 is closed]
|
||||
The original two-button deployment below is historical. Public access to
|
||||
port 8080 is now closed. Jenkins uses port 8080 only on the private bridge
|
||||
and host loopback; users access Jenkins through its HTTPS hostname.
|
||||
Do not rerun the historical public-port mapping below.
|
||||
\end{devopsNote}
|
||||
|
||||
Following Section 2.6 of the supplied guide, the team created an Express-based
|
||||
Node.js website with Blue and Red buttons. The project contained
|
||||
@@ -176,7 +187,7 @@ sudo docker run -d --name color-buttons-app -p 8080:3000 color-buttons-app
|
||||
sudo docker ps
|
||||
\end{minted}
|
||||
|
||||
The deployed two-button website is
|
||||
The historical two-button endpoint (public port now closed) was
|
||||
\href{http://142.93.193.110:8080}{http://142.93.193.110:8080}. Clicking either
|
||||
button calls its controller instance and changes the page background to the
|
||||
corresponding color.
|
||||
|
||||
@@ -19,6 +19,14 @@
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
|
||||
October 28, 2026 / 1.9.2 & GDL, NK, CDX & Expanded Assignment 7 into eight evidence sections; added architecture and measured incident diagrams, original team screenshots, final alert/runbook details, SLI counts, persistence, reviewed operational links and explicit verification limits. Updated Hosts with Grafana, Passwords with the team-specified \texttt{bitwarden-grafana} hint, front matter and reference controls. Operational PR 14 and documentation PR 15 were approved and merged; Actions run 16 compiled the manual. Final editorial and table-wrapping corrections are incorporated in version 1.9.2. & \ChapterRef{SREMonitoringReliability}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
|
||||
|
||||
|
||||
October 24, 2026 / 1.9.1 & GDL, NK, CDX & Added only the Assignment 7 SLI/SLO source draft: definitions, hypothetical 99\% error-budget example, verified ten-minute baseline, reproducible queries and pending incident limitations. Included the SRE chapter and baseline evidence. & \ChapterRef{SREMonitoringReliability}, \AppendixRef{AIPromptLog} \\
|
||||
|
||||
October 24, 2026 / 1.9.0 & GDL, NK, CDX & Clarified that historical public ports 5050/8080 are now closed; retained original commands and evidence, private Jenkins routing, and linked the historical Assignment 5 preflight to the later enforced branch gate. Prepared on the Droplet for team review. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{GiteaStartupFoundation}, \ChapterRef{AutomatedManualBuild}, \AppendixRef{AIPromptLog} \\
|
||||
|
||||
October 9, 2026 / 1.8.2 & GDL, NK, CDX & \textbf{Jenkins usage through the web interface.} Configured the named Jenkins administrator and a dedicated, non-admin Gitea integration account. Stored its token in Jenkins credentials and corrected organization discovery scope. Created the multibranch pipeline for the startup repository and selected origin PR head revisions; disabled untrusted fork discovery. Committed the Python pricing example, two real unit tests and Jenkinsfile. Verified checkout, syntax checks and test results through the web interface. Created issue 10 and PR 11; deliberately changed multiplication to addition, observed test failure and a blocked merge, then restored multiplication and obtained a passing required check. Corrected the branch-protection context to \texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main}, required peer approval and disabled bypass. NK approved; GDL merged; Jenkins tested the resulting main commit. Confirmed Matrix permissions for the named administrator, with no Anonymous or general Authenticated Users permissions. Refreshed plugin-update information, retained the controller warning, and confirmed the single current CI token. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Passwords} \\
|
||||
October 9, 2026 / 1.8.1 & GDL, NK, CDX & \textbf{Networking and service access.} Configured the CI hostname, DNS A record and Caddy HTTPS reverse proxy on the existing Droplet. Corrected the administrative SSH tunnel to forward to the host loopback mapping instead of a Docker-only hostname. Verified the live login page, certificate issuer and validity, HTTP-to-HTTPS redirect, and anonymous API denial. Kept raw Jenkins port 8080 bound to loopback and did not publish an agent port. Configured repository-scoped Gitea push and PR webhooks over the private Compose bridge; allowed only the named Jenkins destination and blocked the public webhook receiver at Caddy. Correlated a successful delivery with a commit-specific Jenkins run. The team retired earlier service allowances: the attached Cloud Firewall now permits inbound 22, 80 and 443 only. Recorded external IPv4 results, IPv6 disabled, no CI AAAA answer, and UFW inactive. Public browser access remains the team's selected policy; instructor exception evidence has not been supplied. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Hosts} \\
|
||||
October 9, 2026 / 1.8.0 & GDL, NK, CDX & \textbf{Jenkins installation and persistence.} Installed official Jenkins LTS with Java 21 on the existing one-CPU, 1 GB DigitalOcean Droplet, after recording memory and disk capacity. Used the LTS image tag and pinned immutable digest; the installed release was 2.580.1. Versioned the non-secret Compose configuration with restart policy, bounded JVM/container memory, private networking and persistent Jenkins home. Recovered a stalled initial startup by stopping only Jenkins, confirming Gitea remained healthy, and retrying; the original exception's root cause was not established. Installed and recorded Git/Gitea/Checks and supporting plugin versions. Selected controller execution for trusted team code, without a privileged Docker socket or separate inbound agent listener. Installed Python from recorded Debian repositories and retained a reproduction helper for replacement containers. Restarted Jenkins without deleting storage; all 13 recorded configuration/build files survived unchanged. The saved main job then passed syntax and both tests. This verified restart persistence, not backup/restore. Updated Hosts for CI services and Passwords with credential hints only. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
|
||||
|
||||
@@ -294,6 +294,13 @@ that the production certificate was forcibly renewed.
|
||||
\FloatBarrier
|
||||
|
||||
\section{Firewall and External Exposure}
|
||||
\begin{devopsNote}[Current status: earlier public application ports are closed]
|
||||
The September firewall rules, tests, figures, and table below are historical.
|
||||
Public ports 5050 and 8080 were subsequently closed, as recorded in
|
||||
\ChapterRef{JenkinsContinuousIntegration}. They are not current public
|
||||
endpoints. Jenkins port 8080 remains private and loopback-only.
|
||||
\end{devopsNote}
|
||||
|
||||
\phantomsection\label{GlossaryRef:cloudfirewall}
|
||||
\paragraph{Exposure policy and temporary exceptions.}
|
||||
The host currently publishes the earlier Assignment 3 applications on ports
|
||||
@@ -359,9 +366,9 @@ external port-test results.
|
||||
80/TCP & Caddy \texttt{80:80} & Public through firewall & HTTP redirect and ACME validation \\
|
||||
443/TCP & Caddy \texttt{443:443} & Public through firewall & MyFileAgent HTTPS \\
|
||||
3000/TCP & \path{127.0.0.1:3000:3000} & Loopback only & Private Gitea backend and SSH tunnel \\
|
||||
5050/TCP & Earlier assignment service & Temporarily public & Assignment 3 grading \\
|
||||
5050/TCP & Earlier assignment service & Now closed publicly & Historical Assignment 3 grading \\
|
||||
5432/TCP & No listener or mapping & Not public & Unused because SQLite was selected \\
|
||||
8080/TCP & Earlier assignment service & Temporarily public & Assignment 3 grading \\
|
||||
8080/TCP & Earlier assignment service & Now closed publicly & Historical Assignment 3 grading \\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
\end{table}
|
||||
|
||||
@@ -21,4 +21,9 @@
|
||||
\item[\textbf{Jenkinsfile}] A versioned pipeline recipe containing checkout, syntax and test stages. \hfill Reference: \hyperref[GlossaryRef:jenkinsfile]{p.~\pageref*{GlossaryRef:jenkinsfile}}
|
||||
\item[\textbf{required status check}] A named result on the latest pull-request head commit that branch protection requires before merge. \hfill Reference: \hyperref[GlossaryRef:requiredcheck]{p.~\pageref*{GlossaryRef:requiredcheck}}
|
||||
\item[\textbf{webhook}] An event notification that starts integration processing; successful delivery alone is not a passing build or merge gate. \hfill Reference: \hyperref[GlossaryRef:webhook]{p.~\pageref*{GlossaryRef:webhook}}
|
||||
\item[\textbf{SRE}] Engineering approach combining reliability objectives, monitoring and operations. \hfill Reference: \hyperref[GlossaryRef:sre]{p.~\pageref*{GlossaryRef:sre}}
|
||||
\item[\textbf{dashboard}] Named visual collection of operational measurements. \hfill Reference: \hyperref[GlossaryRef:dashboard]{p.~\pageref*{GlossaryRef:dashboard}}
|
||||
\item[\textbf{SLI}] Measured service success indicator with observation coverage. \hfill Reference: \hyperref[GlossaryRef:sli]{p.~\pageref*{GlossaryRef:sli}}
|
||||
\item[\textbf{SLO}] Internal target for the indicator over a defined window. \hfill Reference: \hyperref[GlossaryRef:slo]{p.~\pageref*{GlossaryRef:slo}}
|
||||
\item[\textbf{error budget}] Allowed unsuccessful fraction implied by a reliability target. \hfill Reference: \hyperref[GlossaryRef:errorbudget]{p.~\pageref*{GlossaryRef:errorbudget}}
|
||||
\end{description}
|
||||
|
||||
@@ -17,5 +17,9 @@ assignment and any that will be configured in future assignments.
|
||||
\endhead \bottomrule \endlastfoot
|
||||
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu Linux development environment at \texttt{142.93.193.110}; 1 virtual CPU, 1 GB memory, and 25 GB storage; normally administered through the non-root \texttt{codex} account; the team supplied the UFW check from a root shell. October 9 evidence: IPv6 disabled, attached Cloud Firewall permits inbound 22/80/443 only, UFW inactive. Hosts the MyFileAgent Gitea service at \href{https://myfileagent.tech}{\texttt{myfileagent.}\allowbreak\texttt{tech}} through Caddy-managed HTTPS. Gitea remains bound to \texttt{127.0.0.1:3000}; an authenticated SSH local forward is retained as an administrative fallback.\\
|
||||
\texttt{gitea} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\
|
||||
\texttt{ci.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Jenkins 2.580.1 at \href{https://ci.myfileagent.tech/login}{HTTPS login}; public browser access, authentication required. Caddy forwards to \texttt{jenkins:8080} on the private bridge. Host port 8080 is loopback-only; no agent port is published. Team-owned, controller builds, persistent \texttt{jenkins-home}. Login, restart and main build 2 verified October 9, 2026; CI AAAA query returned no address. Named Matrix admin access team-confirmed; public-access approval remains unresolved. Backup/monitoring not established. See \ChapterRef{JenkinsContinuousIntegration}.\\
|
||||
\texttt{ci.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Jenkins 2.580.1 at \href{https://ci.myfileagent.tech/login}{HTTPS login}; public browser access, authentication required. Caddy forwards to \texttt{jenkins:8080} on the private bridge. Host port 8080 is loopback-only; no agent port is published. Team-owned, controller builds, persistent \texttt{jenkins-home}. Login, restart and main build 2 verified October 9, 2026; CI AAAA query returned no address. Named Matrix admin access team-confirmed; public-access approval remains unresolved. At the October 9 baseline, backup/monitoring was not established. Assignment 7 subsequently added HTTPS probes and host monitoring; monitoring does not establish Jenkins backup/restore. See \ChapterRef{JenkinsContinuousIntegration}.\\
|
||||
\texttt{metrics.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Grafana OSS 13.2.4 at \href{https://metrics.myfileagent.tech/login}{HTTPS login}; authentication required, anonymous access and signup disabled in provisioning. Caddy forwards privately to \texttt{grafana:3000}. Persistent Grafana volume; six-panel monitoring and two-panel runbook dashboards; team Discord alert route. See \ChapterRef{SREMonitoringReliability}.\\
|
||||
\texttt{prometheus} & Existing Droplet & Prometheus v3.15.1 on the private monitoring bridge at port 9090; separate persistent volume, 30-second scrapes, seven-day/512 MB block retention. No public port published.\\
|
||||
\texttt{node-exporter} & Existing Droplet & Node Exporter v1.12.1, private port 9100; read-only host root/proc/sys and host PID namespace for whole-host CPU, memory and filesystem collectors.\\
|
||||
\texttt{blackbox-exporter} & Existing Droplet & Blackbox Exporter v0.29.1, private port 9115; probes Gitea/Jenkins HTTPS login URLs with TLS verification. Same-Droplet probes do not prove reachability from all external networks.\\
|
||||
\end{tabularx}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
\section{Assignment Purpose}
|
||||
This report records the team's developing DevOps environment and the work
|
||||
completed through Assignment 4, together with the Assignment 5 automated
|
||||
completed through Assignment 7, retaining the Assignment 5 automated
|
||||
manual-build work described in \ChapterRef{AutomatedManualBuild}. The earlier chapters establish Linux
|
||||
\phantomsection\label{GlossaryRef:bash}Bash command-line skills, the Ubuntu working environment, host configuration, and
|
||||
password-management concepts. Earlier assignments extended that foundation
|
||||
|
||||
@@ -798,4 +798,3 @@ Credentials and build boundary & Matrix administrator permissions and retained a
|
||||
Document controls and final submission & Version/history/registries updated; publication commit/run and artifact are identified on the Build Identity page and in Section 10.5.\\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
|
||||
|
||||
@@ -23,4 +23,6 @@ Group 7 & Actions runner & Restricted state: \texttt{.runner} & Outside Git; mod
|
||||
\texttt{ssw590} & Jenkins & Bitwarden: \texttt{jenkins-admin} & Named Matrix administrator.\\
|
||||
\texttt{jenkins-}\allowbreak\texttt{ci} & Gitea & Bitwarden: \texttt{gitea-jenkins} & Non-admin; product repository Write access.\\
|
||||
\texttt{jenkins-}\allowbreak\texttt{ci} & Jenkins / Gitea & Jenkins credential: \texttt{gitea-}\allowbreak\texttt{jenkins-ci} & Global PAT: repo write; user/org read. Rotate on compromise.\\
|
||||
Group 7 & Grafana & Bitwarden: \path{bitwarden-grafana} & Never publish the password. The restricted initial-password file outside Git is a bootstrap value and must not be used to reset the changed login.\\
|
||||
Group 7 & Discord alert route & Restricted \path{grafana-discord-webhook} and private routing provisioning outside Git & Secret URL excluded from source and screenshots. Rotate/revoke through the team Discord integration if compromised; preserve resolved delivery.\\
|
||||
\end{tabularx}
|
||||
|
||||
@@ -163,3 +163,35 @@
|
||||
howpublished = {\url{https://docs.gitea.com/development/oauth2-provider/#scopes}},
|
||||
note = {Accessed October 9, 2026}
|
||||
}
|
||||
|
||||
@misc{PrometheusStorageA7,
|
||||
author = {{Prometheus Authors}},
|
||||
title = {Prometheus Storage},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://prometheus.io/docs/prometheus/latest/storage/}},
|
||||
note = {Accessed: October 28, 2026}
|
||||
}
|
||||
|
||||
@misc{NodeExporterA7,
|
||||
author = {{Prometheus Authors}},
|
||||
title = {Monitoring Linux Host Metrics with the Node Exporter},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://prometheus.io/docs/guides/node-exporter/}},
|
||||
note = {Accessed: October 28, 2026}
|
||||
}
|
||||
|
||||
@misc{BlackboxExporterA7,
|
||||
author = {{Prometheus Authors}},
|
||||
title = {Blackbox Exporter: Multi-target HTTPS Probing},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://github.com/prometheus/blackbox_exporter}},
|
||||
note = {Accessed: October 28, 2026}
|
||||
}
|
||||
|
||||
@misc{GrafanaAlertFilesA7,
|
||||
author = {{Grafana Labs}},
|
||||
title = {Provision Grafana Alerting Resources from Files},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/}},
|
||||
note = {Accessed: October 28, 2026}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,597 @@
|
||||
\chapter{Introduction to SRE: Monitoring and Reliability}
|
||||
\ChapterLabel{SREMonitoringReliability}
|
||||
\index{SRE}\index{Prometheus}\index{Grafana}\index{Node Exporter}\index{Blackbox Exporter}
|
||||
|
||||
\begin{devopsNote}[Assignment 7 final draft]
|
||||
This chapter addresses instructor manual version 1.42, Chapter 5, using the existing
|
||||
MyFileAgent Gitea/Jenkins Droplet. Evidence is dated October 24--28, 2026.
|
||||
Operational PR 14 and documentation PR 15 were reviewed and merged; Gitea Actions
|
||||
run 16 successfully compiled and published the Assignment 7 manual.
|
||||
\end{devopsNote}
|
||||
|
||||
\section{Deployment and Reproducibility}
|
||||
\subsection{Scope, Ownership and Baseline}
|
||||
\phantomsection\label{AcronymRef:SRE}\label{GlossaryRef:sre}
|
||||
Site reliability engineering (SRE) combines measurable objectives, monitoring and
|
||||
operating procedures. Four separate project-published containers were added:
|
||||
Prometheus, Grafana OSS, Node Exporter and Blackbox Exporter. Gitea, Jenkins, Caddy,
|
||||
the repository and the Droplet were reused. No Kubernetes, cAdvisor, application
|
||||
metrics plugin, separate Alertmanager or new workload was introduced.
|
||||
|
||||
Gowri Das Lovely coordinated the approved work; Codex assisted with implementation,
|
||||
measurement and source authoring on the Droplet. Nicholas Kogut independently approved
|
||||
and merged \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14}{PR 14}.
|
||||
Branch \texttt{assignment7/monitoring} had head
|
||||
\path{6605394d7a3e4183bfc8e94e2b08f1d324a73b8e}; its reviewed merge is
|
||||
\path{b42689f02f30ad895101a2c5f367e54e3603bc5d}.
|
||||
Issues 12 and 13 are owned follow-ups. A separate initial Assignment 7 planning issue
|
||||
was not captured; later issues are not described as a pre-deployment issue.
|
||||
|
||||
Host \texttt{ssw590-group7-droplet}, IPv4 \texttt{142.93.193.110}, has one vCPU and
|
||||
nominal 1 GB RAM/25 GB storage. Pre-monitoring main build 3 passed October 24 in
|
||||
19.365 seconds on starting commit \path{131d605c5edb5b5080e4d54861c3c7bf7c360c9c}.
|
||||
Available memory ranged from 86.3 to 170.2 MiB during that build; host CPU reached
|
||||
100\% in one sample. These are whole-host observations, not Jenkins-only consumption.
|
||||
|
||||
|
||||
A dated October 28 cross-check recorded Ubuntu 24.04.4 LTS, \texttt{x86\_64}, Docker
|
||||
29.8.1 and Compose v5.5.1; total RAM was 1,008,177,152 bytes and swap 1,073,737,728
|
||||
bytes. Root filesystem size was 24,883,167,232 bytes. These later values are not
|
||||
relabeled as an October 24 baseline. See
|
||||
\path{evidence/assignment7/documentation-host-comparison-2026-10-28.json}.
|
||||
No new paid host/upgrade was purchased; existing hosting and domain remain team-owned.
|
||||
A current billing amount was not collected. Monitoring success does not resolve the
|
||||
earlier access-policy exceptions automatically.
|
||||
|
||||
\subsection{Architecture, Images and Retention}
|
||||
% Source-only architecture figure; no compilation performed.
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\small
|
||||
\begin{tabular}{c}
|
||||
\fbox{\parbox{0.88\linewidth}{\centering External browser clients\\HTTPS 443; Caddy-managed certificates}}\\[0.6em]
|
||||
$\downarrow$\\[0.6em]
|
||||
\fbox{\parbox{0.88\linewidth}{\centering Shared DigitalOcean Droplet: Caddy reverse proxy\\
|
||||
\texttt{myfileagent.tech} $\rightarrow$ Gitea\\
|
||||
\texttt{ci.myfileagent.tech} $\rightarrow$ Jenkins\\
|
||||
\texttt{metrics.myfileagent.tech} $\rightarrow$ authenticated Grafana}}\\[0.6em]
|
||||
$\downarrow$ private Docker networking\\[0.6em]
|
||||
\fbox{\parbox{0.88\linewidth}{\centering Grafana $\rightarrow$ Prometheus:9090\\
|
||||
Prometheus $\rightarrow$ Node Exporter:9100 and Blackbox Exporter:9115\\
|
||||
Prometheus also scrapes itself and Blackbox Exporter's own metrics.\\
|
||||
Blackbox $\rightarrow$ Gitea/Jenkins HTTPS login URLs; TLS validation enabled.}}\\[0.6em]
|
||||
\fbox{\parbox{0.88\linewidth}{\centering Node Exporter $\rightarrow$ read-only host root/proc/sys; host PID namespace\\
|
||||
Prometheus $\rightarrow$ persistent \texttt{prometheus\_data} volume\\
|
||||
Grafana $\rightarrow$ persistent \texttt{grafana\_data} volume\\
|
||||
Grafana alerting $\rightarrow$ team Discord webhook over HTTPS; secret outside Git}}\\
|
||||
\end{tabular}
|
||||
\caption{Deployed monitoring architecture. Only Grafana joins both the monitoring
|
||||
and existing private proxy networks. Raw monitoring ports are not published.
|
||||
A total Droplet failure can also stop local monitoring and notifications.}
|
||||
\label{Figure:SREArchitecture}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\begin{table}[htbp]\centering\small
|
||||
\begin{tabularx}{\linewidth}{L{2.5cm}YL{2.2cm}}
|
||||
\toprule Service & Published image & Release\\\midrule
|
||||
Prometheus & \texttt{prom/prometheus} & v3.15.1\\
|
||||
Grafana OSS & \texttt{grafana/grafana} & 13.2.4\\
|
||||
Node Exporter & \texttt{quay.io/prometheus/node-exporter} & v1.12.1\\
|
||||
Blackbox Exporter & \texttt{quay.io/prometheus/blackbox-exporter} & v0.29.1\\
|
||||
\bottomrule\end{tabularx}
|
||||
\caption{Recorded Linux/amd64 monitoring images. Compose fixes tags rather than claiming all images are digest-pinned.}
|
||||
\end{table}
|
||||
Full pulled digests are preserved in
|
||||
\path{evidence/assignment7/monitoring-image-digests-2026-10-24.json}.
|
||||
Prometheus has a 160 MiB memory/swap cap and \texttt{GOMEMLIMIT=120MiB}; exporters have
|
||||
32 MiB caps. Grafana's memory/swap limit was removed at the team's request after
|
||||
bounded startup failed readiness. CPU quotas remain. This observed shared-host lab
|
||||
operation is not a sizing guarantee. Run Jenkins/manual builds one at a time; two
|
||||
configured executors do not prove safe concurrency. Per-job nonconcurrency does not
|
||||
prevent overlap between different jobs.
|
||||
|
||||
\phantomsection\label{AcronymRef:TSDB}
|
||||
Prometheus time-series database (TSDB) retention is seven days and 512 MB of blocks.
|
||||
Write-ahead-log, head and compaction require additional room: 512 MB is not a total
|
||||
volume quota. Save evidence before history expires\cite{PrometheusStorageA7}.
|
||||
|
||||
\subsection{Deployment, Persistence and Recovery Instructions}
|
||||
The reviewed \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring}{monitoring source}
|
||||
is deployed from \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring}.
|
||||
Only Grafana joins both \texttt{myfileagent-gitea\_gitea-private} and
|
||||
\texttt{myfileagent-monitoring\_monitoring}. Node Exporter reads host root/proc/sys
|
||||
through a read-only root mount and uses the host PID namespace. This grants sensitive
|
||||
host visibility, but no privileged mode or Docker socket. Only CPU, memory and
|
||||
filesystem collectors are enabled. No monitoring host ports are published.
|
||||
|
||||
The following abridged Compose excerpt shows the persistent/private boundary;
|
||||
the reviewed source contains all services, limits and the separate secret override.
|
||||
\begin{lstlisting}
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.15.1
|
||||
volumes:
|
||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
- prometheus_data:/prometheus
|
||||
networks: [monitoring]
|
||||
grafana:
|
||||
image: grafana/grafana:13.2.4
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
||||
networks: [monitoring, proxy]
|
||||
networks:
|
||||
monitoring:
|
||||
proxy:
|
||||
external: true
|
||||
name: myfileagent-gitea_gitea-private
|
||||
volumes:
|
||||
prometheus_data:
|
||||
grafana_data:
|
||||
\end{lstlisting}
|
||||
No \texttt{ports:} mapping is present for these monitoring services.
|
||||
|
||||
Review actual networks, identities and paths before deployment. The override uses
|
||||
supplemental group 1000 and this Droplet's restricted secret paths. An authorized
|
||||
operator supplies the initial Grafana password and private Discord routing file
|
||||
outside Git; the committed routing placeholder contains only \texttt{apiVersion: 1}.
|
||||
It cannot recreate the receiver secret. Never reset a changed login with the bootstrap
|
||||
file. See the team-specified \texttt{bitwarden-grafana} hint in \ChapterRef{Passwords}.
|
||||
|
||||
From the reviewed monitoring directory, after checking prerequisites:
|
||||
\begin{lstlisting}
|
||||
docker compose config --quiet
|
||||
docker compose pull
|
||||
docker compose up -d node-exporter blackbox-exporter prometheus
|
||||
docker compose exec -T prometheus promtool check config /etc/prometheus/prometheus.yml
|
||||
docker compose up -d grafana
|
||||
docker compose ps
|
||||
\end{lstlisting}
|
||||
Compose and promtool checks passed; Blackbox loaded its module and successfully
|
||||
probed services. Preserve all existing Caddy routes when adding the Grafana route;
|
||||
validate Caddy before reload. The example fragment is not a whole Caddyfile replacement.
|
||||
Rollback only monitoring with \texttt{docker compose stop} from its directory; resume
|
||||
with \texttt{docker compose start}. Never use \texttt{down -v}, global pruning or
|
||||
stop the existing Gitea/Jenkins project as monitoring rollback.
|
||||
|
||||
Separate named volumes preserve Prometheus history and Grafana state. Before upgrades,
|
||||
plan a consistent stopped Grafana volume/SQLite backup, preserve ownership and store
|
||||
private routing secrets separately. Use a documented consistent Prometheus snapshot
|
||||
or planned stopped backup, not an assumed-consistent live recursive copy. Restore
|
||||
into isolation and verify before replacing live data. Monitoring backup/restore has
|
||||
not been exercised; the later restart evidence proves persistence only.
|
||||
|
||||
\section{Metrics and HTTPS Probes}
|
||||
\subsection{Collection and Metric Inventory}
|
||||
Jobs \texttt{prometheus}, \texttt{node}, \texttt{blackbox} and \texttt{https} scrape
|
||||
every 30 seconds. The first three collect Prometheus itself, host metrics and Blackbox's
|
||||
own metrics. The separate multi-target job requests Blackbox \texttt{/probe}, retaining
|
||||
the target URL as \texttt{instance}\cite{NodeExporterA7,BlackboxExporterA7}.
|
||||
\begin{table}[htbp]\centering\footnotesize
|
||||
\begin{tabularx}{\linewidth}{L{4.2cm}L{1.7cm}Y}
|
||||
\toprule Metric & Type/unit & Labels, meaning and limits\\\midrule
|
||||
\path{node_cpu_seconds_total} & Counter, seconds & CPU/mode/instance; cumulative host CPU time. Use rates, not raw counts, for utilization.\\
|
||||
\texttt{node\_memory\_}\allowbreak\texttt{MemAvailable\_bytes} & Gauge, bytes & Instance/job; estimated host memory available without swapping, not just unused RAM.\\
|
||||
\texttt{node\_filesystem\_}\allowbreak\texttt{size\_bytes}, \texttt{node\_filesystem\_}\allowbreak\texttt{avail\_bytes} & Gauge, bytes & Device/fstype/mountpoint/instance; select the same real root filesystem, excluding overlays and pseudo mounts.\\
|
||||
\path{up} & Gauge, 0/1 & Job/instance; collection succeeded. Not application availability.\\
|
||||
\path{probe_success} & Gauge, 0/1 & Job/URL instance; configured probe succeeded, not authenticated Git/build correctness.\\
|
||||
\path{probe_duration_seconds} & Gauge, seconds & Job/URL instance; elapsed probe duration. A failed probe may finish quickly.\\
|
||||
\bottomrule\end{tabularx}\caption{Required metric inventory and interpretation.}
|
||||
\end{table}
|
||||
|
||||
\subsection{Host Cross-check and Actual Filesystem Labels}
|
||||
The verified selector is \texttt{mountpoint="/", device="/dev/vda1", fstype="ext4"},
|
||||
not an assumed \texttt{/host} label or overlay. October 28 \texttt{free -b} and exported
|
||||
total RAM both gave 1,008,177,152 bytes. Available RAM was 217,042,944 bytes at the host
|
||||
command versus a recently scraped 232,452,096 bytes. Observations were not simultaneous;
|
||||
changing workloads prevent exact equality. Root size matched at 24,883,167,232 bytes;
|
||||
available root bytes were 12,422,406,144 versus 12,422,414,336, an 8,192-byte difference
|
||||
between nearby observations. CPU idle time from \texttt{/proc/stat} was 31,254,346 ticks
|
||||
versus a recently scraped 312,523.19 seconds. The recorded host clock unit is 100 ticks per second. Compare using units and
|
||||
timestamps; these are not raw quantities in identical units. No precise simultaneous
|
||||
CPU-rate comparison is claimed. Raw values are in the dated host-comparison JSON.
|
||||
Host metrics combine workloads and cannot be attributed solely to Jenkins.
|
||||
|
||||
\subsection{HTTPS Success Definition and Diagnosis}
|
||||
Targets are \url{https://myfileagent.tech/user/login} and
|
||||
\url{https://ci.myfileagent.tech/login}. The GET module follows redirects, requires
|
||||
SSL, prefers IPv4 and validates hostname/certificate. Expected final status is 2xx;
|
||||
there is no body-content assertion or authenticated user transaction.
|
||||
\begin{lstlisting}
|
||||
modules:
|
||||
http_2xx:
|
||||
prober: http
|
||||
timeout: 10s
|
||||
http:
|
||||
method: GET
|
||||
preferred_ip_protocol: ip4
|
||||
follow_redirects: true
|
||||
fail_if_not_ssl: true
|
||||
tls_config:
|
||||
insecure_skip_verify: false
|
||||
\end{lstlisting}
|
||||
All five targets and both service probes were healthy in the October 28 cross-check.
|
||||
During the Jenkins outage, collection continued while its probe became zero:
|
||||
\texttt{up=1} can coexist with \texttt{probe\_success=0}. Diagnose collection, exporter
|
||||
logs, DNS, TLS and proxy/backend health before restarting anything. A same-Droplet
|
||||
login-page probe does not establish external reachability from every network, working
|
||||
Git operations or successful builds. Complete host failure can stop monitoring too.
|
||||
|
||||
\section{HTTPS and Access Control}
|
||||
\subsection{Public Pages and Authentication}
|
||||
Operating entry points are \href{https://myfileagent.tech/user/login}{Gitea login},
|
||||
\href{https://ci.myfileagent.tech/login}{Jenkins login} and
|
||||
\href{https://metrics.myfileagent.tech/login}{Grafana login}.
|
||||
Grafana's root URL is \url{https://metrics.myfileagent.tech}; provisioning disables
|
||||
anonymous access and signup. The team changed the bootstrap password privately.
|
||||
Figure~\ref{Figure:GrafanaSignedOut} shows the supplied incognito login page. It
|
||||
establishes the displayed page requires credentials, not that every direct dashboard
|
||||
URL has independently been tested signed out.
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.68\textheight,keepaspectratio]{hw7_images/team-grafana-incognito-login.png}
|
||||
\caption{Team-supplied incognito Grafana login page. No password is included.}
|
||||
\label{Figure:GrafanaSignedOut}\end{figure}
|
||||
|
||||
October 28 Jenkins configuration showed the private security realm,
|
||||
\texttt{disableSignup=true}, Matrix authorization, and no explicit Anonymous or general
|
||||
Authenticated Users grants. This is a configuration check, not a new private-window
|
||||
access test. Earlier public-browser and SSH-source exception limitations remain
|
||||
unresolved without independent instructor approval; working monitoring does not waive them.
|
||||
|
||||
\subsection{External Port Evidence and Limits}
|
||||
\EvidenceID{A7-ACCESS-01}: the team ran PowerShell from its Windows workstation outside
|
||||
the Droplet October 28, 14:20:37--14:21:35 EDT. IPv4 \texttt{142.93.193.110} accepted
|
||||
TCP on 80/443. Ports 3000, 3001, 5050, 8080, 9090, 9100, 9115 and 50000 were not
|
||||
reachable within the 2.5-second timeout. Earlier public 5050/8080 endpoints are closed;
|
||||
current Jenkins 8080 remains private and loopback-bound. Failed connections do not
|
||||
distinguish refusal from filtering. No raw monitoring port is intentionally published.
|
||||
|
||||
The transcript resolved IPv6 \texttt{2607:7700:0:28:0:2:8e5d:c16e}; all tested ports,
|
||||
including 80/443, were unreachable. A Droplet check found no global IPv6 address while
|
||||
kernel disable flags were zero. TLS-validating
|
||||
probes and HTTPS health checks from the Droplet are separate evidence, not replacements
|
||||
for a missing external command result. Sanitized findings are in
|
||||
\path{evidence/assignment7/team-external-access-summary-2026-10-28.json}; the original
|
||||
transcript remains private outside Git because it includes workstation metadata.
|
||||
A complete independent scan of unintended public HTTPS metrics routes is not recorded.
|
||||
|
||||
\section{Dashboard and Continuous-Integration Correlation}
|
||||
\subsection{Six Required Panels}
|
||||
\phantomsection\label{GlossaryRef:dashboard}
|
||||
The \href{https://metrics.myfileagent.tech/d/myfileagent-sre}{MyFileAgent -- SRE Monitoring}
|
||||
dashboard has UID \texttt{myfileagent-sre}, folder SSW590, timezone
|
||||
\texttt{America/New\_York}, and 30-second refresh. Its units and legends distinguish:
|
||||
\begin{enumerate}
|
||||
\item \textbf{Whole-host CPU (percent):}
|
||||
\begin{lstlisting}
|
||||
100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])))
|
||||
\end{lstlisting}
|
||||
This averages host CPU non-idle time over a two-minute rate window.
|
||||
\item \textbf{Available host memory (bytes, displayed MiB):}
|
||||
\begin{lstlisting}
|
||||
node_memory_MemAvailable_bytes{job="node"}
|
||||
\end{lstlisting}
|
||||
\item \textbf{Root available space (percent):}
|
||||
\begin{lstlisting}
|
||||
100 * node_filesystem_avail_bytes{mountpoint="/",device="/dev/vda1",fstype="ext4"}
|
||||
/ node_filesystem_size_bytes{mountpoint="/",device="/dev/vda1",fstype="ext4"}
|
||||
\end{lstlisting}
|
||||
\item \textbf{Gitea HTTPS availability (0/1):} \texttt{probe\_success} filtered to its URL.
|
||||
\item \textbf{Jenkins HTTPS availability (0/1):} the same metric filtered to its URL.
|
||||
\item \textbf{HTTPS duration (seconds):} \texttt{probe\_duration\_seconds\{job="https"\}}
|
||||
with separate service lines. A quick failed probe is not good latency.
|
||||
\end{enumerate}
|
||||
Scrape health is checked separately with \texttt{up}, not substituted for availability.
|
||||
The original screenshots below were chosen by the team; their rolling windows were
|
||||
captured at different times and are not a single fixed comparison dataset.
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{hw7_images/team-dashboard-cpu-memory.png}
|
||||
\caption{Team-selected CPU/memory evidence with build markers on both panels.}
|
||||
\label{Figure:SRECPU}\end{figure}
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{hw7_images/team-dashboard-root-gitea.png}
|
||||
\caption{Team-selected root-space and Gitea availability panels.}
|
||||
\label{Figure:SRERootGitea}\end{figure}
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{hw7_images/team-dashboard-jenkins-duration.png}
|
||||
\caption{Team-selected Jenkins availability and two-service HTTPS duration panels.}
|
||||
\label{Figure:SREJenkinsDuration}\end{figure}
|
||||
|
||||
\subsection{Normal Build 4: Before, During and After}
|
||||
\EvidenceID{A7-CI-01}: \href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/4/}{main build 4}
|
||||
passed October 24, 16:34:13.162--16:34:45.699 EDT, duration 32.537 seconds, on commit
|
||||
\path{131d605c5edb5b5080e4d54861c3c7bf7c360c9c}. It ran on the Jenkins controller
|
||||
executor on this Droplet, passed syntax and two tests, and notified Gitea. Separate
|
||||
start/end annotations were saved on each of the six panels with build, commit,
|
||||
timestamps and execution location. They are panel-specific, not automatically global.
|
||||
|
||||
The fixed comparison window is
|
||||
\href{https://metrics.myfileagent.tech/d/myfileagent-sre?from=1792873933162\&to=1792874145699}{16:32:13.162--16:35:45.699 EDT}.
|
||||
Host CPU ranged approximately 24.57--37.49\% before, 36.67--38.99\% during, and
|
||||
55.51--64.56\% after. Available memory during the run ranged from 181,882,880 to
|
||||
222,879,744 bytes. Root available space stayed near 50.8\%; both service probes stayed
|
||||
one. These are shared-host correlations, not per-Jenkins attribution. A two-minute
|
||||
CPU rate smooths/delays a short build's peak. Five-second query steps over 30-second
|
||||
scrapes repeat evaluations; they do not create five-second observations. No synthetic
|
||||
load was added to manufacture a spike. Raw series and test evidence are versioned.
|
||||
|
||||
\section{SLI, SLO and Error Budget}
|
||||
\subsection{Definitions and Hypothetical Example}
|
||||
\phantomsection\label{AcronymRef:SLI}\label{GlossaryRef:sli}\index{SLI}
|
||||
A service-level indicator (SLI) is the measured fraction of specified HTTPS probes
|
||||
that succeed; report each service separately and include expected/received coverage.
|
||||
\phantomsection\label{AcronymRef:SLO}\label{GlossaryRef:slo}\index{SLO}
|
||||
Our service-level objective (SLO) is at least 99\% successful scheduled probes over
|
||||
24 hours per service, an internal laboratory target.
|
||||
\phantomsection\label{AcronymRef:SLA}\index{SLA}
|
||||
A service-level agreement (SLA) is a customer agreement that may define consequences
|
||||
for a miss; this exercise creates no customer SLA.
|
||||
|
||||
The instructor's hypothetical figures are not measured results. At 30-second intervals,
|
||||
a complete day has 2,880 probes. Gitea's 2,880/2,880 is 100\%; Jenkins's 2,850/2,880
|
||||
is approximately 98.96\%, below 99\%.
|
||||
\phantomsection\label{GlossaryRef:errorbudget}\index{error budget}
|
||||
The theoretical error budget is $(1-0.99)\times2880=28.8$ failed samples, equivalent
|
||||
to $28.8\times30/60=14.4$ minutes under uniform sampling. At most 28 whole failures
|
||||
meet the target; 30 exceed the theoretical budget by 1.2 samples, about 0.6 minutes.
|
||||
These equivalents are not exact continuous downtime measurements.
|
||||
|
||||
\subsection{Baseline and Actual Exercise Window}
|
||||
\EvidenceID{A7-SLO-BASELINE-01}: the healthy October 24 baseline was
|
||||
16:40:50--16:50:50 EDT, 20:40:50--20:50:50 UTC, evaluation epoch \texttt{1792875050}.
|
||||
Both services had 20 received samples, all successful. The actual controlled-exercise
|
||||
window was \textbf{17:23:00--17:33:00 EDT} on October 24, 21:23:00--21:33:00 UTC,
|
||||
evaluation epoch \texttt{1792877580}. Approximately 20 samples are expected in ten minutes.
|
||||
\begin{table}[htbp]\centering
|
||||
\begin{tabular}{lrrrr}\toprule
|
||||
Service & Received & Successes & Failures & Success fraction\\\midrule
|
||||
Gitea & 20 & 20 & 0 & 100\%\\
|
||||
Jenkins & 20 & 12 & 8 & 60\%\\\bottomrule
|
||||
\end{tabular}
|
||||
\caption{Measured exercise window: both services have nominal 20/20 coverage. This is not a 24-hour SLO measurement.}
|
||||
\label{Table:SREIncidentSLI}\end{table}
|
||||
Both services ended at \texttt{probe\_success=1}. Received failures were isolated to
|
||||
Jenkins. Do not extrapolate the ten-minute percentage to claim a full-day miss/pass.
|
||||
Full-day collection and actually meeting the SLO are optional in instructor version 1.42.
|
||||
|
||||
\subsection{Reproduce Queries and Interpret Missing Data}
|
||||
Evaluate these instant queries at the recorded epoch while history remains retained:
|
||||
\begin{lstlisting}
|
||||
100 * avg_over_time(probe_success{job="https"}[10m])
|
||||
count_over_time(probe_success{job="https"}[10m])
|
||||
count_over_time(probe_success{job="https"}[10m])
|
||||
- sum_over_time(probe_success{job="https"}[10m])
|
||||
up{job=~"https|blackbox|prometheus"}
|
||||
\end{lstlisting}
|
||||
Range selectors are left-open/right-closed. Boundaries, jitter and restarts can change
|
||||
counts. Averages use received observations; absent samples/series are unknown, not
|
||||
success. Count binary probe failures separately from collection failures. Exact query
|
||||
results and samples are retained in
|
||||
\path{evidence/assignment7/jenkins-incident-sli-fixed-window.json} and
|
||||
\path{evidence/assignment7/jenkins-incident-probe-samples.json}.
|
||||
|
||||
\section{Alerts and Operator Runbooks}
|
||||
\subsection{Final Rules and Team-Controlled Delivery}
|
||||
Grafana manages two file-provisioned rules in folder SSW590, group \texttt{team-sre},
|
||||
evaluated every 30 seconds. Labels include owner \texttt{SSW590-Group7}, team
|
||||
\texttt{group7}, scope \texttt{assignment7}, and severity. Both rules have a summary,
|
||||
description and runbook link. No-data and execution errors enter Alerting, not health.
|
||||
Provisioned definitions are changed in reviewed files followed by an authorized
|
||||
reload/restart, not treated as durable UI-only changes\cite{GrafanaAlertFilesA7}.
|
||||
\begin{table}[htbp]\centering\small
|
||||
\begin{tabularx}{\linewidth}{L{3.6cm}YL{2cm}}
|
||||
\toprule Rule & Condition and response & Pending/\newline severity\\\midrule
|
||||
\texttt{sre-service-}\allowbreak\texttt{unavailable} & Expected probe below one, separate URL instances; inspect collection, TLS, proxy/backend and restore only the affected service. & 1 minute; critical\\
|
||||
\path{sre-root-capacity} & Verified root available percentage below 15\%; inspect growth and agree on safe cleanup/retention, protecting persistent data. & 5 minutes; warning\\
|
||||
\bottomrule\end{tabularx}\caption{Final actionable alert rules.}\end{table}
|
||||
Missing expected service series are explicitly replaced with zero and grouped by URL:
|
||||
\begin{lstlisting}
|
||||
min by (instance) (
|
||||
probe_success{job="https"}
|
||||
or on(instance) label_replace(vector(0),"instance",
|
||||
"https://myfileagent.tech/user/login","","")
|
||||
or on(instance) label_replace(vector(0),"instance",
|
||||
"https://ci.myfileagent.tech/login","","")
|
||||
)
|
||||
\end{lstlisting}
|
||||
Capacity uses the same available/size selectors as the root panel.
|
||||
The \href{https://metrics.myfileagent.tech/d/myfileagent-sre-runbooks}{live runbook dashboard}
|
||||
contains service-response panel 1 and capacity-response panel 2; Markdown runbooks
|
||||
are also versioned. Contact point \texttt{team-alerts} uses Discord integration
|
||||
\texttt{team-discord}, with resolved delivery enabled. Policy groups by folder,
|
||||
alert name and instance; group wait is 10 seconds, group interval one minute, and
|
||||
repeat four hours. Collection, evaluation, pending and grouping delays accumulate.
|
||||
The team created the destination and supplied the webhook privately. Gmail SMTP was
|
||||
considered but was not the working route. No receiver secret is included in this manual.
|
||||
|
||||
\subsection{Contact Point and Safe Capacity Test}
|
||||
The team received the contact-point test, but a test message alone does not prove a
|
||||
rule. The October 24 capacity exercise temporarily raised the free-space threshold
|
||||
from 15\% to 90\%, above roughly 50.8\% free, retaining the five-minute pending period.
|
||||
No disk was filled. Figure~\ref{Figure:SRECapacityAlerts} provides the team-received firing and resolved notifications as evidence of the safe test and recovery after restoring the final 15\% threshold. Threshold change was recorded at 17:14:02.658 EDT; pending was
|
||||
observed, then firing at 17:19:57.613. The team supplied the actual firing message.
|
||||
We restored 15\% at 17:20:24.112 and verified final threshold/Normal state by
|
||||
17:21:40.949. Resolved delivery was also confirmed. These are observation times,
|
||||
not precise message-delivery seconds. The resolved screenshot includes an obsolete
|
||||
setup description restored with older rule text; it is historical wording, not the
|
||||
current route. The live description was corrected before the service outage test.
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/capacity-discord-firing-team.png}\par\medskip
|
||||
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/capacity-discord-resolved-team.png}
|
||||
\caption{Actual team-received capacity firing and resolved messages. Final rule: below 15\% for five minutes.}
|
||||
\label{Figure:SRECapacityAlerts}\end{figure}
|
||||
|
||||
\subsection{Diagnosis, Restoration and Escalation}
|
||||
Acknowledge and record time; identify the URL instance; compare collection health,
|
||||
probe result/duration and exporter logs. Check DNS, TLS and Caddy before assuming
|
||||
backend failure. Inspect affected container state/logs, resource pressure and recent
|
||||
changes. Never disable TLS validation to clear a warning. For the approved Jenkins
|
||||
exercise, the known recovery command was:
|
||||
\begin{lstlisting}
|
||||
cd /home/codex/myfileagent-gitea
|
||||
docker compose -f compose.yaml -f compose.jenkins.yaml start jenkins
|
||||
\end{lstlisting}
|
||||
Verify the service name before reuse. Confirm HTTPS, recovered probes, a passing
|
||||
pipeline and Gitea status notification, then record resolved delivery. Escalate
|
||||
unresolved faults to the other team member. For capacity, compare \texttt{df -B1 /},
|
||||
inspect growth read-only, protect volumes/repositories/evidence and agree on cleanup.
|
||||
Do not globally prune Docker or delete service data to manufacture recovery.
|
||||
Repeating a controlled outage or threshold test requires an approved team window.
|
||||
|
||||
\section{Controlled Incident, Recovery and Persistence}
|
||||
\subsection{Approved Jenkins-Only Exercise}
|
||||
The team approved an approximately three-minute Jenkins stop. Prechecks found no
|
||||
unfinished build and an empty queue. Codex executed the known commands on the team's
|
||||
behalf; automatic recovery restarted only Jenkins after approximately three minutes.
|
||||
Gitea and monitoring stayed running and volumes were preserved.
|
||||
Figure~\ref{Figure:SREIncidentDashboard} is the original team dashboard capture.
|
||||
Figure~\ref{Figure:SREIncidentTimeline} adds source-authored event annotations from
|
||||
saved samples; those markers are not claimed to have been saved in the Grafana UI.
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.72\textheight,keepaspectratio]{hw7_images/team-incident-dashboard-full.png}
|
||||
\caption{Team dashboard capture for October 24, approximately 17:23--17:33:59 EDT: Jenkins drops and recovers while Gitea remains one. The displayed range extends beyond the exact 17:23--17:33 SLI window.}
|
||||
\label{Figure:SREIncidentDashboard}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\begin{tikzpicture}[x=1.05cm,y=0.9cm,>=Stealth]
|
||||
\draw[->] (0,0) -- (10.5,0) node[right]{\scriptsize EDT};
|
||||
\foreach \x/\lab in {0/17:23,2/17:25,4/17:27,6/17:29,8/17:31,10/17:33}{\draw (\x,0.08)--(\x,-0.08) node[below]{\scriptsize\lab};}
|
||||
\node[left] at (0,3.2){\scriptsize Gitea};
|
||||
\node[left] at (0,1.4){\scriptsize Jenkins};
|
||||
\draw[gray,dotted] (0,1)--(10,1);\draw[gray,dotted] (0,1.8)--(10,1.8);
|
||||
\node[left] at (0,1){\tiny 0};\node[left] at (0,1.8){\tiny 1};
|
||||
\draw[devopsGreen,thick] (0.41482,3.6)--(9.91482,3.6);
|
||||
\draw[devopsBlue,thick] (0.18372,1.80) -- (0.68372,1.80) -- (0.68372,1.80) -- (1.18372,1.80) -- (1.18372,1.80) -- (1.68372,1.80) -- (1.68372,1.80) -- (2.18372,1.80) -- (2.18372,1.80) -- (2.68372,1.80) -- (2.68372,1.80) -- (3.18372,1.80) -- (3.18372,1.80) -- (3.68372,1.80) -- (3.68372,1.80) -- (4.18372,1.80) -- (4.18372,1.00) -- (4.68372,1.00) -- (4.68372,1.00) -- (5.18372,1.00) -- (5.18372,1.00) -- (5.68372,1.00) -- (5.68372,1.00) -- (6.18372,1.00) -- (6.18372,1.00) -- (6.68372,1.00) -- (6.68372,1.00) -- (7.18372,1.00) -- (7.18372,1.00) -- (7.68372,1.00) -- (7.68372,1.00) -- (8.18372,1.00) -- (8.18372,1.80) -- (8.68372,1.80) -- (8.68372,1.80) -- (9.18372,1.80) -- (9.18372,1.80) -- (9.68372,1.80) -- (9.68372,1.80);
|
||||
\draw[dashed] (3.86662,0)--(3.86662,4.1) node[above,align=center]{\tiny Stop\\\tiny17:26:51.997};
|
||||
\draw[dashed,devopsRed] (5.33333,0)--(5.33333,2.5) node[above,align=center]{\tiny Firing\\\tiny17:28:20};
|
||||
\draw[dashed] (6.91812,0)--(6.91812,4.1) node[above,align=center]{\tiny Restart\\\tiny17:29:55.087};
|
||||
\draw[dashed,devopsGreen] (7.81022,0)--(7.81022,2.5) node[above,align=center]{\tiny HTTPS ready\\\tiny17:30:48.613};
|
||||
\end{tikzpicture}
|
||||
\caption{Annotated timeline from saved binary probe samples, shown as sample-and-hold steps. First failed Jenkins sample: 17:27:11.023; first recovered sample: 17:31:11.023. Command/HTTP event markers are separate from probe transitions. This is a source-authored figure, not an altered Grafana screenshot.}
|
||||
\label{Figure:SREIncidentTimeline}\end{figure}
|
||||
\begin{table}[htbp]\centering\small
|
||||
\begin{tabularx}{\linewidth}{L{5cm}L{3.1cm}Y}\toprule
|
||||
Event & October 24 EDT & Evidence boundary\\\midrule
|
||||
Stop requested & 17:26:45.883 & Automation event\\
|
||||
Jenkins stopped & 17:26:51.997 & Stop completed\\
|
||||
First failed sample & 17:27:11.023 & Actual probe timestamp\\
|
||||
Failure first observed & 17:27:12.740 & Polling timestamp\\
|
||||
Rule firing transition & 17:28:20 & Grafana UI\\
|
||||
Firing first observed & 17:28:34.086 & Polling timestamp\\
|
||||
Discord firing received & displayed 17:28 & No exact second\\
|
||||
Acknowledgment & Confirmed in chat & Clock time unavailable\\
|
||||
Restart requested & 17:29:55.087 & Automatic recovery\\
|
||||
Start command finished & 17:29:57.750 & Exit zero, not readiness\\
|
||||
HTTPS ready observed & 17:30:48.613 & HTTP 200\\
|
||||
First successful sample & 17:31:11.023 & Actual probe timestamp\\
|
||||
Rule Normal transition & 17:31:20 & Grafana UI\\
|
||||
Discord resolved received & Confirmed & No visible message time\\
|
||||
\bottomrule\end{tabularx}\caption{Event versus observation times, America/New\_York, UTC--04:00.}
|
||||
\label{Table:SRETimeline}\end{table}
|
||||
|
||||
Stop-to-first-failed-sample was 19.026 seconds; stop-to-rule-firing was 88.003 seconds.
|
||||
First failed sample to firing was 68.977 seconds. Polling observed firing 14.086 seconds
|
||||
after the UI transition. The scrape/evaluation intervals and one-minute pending period
|
||||
explain quantization; notification grouping adds delay. Exact delivery/acknowledgment
|
||||
latency cannot be calculated without precise receipt/acknowledgment times.
|
||||
Stopped-to-restart-requested was 183.090 seconds, restart-to-observed HTTPS readiness
|
||||
53.526 seconds, and stopped-to-observed readiness 236.617 seconds (about 3 minutes
|
||||
57 seconds). Startup extended the three-minute injection. First failed to first
|
||||
recovered sample spans 240 seconds; this is a sampled interval, not exact downtime.
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/jenkins-discord-firing-team.png}\par\medskip
|
||||
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/jenkins-discord-resolved-team.png}
|
||||
\caption{Service-rule firing and resolved messages received in the team Discord channel.}
|
||||
\label{Figure:SREServiceAlerts}\end{figure}
|
||||
|
||||
\subsection{Recovery Validation and Blameless Review}
|
||||
Both probes ended at one and Discord delivery/resolution was confirmed.
|
||||
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/5/}{Recovery-validation build 5}
|
||||
ran \textbf{October 25}, after fresh sign-in, passing syntax and two tests in 36.837
|
||||
seconds on commit \path{131d605c5edb5b5080e4d54861c3c7bf7c360c9c}. Its log records
|
||||
Gitea SUCCESS notification. It is following-day validation, not an immediate recovery
|
||||
build. The manual was subsequently compiled successfully by Gitea Actions run 16 on October 28; that later publication is distinct from the immediate outage recovery window.
|
||||
|
||||
This approved fault injection is not an unplanned application defect or an individual's
|
||||
error. Impact was eight failed Jenkins probes; Gitea had no failures in the fixed
|
||||
window. Isolation, the idle-build precheck, known recovery command, automatic restart,
|
||||
per-service instances and Discord delivery worked. Gaps were exact receipt and
|
||||
acknowledgment times and prompt pipeline-validation access.
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11}{Earlier PR 11}
|
||||
records a code-test failure/repair, distinct from unavailable-service monitoring.
|
||||
The full blameless review is retained in the reviewed operational source.
|
||||
|
||||
\textbf{P1 issue 12}, assigned to Gowri (\texttt{glovely}), proposes an independent
|
||||
external HTTPS checker. A complete shared-host/network failure can stop local detection
|
||||
and notifications. \textbf{P2 issue 13}, also assigned to Gowri, tracks complete incident
|
||||
timestamps and prompt recovery validation. Both remain open improvements, not completed
|
||||
deployments or authorization for a new outage or paid service.
|
||||
|
||||
\subsection{Separate Prometheus and Grafana Persistence Test}
|
||||
\EvidenceID{A7-PERSIST-01}: on October 28 both services were restarted separately
|
||||
without deleting volumes. Prometheus restart was requested 13:31:34.517 EDT and
|
||||
readiness observed 13:31:40.103 (5.585 seconds). Grafana restart was requested
|
||||
13:32:15.106 and readiness observed 13:32:55.110 (40.004 seconds). Old October 24
|
||||
probe values were unchanged. Data-source, two alert-rule and 18 annotation records
|
||||
matched before/after hashes. Grafana's resource storage retained both original
|
||||
six-panel monitoring and two-panel runbook dashboards. Its empty legacy dashboard
|
||||
table was not mistaken for lost dashboards. All targets/both probes were healthy
|
||||
afterward. Gitea/Jenkins/Grafana health/login checks from the Droplet returned 200;
|
||||
these are not the skipped external HTTPS capture.
|
||||
|
||||
One approximately 60-second interval between Jenkins samples was recorded: 19 received
|
||||
versus approximately 20 expected; Gitea had 20. The missed scheduled collection is
|
||||
unknown, not proof of service failure or success. Grafana restart pauses evaluation
|
||||
and notifications even while Prometheus collects. This demonstrates persistence,
|
||||
not backup/restore or uninterrupted observation.
|
||||
|
||||
\section{Manual Integration, Traceability and Remaining Work}
|
||||
\subsection{Reviewed Operational Source and CI}
|
||||
All links below identify immutable merge commit
|
||||
\path{b42689f02f30ad895101a2c5f367e54e3603bc5d}, rather than a moving branch.
|
||||
\begin{itemize}
|
||||
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/compose.yaml}{Compose configuration} and
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/README.md}{deployment/recovery guide}.
|
||||
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/prometheus/prometheus.yml}{Prometheus targets} and
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/blackbox/blackbox.yml}{Blackbox probe module}.
|
||||
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/grafana/dashboards/team-sre.json}{Dashboard definition} and
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/grafana/provisioning/alerting/team-sre-rules.json}{final alert rules}.
|
||||
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/runbooks}{operator runbooks},
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/incidents/2026-10-24-jenkins-outage.md}{blameless review} and
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/evidence}{sanitized evidence}.
|
||||
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14}{Reviewed PR 14},
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/12}{P1 issue 12} and
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/13}{P2 issue 13}.
|
||||
\end{itemize}
|
||||
Both Jenkins branch and required PR checks passed on feature head \texttt{6605394d7a}.
|
||||
Nicholas (\texttt{nkogut}) approved at 14:03 EDT and merged at 14:04 EDT October 28.
|
||||
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/6/}{Post-merge main build 6}
|
||||
passed syntax and two tests in 36.824 seconds on the merge commit and notified Gitea.
|
||||
These existing Python regressions do not validate every monitoring setting. Separate
|
||||
Compose/promtool, JSON, dashboard-copy and private secret-value checks support the
|
||||
operational change; no gate was bypassed.
|
||||
|
||||
\subsection{Document Controls and Publication Boundary}
|
||||
This is cumulative Assignment 7 manual version 1.9.2, with SRE after Jenkins. Hosts
|
||||
includes the Grafana page and private monitoring services. Passwords contains the
|
||||
team-specified \texttt{bitwarden-grafana} entry and non-revealing Discord hints. No
|
||||
vault login, webhook URL, password or private key is included. Introduction, history,
|
||||
glossary/acronyms, references and AI attribution are updated. Raw original screenshots
|
||||
remain unchanged; the annotated incident figure is generated from recorded samples.
|
||||
|
||||
The documentation was reviewed and merged through
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/15}{PR 15}.
|
||||
Gitea Actions run 16 successfully compiled the manual from merge commit
|
||||
\path{acdd4c0a4cb285641094f7f78baf2dea6f75dff5}. Version 1.9.2 incorporates the team's
|
||||
final editorial and table-layout corrections and is compiled through the same Gitea
|
||||
Actions workflow. The title page, Build Identity page, footer and artifact label use
|
||||
\texttt{1.9.2}; generated metadata identifies the exact source revision and run.
|
||||
Retain the downloaded PDF and build manifest, verify their checksum identity, and
|
||||
inspect affected pages before submission. The build identity distinguishes this
|
||||
revision from the earlier version 1.9.0 publication.
|
||||
|
||||
Remaining operational boundaries are incomplete signed-out direct-URL testing,
|
||||
earlier unresolved access exceptions, no initial planning issue, no tested monitoring
|
||||
backup/restore and next-day recovery-build timing. The later successful manual build
|
||||
is recorded separately from that incident's immediate recovery checks. Full-day SLO
|
||||
measurement is optional; issues 12/13 remain open by design.
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"threshold_changed_utc": "2026-10-24T21:14:02.658288+00:00",
|
||||
"temporary_threshold_percent": 90,
|
||||
"final_threshold_percent": 15,
|
||||
"pending_period": "5m",
|
||||
"evaluation_interval": "30s",
|
||||
"status": "Capacity test complete: pending, firing, delivered, restored to 15 percent, Normal, resolved delivery confirmed",
|
||||
"disk_filled": false,
|
||||
"observations": [
|
||||
{
|
||||
"utc": "2026-10-24T21:15:21.192219+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:15:52.139970+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:16:22.574568+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:16:52.959503+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:17:23.237339+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:17:53.610412+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:18:24.495369+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:18:56.001250+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:19:26.923982+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 1",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"utc": "2026-10-24T21:19:57.612786+00:00",
|
||||
"metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 1",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 0",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 1",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
]
|
||||
}
|
||||
],
|
||||
"firing_observed_utc": "2026-10-24T21:19:57.612786+00:00",
|
||||
"delivery_metrics_before_restore": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 1",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 2",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 0",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 2",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
|
||||
],
|
||||
"threshold_restored_utc": "2026-10-24T21:20:24.112443+00:00",
|
||||
"restore_restart_exit": 0,
|
||||
"post_restore_metrics": [
|
||||
"grafana_alerting_alerts{state=\"alerting\"} 0",
|
||||
"grafana_alerting_alerts{state=\"error\"} 0",
|
||||
"grafana_alerting_alerts{state=\"nodata\"} 0",
|
||||
"grafana_alerting_alerts{state=\"normal\"} 3",
|
||||
"grafana_alerting_alerts{state=\"pending\"} 0",
|
||||
"grafana_alerting_alerts{state=\"recovering\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
|
||||
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 1"
|
||||
],
|
||||
"final_threshold_verified_percent": 15,
|
||||
"post_restore_checked_utc": "2026-10-24T21:21:40.949248+00:00",
|
||||
"recipient_firing_confirmed": true,
|
||||
"recipient_resolved_confirmed": true,
|
||||
"recipient_evidence": [
|
||||
{
|
||||
"path": "screenshots/capacity-discord-firing-team.png",
|
||||
"sha256": "0e3407260eb23a004d6a01c52310af8578a6dde391cdf59a85e9c0b6573fc2a7",
|
||||
"source": "User-supplied original Discord screenshot"
|
||||
},
|
||||
{
|
||||
"path": "screenshots/capacity-discord-resolved-team.png",
|
||||
"sha256": "6cc200817a42e99650c3dee8e42a41616c704ae8ac1262b79ec0edf8361c5825",
|
||||
"source": "User-supplied original Discord screenshot"
|
||||
}
|
||||
],
|
||||
"evidence_note": "Resolved message contains an outdated setup description from the restored original rules. Delivery and capacity testing are established by the actual messages and recorded state transitions; do not repeat that stale description as current status. Resolved screenshot does not show an exact message time."
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
[
|
||||
"[2026-10-24T20:34:42.991Z] + python3 -m py_compile pricing.py tests/test_pricing.py",
|
||||
"[2026-10-24T20:34:44.991Z] + python3 -m unittest discover -s tests -v",
|
||||
"[2026-10-24T20:34:44.991Z] Ran 2 tests in 0.000s",
|
||||
"[2026-10-24T20:34:44.992Z] OK",
|
||||
"[Gitea] Notifying branch build status: SUCCESS This commit looks good",
|
||||
"Finished: SUCCESS"
|
||||
]
|
||||
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"utc": "2026-10-28T18:26:35.475821+00:00",
|
||||
"os": "PRETTY_NAME=\"Ubuntu 24.04.4 LTS\"\nNAME=\"Ubuntu\"\nVERSION_ID=\"24.04\"\nVERSION=\"24.04.4 LTS (Noble Numbat)\"\nVERSION_CODENAME=noble\nID=ubuntu\nID_LIKE=debian\nHOME_URL=\"https://www.ubuntu.com/\"\nSUPPORT_URL=\"https://help.ubuntu.com/\"\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\nUBUNTU_CODENAME=noble\nLOGO=ubuntu-logo\n",
|
||||
"architecture": "x86_64",
|
||||
"cpu_count": "1",
|
||||
"docker": "Docker version 29.8.1, build 4a63305",
|
||||
"compose": "Docker Compose version v5.5.1",
|
||||
"free_bytes": "total used free shared buff/cache available\nMem: 1008177152 791134208 83894272 3186688 288735232 217042944\nSwap: 1073737728 687190016 386547712",
|
||||
"root_df_bytes": "Filesystem 1B-blocks Used Available Use% Mounted on\n/dev/vda1 24883167232 12443983872 12422406144 51% /",
|
||||
"host_cpu_stat": "cpu 849598 5629 769109 31254346 375454 0 12249 642032 0 0",
|
||||
"metrics": {
|
||||
"node_memory_MemTotal_bytes": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "node_memory_MemTotal_bytes",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"value": [
|
||||
1793211996.756,
|
||||
"1008177152"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"node_memory_MemAvailable_bytes": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "node_memory_MemAvailable_bytes",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"value": [
|
||||
1793211996.858,
|
||||
"232452096"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"node_filesystem_size_bytes{mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "node_filesystem_size_bytes",
|
||||
"device": "/dev/vda1",
|
||||
"fstype": "ext4",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node",
|
||||
"mountpoint": "/"
|
||||
},
|
||||
"value": [
|
||||
1793211996.907,
|
||||
"24883167232"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"node_filesystem_avail_bytes{mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "node_filesystem_avail_bytes",
|
||||
"device": "/dev/vda1",
|
||||
"fstype": "ext4",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node",
|
||||
"mountpoint": "/"
|
||||
},
|
||||
"value": [
|
||||
1793211997.001,
|
||||
"12422414336"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"node_cpu_seconds_total{mode=\"idle\"}": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "node_cpu_seconds_total",
|
||||
"cpu": "0",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node",
|
||||
"mode": "idle"
|
||||
},
|
||||
"value": [
|
||||
1793211997.058,
|
||||
"312523.19"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"up": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793211997.139,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793211997.139,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"value": [
|
||||
1793211997.139,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "blackbox-exporter:9115",
|
||||
"job": "blackbox"
|
||||
},
|
||||
"value": [
|
||||
1793211997.139,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"value": [
|
||||
1793211997.139,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"probe_success{job=\"https\"}": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793211997.189,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793211997.189,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"security_realm_class": "hudson.security.HudsonPrivateSecurityRealm", "disableSignup": "true", "authorization_class": "hudson.security.GlobalMatrixAuthorizationStrategy", "anonymous_grants": false, "authenticated_group_grants": false}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"created_via": "Existing user-signed-in Gitea session",
|
||||
"author_shown_in_gitea": "jenkins-ci",
|
||||
"issues": [
|
||||
{
|
||||
"number": 12,
|
||||
"priority": "P1",
|
||||
"owner": "glovely",
|
||||
"url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/12"
|
||||
},
|
||||
{
|
||||
"number": 13,
|
||||
"priority": "P2",
|
||||
"owner": "glovely",
|
||||
"url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/13"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
{
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1792876991.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877021.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877051.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877081.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877111.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877141.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877171.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877201.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877231.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877261.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877291.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877321.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877351.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877381.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877411.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877441.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877471.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877501.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877531.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877561.023,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1792877004.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877034.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877064.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877094.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877124.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877154.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877184.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877214.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877244.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877274.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877304.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877334.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877364.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877394.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877424.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877454.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877484.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877514.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877544.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877574.889,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"start_utc": "2026-10-24T21:23:00+00:00",
|
||||
"end_utc": "2026-10-24T21:33:00+00:00",
|
||||
"qualification": "Fixed 10-minute incident window; sampled availability, not 24-hour SLO",
|
||||
"queries": {
|
||||
"availability_percent": {
|
||||
"promql": "100*avg_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"60"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"100"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"samples": {
|
||||
"promql": "count_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"20"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"20"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"failures": {
|
||||
"promql": "count_over_time(probe_success{job=\"https\"}[10m])-sum_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"0"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"end_probe": {
|
||||
"promql": "probe_success{job=\"https\"}",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"image": "prom/prometheus:v3.15.1",
|
||||
"digests": [
|
||||
"prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
|
||||
},
|
||||
{
|
||||
"image": "grafana/grafana:13.2.4",
|
||||
"digests": [
|
||||
"grafana/grafana@sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"
|
||||
},
|
||||
{
|
||||
"image": "quay.io/prometheus/node-exporter:v1.12.1",
|
||||
"digests": [
|
||||
"quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
|
||||
},
|
||||
{
|
||||
"image": "quay.io/prometheus/blackbox-exporter:v0.29.1",
|
||||
"digests": [
|
||||
"quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,281 @@
|
||||
{
|
||||
"started_utc": "2026-10-28T17:31:31.276382+00:00",
|
||||
"purpose": "Separate service restart persistence, not backup/restore",
|
||||
"events": [
|
||||
{
|
||||
"service": "prometheus",
|
||||
"restart_requested_utc": "2026-10-28T17:31:34.517301+00:00",
|
||||
"restart_exit": 0,
|
||||
"restart_finished_utc": "2026-10-28T17:31:36.010653+00:00",
|
||||
"ready_observed_utc": "2026-10-28T17:31:40.102642+00:00"
|
||||
},
|
||||
{
|
||||
"service": "grafana",
|
||||
"restart_requested_utc": "2026-10-28T17:32:15.105596+00:00",
|
||||
"restart_exit": 0,
|
||||
"restart_finished_utc": "2026-10-28T17:32:20.870015+00:00",
|
||||
"ready_observed_utc": "2026-10-28T17:32:55.109817+00:00"
|
||||
}
|
||||
],
|
||||
"before": {
|
||||
"utc": "2026-10-28T17:31:31.276421+00:00",
|
||||
"containers": {
|
||||
"prometheus": {
|
||||
"id": "28b35f29a8f87de81ff57432bf01ffd220cff426152d4428800efd9c305005ae",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_prometheus_data",
|
||||
"/prometheus"
|
||||
]
|
||||
]
|
||||
},
|
||||
"grafana": {
|
||||
"id": "d71ae8d91703940df0a9128a5e9741c66b8d1798cae50f1306d0064a54e527cc",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_grafana_data",
|
||||
"/var/lib/grafana"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"historical_probe": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"database": {
|
||||
"dashboard": {
|
||||
"count": 0,
|
||||
"sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
|
||||
},
|
||||
"data_source": {
|
||||
"count": 1,
|
||||
"sha256": "e951bf9a8c74d5329a16b8da0b49a932564592f49b778735c7e54badcf94dbdf"
|
||||
},
|
||||
"alert_rule": {
|
||||
"count": 2,
|
||||
"sha256": "bb4b682af4f1b2e37f82d6fc0270cd773b6123dc4ada8352df2bec2bf1f7c5f8"
|
||||
},
|
||||
"annotation": {
|
||||
"count": 18,
|
||||
"sha256": "c5531a98daa5397b436ddd9692ce7bfcf8a8c5b67a7255e7679fb4b6d75bc0a8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"utc": "2026-10-28T17:33:30.259795+00:00",
|
||||
"containers": {
|
||||
"prometheus": {
|
||||
"id": "28b35f29a8f87de81ff57432bf01ffd220cff426152d4428800efd9c305005ae",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_prometheus_data",
|
||||
"/prometheus"
|
||||
]
|
||||
]
|
||||
},
|
||||
"grafana": {
|
||||
"id": "d71ae8d91703940df0a9128a5e9741c66b8d1798cae50f1306d0064a54e527cc",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_grafana_data",
|
||||
"/var/lib/grafana"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"historical_probe": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"database": {
|
||||
"dashboard": {
|
||||
"count": 0,
|
||||
"sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
|
||||
},
|
||||
"data_source": {
|
||||
"count": 1,
|
||||
"sha256": "e951bf9a8c74d5329a16b8da0b49a932564592f49b778735c7e54badcf94dbdf"
|
||||
},
|
||||
"alert_rule": {
|
||||
"count": 2,
|
||||
"sha256": "bb4b682af4f1b2e37f82d6fc0270cd773b6123dc4ada8352df2bec2bf1f7c5f8"
|
||||
},
|
||||
"annotation": {
|
||||
"count": 18,
|
||||
"sha256": "c5531a98daa5397b436ddd9692ce7bfcf8a8c5b67a7255e7679fb4b6d75bc0a8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"database_equal": true,
|
||||
"historical_values_equal": true,
|
||||
"current_probes": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.125,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.125,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"target_health": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "blackbox-exporter:9115",
|
||||
"job": "blackbox"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"finished_utc": "2026-10-28T17:33:33.422124+00:00",
|
||||
"collection_gaps": [
|
||||
{
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"samples": 19,
|
||||
"gaps_over_45_seconds": [
|
||||
{
|
||||
"from_epoch": 1793208671.023,
|
||||
"to_epoch": 1793208731.022,
|
||||
"seconds": 59.999
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"samples": 20,
|
||||
"gaps_over_45_seconds": []
|
||||
}
|
||||
],
|
||||
"restart_readiness_seconds": {
|
||||
"prometheus": 5.585,
|
||||
"grafana": 40.004
|
||||
},
|
||||
"dashboard_storage_note": "Legacy dashboard table is empty in this Grafana version; see monitoring-restart-state-verification.json for resource-backed dashboards."
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"grafana_state": {
|
||||
"dashboards": [
|
||||
{
|
||||
"uid": "myfileagent-sre",
|
||||
"title": "MyFileAgent - SRE Monitoring",
|
||||
"panels": 6,
|
||||
"creationTimestamp": "2026-10-24T20:29:24Z"
|
||||
},
|
||||
{
|
||||
"uid": "myfileagent-sre-runbooks",
|
||||
"title": "MyFileAgent - Alert Runbooks",
|
||||
"panels": 2,
|
||||
"creationTimestamp": "2026-10-24T20:56:55Z"
|
||||
}
|
||||
],
|
||||
"annotations": 18
|
||||
},
|
||||
"https": {
|
||||
"https://metrics.myfileagent.tech/api/health": 200,
|
||||
"https://ci.myfileagent.tech/login": 200,
|
||||
"https://myfileagent.tech/user/login": 200
|
||||
},
|
||||
"checked_utc": "2026-10-28T17:33:28.307692+00:00"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"result": "SUCCESS",
|
||||
"duration": "36363",
|
||||
"pr_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14",
|
||||
"head_sha": "6605394d7a3e4183bfc8e94e2b08f1d324a73b8e",
|
||||
"gitea_ui": "All checks were successful; 0 of 1 official approvals",
|
||||
"merged": false
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"number": 6,
|
||||
"result": "SUCCESS",
|
||||
"duration": "36824",
|
||||
"revision_matches_merge": true,
|
||||
"two_tests_passed": true,
|
||||
"gitea_notified": true,
|
||||
"pr_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14",
|
||||
"merge_sha": "b42689f02f30ad895101a2c5f367e54e3603bc5d",
|
||||
"approved_by": "nkogut",
|
||||
"merged_by": "nkogut"
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"evaluation_time_utc": "2026-10-24T20:50:50+00:00",
|
||||
"window_start_utc": "2026-10-24T20:40:50+00:00",
|
||||
"window_end_utc": "2026-10-24T20:50:50+00:00",
|
||||
"timezone_for_display": "America/New_York",
|
||||
"scrape_interval_seconds": 30,
|
||||
"expected_samples_approximately": 20,
|
||||
"queries": {
|
||||
"availability_percent": "100 * avg_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"received_samples": "count_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"observed_failed_samples": "count_over_time(probe_success{job=\"https\"}[10m]) - sum_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"collection_health": "up{job=~\"https|blackbox|prometheus\"}"
|
||||
},
|
||||
"results": {
|
||||
"availability_percent": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"100"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"100"
|
||||
]
|
||||
}
|
||||
],
|
||||
"received_samples": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"20"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"20"
|
||||
]
|
||||
}
|
||||
],
|
||||
"observed_failed_samples": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"0"
|
||||
]
|
||||
}
|
||||
],
|
||||
"collection_health": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "blackbox-exporter:9115",
|
||||
"job": "blackbox"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"value": [
|
||||
1792875050,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"classification": "Non-disruptive baseline/query verification, NOT controlled-outage evidence or a 24-hour SLO evaluation."
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compiled": false,
|
||||
"sections": [
|
||||
"Deployment and Reproducibility",
|
||||
"Metrics and HTTPS Probes",
|
||||
"HTTPS and Access Control",
|
||||
"Dashboard and Continuous-Integration Correlation",
|
||||
"SLI, SLO and Error Budget",
|
||||
"Alerts and Operator Runbooks",
|
||||
"Controlled Incident, Recovery and Persistence",
|
||||
"Manual Integration, Traceability and Remaining Work"
|
||||
],
|
||||
"missing_assets": [],
|
||||
"unbalanced_environments": [],
|
||||
"missing_citations": [],
|
||||
"duplicate_new_labels": [],
|
||||
"secret_match_filenames": [],
|
||||
"clock_ticks_per_second": "100",
|
||||
"source_only_checks": "Not a substitute for LaTeX compilation and visual inspection"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"test_time": "2026-10-28T14:20:37-04:00",
|
||||
"source": "Team Windows workstation outside Droplet",
|
||||
"ipv4": "142.93.193.110",
|
||||
"ipv4_reachable_ports": [
|
||||
80,
|
||||
443
|
||||
],
|
||||
"ipv4_unreachable_ports": [
|
||||
3000,
|
||||
3001,
|
||||
5050,
|
||||
8080,
|
||||
9090,
|
||||
9100,
|
||||
9115,
|
||||
50000
|
||||
],
|
||||
"ipv6_tested": "2607:7700:0:28:0:2:8e5d:c16e",
|
||||
"ipv6_all_tested_ports_unreachable": true,
|
||||
"ipv6_interpretation": "Inconclusive for firewall filtering because expected 80/443 also unreachable; verify host configuration and client IPv6 connectivity",
|
||||
"https_curl_results": "Absent from supplied PowerShell transcript; HTTP/TLS results not established by this file",
|
||||
"privacy": "Original transcript retained mode 600 outside Git; contains workstation metadata"
|
||||
}
|
||||
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 381 KiB |
|
After Width: | Height: | Size: 403 KiB |
|
After Width: | Height: | Size: 344 KiB |
|
After Width: | Height: | Size: 945 KiB |
|
After Width: | Height: | Size: 199 KiB |
@@ -49,17 +49,17 @@
|
||||
\definecolor{devopsLightBlue}{RGB}{232,240,247}
|
||||
|
||||
% Replace these values for each assignment.
|
||||
\newcommand{\AssignmentTitle}{Continuous Integration with Jenkins}
|
||||
\newcommand{\AssignmentNumber}{6}
|
||||
\newcommand{\DocumentVersion}{1.8.2}
|
||||
\newcommand{\DocumentStatus}{Group Assignment Report}
|
||||
\newcommand{\AssignmentTitle}{Introduction to SRE: Monitoring and Reliability}
|
||||
\newcommand{\AssignmentNumber}{7}
|
||||
\newcommand{\DocumentVersion}{1.9.2}
|
||||
\newcommand{\DocumentStatus}{Final Draft}
|
||||
\newcommand{\CourseNumber}{SSW 590}
|
||||
\newcommand{\CourseName}{DevOps Principles and Practices}
|
||||
\newcommand{\Instructor}{Darian Muresan}
|
||||
\newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely}
|
||||
\newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely}
|
||||
\newcommand{\Organization}{Stevens Institute of Technology}
|
||||
\newcommand{\DocumentDate}{October 9, 2026}
|
||||
\newcommand{\DocumentDate}{October 28, 2026}
|
||||
\newcommand{\DueDate}{Not specified}
|
||||
% Generated only in the build workspace; never committed by the workflow.
|
||||
\newcommand{\BuildSuffix}{+local.unverified}
|
||||
@@ -73,8 +73,8 @@
|
||||
pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle},
|
||||
pdfauthor={\PDFAuthors},
|
||||
pdfcreator={Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code},
|
||||
pdfsubject={SSW 590 Assignment 6 continuous integration with Jenkins},
|
||||
pdfkeywords={DevOps, Jenkins, Gitea, Python, continuous integration, HTTPS, tests, merge gate}
|
||||
pdfsubject={SSW 590 Assignment 7 SRE monitoring and reliability},
|
||||
pdfkeywords={DevOps, SRE, Prometheus, Grafana, alerts, SLI, SLO, incident, Jenkins}
|
||||
}
|
||||
|
||||
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
|
||||
@@ -157,6 +157,7 @@
|
||||
\include{devopsGiteaStartupFoundation}
|
||||
\include{devopsAutomatedManualBuild}
|
||||
\include{devopsJenkinsContinuousIntegration}
|
||||
\include{devopsSREMonitoringReliability}
|
||||
|
||||
\bibliographystyle{IEEEtran}
|
||||
\bibliography{devopsReferences}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
*.secret
|
||||
.env
|
||||
notification-setup/
|
||||
@@ -0,0 +1,5 @@
|
||||
# Grafana route installed on October 24, 2026. Merge with existing routes.
|
||||
|
||||
metrics.myfileagent.tech {
|
||||
reverse_proxy grafana:3000
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
# Assignment 7 monitoring
|
||||
|
||||
Deployed on the existing Droplet and validated October 24-28, 2026. Source is submitted for peer review; see incidents/2026-10-24-jenkins-outage.md. Report integration and compilation are deferred by the team.
|
||||
|
||||
## Architecture and access
|
||||
Caddy serves authenticated Grafana at https://metrics.myfileagent.tech over the existing private proxy bridge. Grafana uses private http://prometheus:9090. Prometheus scrapes itself, Node Exporter, Blackbox Exporter and the actual Gitea/Jenkins HTTPS login probes every 30 seconds. TLS verification stays enabled. No monitoring host ports, privileged containers or Docker socket mounts are used. Only Grafana joins the existing proxy bridge.
|
||||
Node Exporter reads host root/proc/sys through a read-only root mount and uses the host PID namespace for whole-host CPU, memory and filesystem measurements. This is sensitive host visibility; it does not measure per-container attribution or whole-host network interfaces.
|
||||
|
||||
## Versions and resource settings
|
||||
Compose fixes Prometheus v3.15.1, Grafana 13.2.4, Node Exporter v1.12.1 and Blackbox Exporter v0.29.1. Pulled image digests are in evidence/monitoring-image-digests-2026-10-24.json. Existing Gitea/Jenkins versions are preserved.
|
||||
Prometheus has a 160 MiB memory/swap cap and 120 MiB Go memory target; exporters each have 32 MiB caps. Grafana memory/swap limits were removed at the team's request after bounded startup failed. CPU quotas remain. This is measured lab operation on a shared host, not guaranteed sizing. Avoid overlapping Jenkins/manual builds; monitor actual availability and resource pressure.
|
||||
Prometheus retention is seven days and 512 MB of TSDB blocks. WAL/head/compaction require additional space; this is not a hard total-volume limit.
|
||||
|
||||
## Deployment and secrets
|
||||
Run from this monitoring directory on the Droplet. Review `docker compose config --quiet` before changes. The external proxy network must exist as myfileagent-gitea_gitea-private. The compose override reflects the existing Droplet paths and supplemental group 1000; adapt only after verifying host identities.
|
||||
Secrets stay outside Git under /home/codex/myfileagent-gitea/secrets with restricted permissions. The admin-password file is only the initial setup value; do not use it to reset a changed password. Private Discord routing provisioning is mounted separately over the committed empty placeholder. Recreate the approved contact point/policy privately for a new deployment; never commit the webhook URL. Obsolete SMTP setup files are excluded from this change. Gmail SMTP was not the working delivery route.
|
||||
Preserve the live Caddyfile; the example fragment is not a replacement for all existing routes. Validate/reload Caddy only for an approved proxy change.
|
||||
|
||||
## Dashboards, alerts and validation
|
||||
The six-panel team dashboard and two-panel runbook dashboard are file-provisioned. Dashboard JSON copies under grafana/dashboards and grafana/provisioning/dashboards/json must remain identical. UI annotations live in Grafana state and are not reconstructed by dashboard JSON.
|
||||
Service alert: separate expected URL instances, one-minute pending, every 30 seconds. Capacity: root /dev/vda1 ext4, available space below 15% for five minutes. Missing expected probe series, no-data and evaluation errors surface as alerting. Discord delivery uses group wait 10 seconds, group interval one minute and repeat four hours, with resolved delivery enabled. No notification secret is present in this tree.
|
||||
The threshold-only capacity test and Jenkins-only outage both delivered firing and resolved messages. Final capacity threshold is 15%. See runbooks, slo and incidents. Evidence JSON and selected team screenshots are under evidence/.
|
||||
Python CI regression checks run through the established Jenkins multibranch job; Compose/promtool/Blackbox validation is recorded separately. These existing Python checks alone do not validate all monitoring semantics.
|
||||
|
||||
## Persistence, backup and recovery
|
||||
Prometheus and Grafana use separate named volumes. October 28 separate restarts preserved historical readings, resource-backed dashboards, data source, two alert rules and 18 annotations. A missed Jenkins probe sample was recorded; monitoring gaps are unknown, not service success. See evidence/monitoring-restart-persistence.json. This is restart persistence, not tested backup/restore.
|
||||
Before future upgrades, use a consistent stopped Grafana SQLite/volume backup and an approved consistent Prometheus snapshot/backup procedure, preserving ownership and private routing secrets separately. Restore into isolation and verify before replacing live volumes; this monitoring backup/restore exercise has not been performed.
|
||||
Monitoring rollback: `docker compose stop` from this directory only. Resume: `docker compose start`. Do not use down -v, global prune, or stop the existing Gitea/Jenkins project as monitoring rollback. For Jenkins-only recovery use the exact command in runbooks/service-unavailable.md.
|
||||
|
||||
## Review status
|
||||
Feature branch assignment7/monitoring. P1 external-check issue 12 and P2 timestamp/recovery issue 13 are assigned to glovely. Peer approval, merge and final report publication remain separate steps. Same-Droplet monitoring cannot reliably report a total host failure; no external checker has been deployed.
|
||||
@@ -0,0 +1,11 @@
|
||||
modules:
|
||||
http_2xx:
|
||||
prober: http
|
||||
timeout: 10s
|
||||
http:
|
||||
method: GET
|
||||
preferred_ip_protocol: ip4
|
||||
follow_redirects: true
|
||||
fail_if_not_ssl: true
|
||||
tls_config:
|
||||
insecure_skip_verify: false
|
||||
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
grafana:
|
||||
group_add:
|
||||
- "1000"
|
||||
environment:
|
||||
GF_SMTP_ENABLED: "false"
|
||||
volumes:
|
||||
- /home/codex/myfileagent-gitea/secrets/grafana-discord-routing.json:/etc/grafana/provisioning/alerting/team-discord-routing.json:ro
|
||||
@@ -0,0 +1,79 @@
|
||||
name: myfileagent-monitoring
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.15.1
|
||||
restart: unless-stopped
|
||||
mem_limit: 160m
|
||||
memswap_limit: 160m
|
||||
cpus: 0.35
|
||||
pids_limit: 128
|
||||
environment:
|
||||
GOMEMLIMIT: 120MiB
|
||||
command:
|
||||
- --config.file=/etc/prometheus/prometheus.yml
|
||||
- --storage.tsdb.path=/prometheus
|
||||
- --storage.tsdb.retention.time=7d
|
||||
- --storage.tsdb.retention.size=512MB
|
||||
- --query.max-concurrency=2
|
||||
volumes:
|
||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
- prometheus_data:/prometheus
|
||||
networks: [monitoring]
|
||||
grafana:
|
||||
image: grafana/grafana:13.2.4
|
||||
restart: unless-stopped
|
||||
cpus: 0.35
|
||||
pids_limit: 128
|
||||
environment:
|
||||
GF_SERVER_ROOT_URL: https://metrics.myfileagent.tech
|
||||
GF_AUTH_ANONYMOUS_ENABLED: "false"
|
||||
GF_USERS_ALLOW_SIGN_UP: "false"
|
||||
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_admin_password
|
||||
GF_ANALYTICS_REPORTING_ENABLED: "false"
|
||||
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
|
||||
secrets: [grafana_admin_password]
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
||||
networks: [monitoring, proxy]
|
||||
node-exporter:
|
||||
image: quay.io/prometheus/node-exporter:v1.12.1
|
||||
restart: unless-stopped
|
||||
mem_limit: 32m
|
||||
memswap_limit: 32m
|
||||
cpus: 0.15
|
||||
pids_limit: 64
|
||||
pid: host
|
||||
command:
|
||||
- --path.rootfs=/host
|
||||
- --path.procfs=/host/proc
|
||||
- --path.sysfs=/host/sys
|
||||
- --collector.disable-defaults
|
||||
- --collector.cpu
|
||||
- --collector.meminfo
|
||||
- --collector.filesystem
|
||||
volumes:
|
||||
- /:/host:ro,rslave
|
||||
networks: [monitoring]
|
||||
blackbox-exporter:
|
||||
image: quay.io/prometheus/blackbox-exporter:v0.29.1
|
||||
restart: unless-stopped
|
||||
mem_limit: 32m
|
||||
memswap_limit: 32m
|
||||
cpus: 0.15
|
||||
pids_limit: 64
|
||||
command: [--config.file=/config/blackbox.yml]
|
||||
volumes:
|
||||
- ./blackbox/blackbox.yml:/config/blackbox.yml:ro
|
||||
networks: [monitoring]
|
||||
networks:
|
||||
monitoring:
|
||||
proxy:
|
||||
external: true
|
||||
name: myfileagent-gitea_gitea-private
|
||||
volumes:
|
||||
prometheus_data:
|
||||
grafana_data:
|
||||
secrets:
|
||||
grafana_admin_password:
|
||||
file: /home/codex/myfileagent-gitea/secrets/grafana-admin-password
|
||||
@@ -0,0 +1,8 @@
|
||||
[
|
||||
"[2026-10-24T20:34:42.991Z] + python3 -m py_compile pricing.py tests/test_pricing.py",
|
||||
"[2026-10-24T20:34:44.991Z] + python3 -m unittest discover -s tests -v",
|
||||
"[2026-10-24T20:34:44.991Z] Ran 2 tests in 0.000s",
|
||||
"[2026-10-24T20:34:44.992Z] OK",
|
||||
"[Gitea] Notifying branch build status: SUCCESS This commit looks good",
|
||||
"Finished: SUCCESS"
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"created_via": "Existing user-signed-in Gitea session",
|
||||
"author_shown_in_gitea": "jenkins-ci",
|
||||
"issues": [
|
||||
{
|
||||
"number": 12,
|
||||
"priority": "P1",
|
||||
"owner": "glovely",
|
||||
"url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/12"
|
||||
},
|
||||
{
|
||||
"number": 13,
|
||||
"priority": "P2",
|
||||
"owner": "glovely",
|
||||
"url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/13"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
{
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1792876991.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877021.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877051.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877081.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877111.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877141.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877171.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877201.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877231.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877261.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877291.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877321.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877351.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877381.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877411.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877441.023,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1792877471.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877501.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877531.023,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877561.023,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1792877004.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877034.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877064.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877094.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877124.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877154.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877184.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877214.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877244.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877274.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877304.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877334.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877364.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877394.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877424.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877454.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877484.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877514.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877544.889,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1792877574.889,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"start_utc": "2026-10-24T21:23:00+00:00",
|
||||
"end_utc": "2026-10-24T21:33:00+00:00",
|
||||
"qualification": "Fixed 10-minute incident window; sampled availability, not 24-hour SLO",
|
||||
"queries": {
|
||||
"availability_percent": {
|
||||
"promql": "100*avg_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"60"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"100"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"samples": {
|
||||
"promql": "count_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"20"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"20"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"failures": {
|
||||
"promql": "count_over_time(probe_success{job=\"https\"}[10m])-sum_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"0"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"end_probe": {
|
||||
"promql": "probe_success{job=\"https\"}",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"check": "prometheus",
|
||||
"exit": 0,
|
||||
"output": "Checking /config/prometheus.yml\n SUCCESS: /config/prometheus.yml is valid prometheus config file syntax\n\n"
|
||||
},
|
||||
{
|
||||
"check": "blackbox",
|
||||
"exit": 0,
|
||||
"output": "time=2026-10-24T19:55:58.503Z level=INFO source=main.go:99 msg=\"Starting blackbox_exporter\" version=\"(version=0.29.1, branch=HEAD, revision=ad91668339ca265f460c23fc422a27ba6d788db9)\"\ntime=2026-10-24T19:55:58.504Z level=INFO source=main.go:100 msg=\"(go=go1.27.3, platform=linux/amd64, user=root@ab03ed60a291, date=20261021-18:03:25, tags=unknown)\"\ntime=2026-10-24T19:55:58.506Z level=INFO source=config.go:144 msg=\"Configuration file change detected, reloading the configuration.\"\ntime=2026-10-24T19:55:58.507Z level=INFO source=main.go:108 msg=\"Config file is ok exiting...\"\n"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"image": "prom/prometheus:v3.15.1",
|
||||
"digests": [
|
||||
"prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
|
||||
},
|
||||
{
|
||||
"image": "grafana/grafana:13.2.4",
|
||||
"digests": [
|
||||
"grafana/grafana@sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"
|
||||
},
|
||||
{
|
||||
"image": "quay.io/prometheus/node-exporter:v1.12.1",
|
||||
"digests": [
|
||||
"quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
|
||||
},
|
||||
{
|
||||
"image": "quay.io/prometheus/blackbox-exporter:v0.29.1",
|
||||
"digests": [
|
||||
"quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux",
|
||||
"id": "sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,281 @@
|
||||
{
|
||||
"started_utc": "2026-10-28T17:31:31.276382+00:00",
|
||||
"purpose": "Separate service restart persistence, not backup/restore",
|
||||
"events": [
|
||||
{
|
||||
"service": "prometheus",
|
||||
"restart_requested_utc": "2026-10-28T17:31:34.517301+00:00",
|
||||
"restart_exit": 0,
|
||||
"restart_finished_utc": "2026-10-28T17:31:36.010653+00:00",
|
||||
"ready_observed_utc": "2026-10-28T17:31:40.102642+00:00"
|
||||
},
|
||||
{
|
||||
"service": "grafana",
|
||||
"restart_requested_utc": "2026-10-28T17:32:15.105596+00:00",
|
||||
"restart_exit": 0,
|
||||
"restart_finished_utc": "2026-10-28T17:32:20.870015+00:00",
|
||||
"ready_observed_utc": "2026-10-28T17:32:55.109817+00:00"
|
||||
}
|
||||
],
|
||||
"before": {
|
||||
"utc": "2026-10-28T17:31:31.276421+00:00",
|
||||
"containers": {
|
||||
"prometheus": {
|
||||
"id": "28b35f29a8f87de81ff57432bf01ffd220cff426152d4428800efd9c305005ae",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_prometheus_data",
|
||||
"/prometheus"
|
||||
]
|
||||
]
|
||||
},
|
||||
"grafana": {
|
||||
"id": "d71ae8d91703940df0a9128a5e9741c66b8d1798cae50f1306d0064a54e527cc",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_grafana_data",
|
||||
"/var/lib/grafana"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"historical_probe": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"database": {
|
||||
"dashboard": {
|
||||
"count": 0,
|
||||
"sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
|
||||
},
|
||||
"data_source": {
|
||||
"count": 1,
|
||||
"sha256": "e951bf9a8c74d5329a16b8da0b49a932564592f49b778735c7e54badcf94dbdf"
|
||||
},
|
||||
"alert_rule": {
|
||||
"count": 2,
|
||||
"sha256": "bb4b682af4f1b2e37f82d6fc0270cd773b6123dc4ada8352df2bec2bf1f7c5f8"
|
||||
},
|
||||
"annotation": {
|
||||
"count": 18,
|
||||
"sha256": "c5531a98daa5397b436ddd9692ce7bfcf8a8c5b67a7255e7679fb4b6d75bc0a8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"utc": "2026-10-28T17:33:30.259795+00:00",
|
||||
"containers": {
|
||||
"prometheus": {
|
||||
"id": "28b35f29a8f87de81ff57432bf01ffd220cff426152d4428800efd9c305005ae",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_prometheus_data",
|
||||
"/prometheus"
|
||||
]
|
||||
]
|
||||
},
|
||||
"grafana": {
|
||||
"id": "d71ae8d91703940df0a9128a5e9741c66b8d1798cae50f1306d0064a54e527cc",
|
||||
"mounts": [
|
||||
[
|
||||
"myfileagent-monitoring_grafana_data",
|
||||
"/var/lib/grafana"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"historical_probe": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1792877580,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"database": {
|
||||
"dashboard": {
|
||||
"count": 0,
|
||||
"sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
|
||||
},
|
||||
"data_source": {
|
||||
"count": 1,
|
||||
"sha256": "e951bf9a8c74d5329a16b8da0b49a932564592f49b778735c7e54badcf94dbdf"
|
||||
},
|
||||
"alert_rule": {
|
||||
"count": 2,
|
||||
"sha256": "bb4b682af4f1b2e37f82d6fc0270cd773b6123dc4ada8352df2bec2bf1f7c5f8"
|
||||
},
|
||||
"annotation": {
|
||||
"count": 18,
|
||||
"sha256": "c5531a98daa5397b436ddd9692ce7bfcf8a8c5b67a7255e7679fb4b6d75bc0a8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"database_equal": true,
|
||||
"historical_values_equal": true,
|
||||
"current_probes": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.125,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.125,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"target_health": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "vector",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "blackbox-exporter:9115",
|
||||
"job": "blackbox"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"value": [
|
||||
1793208813.419,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"finished_utc": "2026-10-28T17:33:33.422124+00:00",
|
||||
"collection_gaps": [
|
||||
{
|
||||
"instance": "https://ci.myfileagent.tech/login",
|
||||
"samples": 19,
|
||||
"gaps_over_45_seconds": [
|
||||
{
|
||||
"from_epoch": 1793208671.023,
|
||||
"to_epoch": 1793208731.022,
|
||||
"seconds": 59.999
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"instance": "https://myfileagent.tech/user/login",
|
||||
"samples": 20,
|
||||
"gaps_over_45_seconds": []
|
||||
}
|
||||
],
|
||||
"restart_readiness_seconds": {
|
||||
"prometheus": 5.585,
|
||||
"grafana": 40.004
|
||||
},
|
||||
"dashboard_storage_note": "Legacy dashboard table is empty in this Grafana version; see monitoring-restart-state-verification.json for resource-backed dashboards."
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"grafana_state": {
|
||||
"dashboards": [
|
||||
{
|
||||
"uid": "myfileagent-sre",
|
||||
"title": "MyFileAgent - SRE Monitoring",
|
||||
"panels": 6,
|
||||
"creationTimestamp": "2026-10-24T20:29:24Z"
|
||||
},
|
||||
{
|
||||
"uid": "myfileagent-sre-runbooks",
|
||||
"title": "MyFileAgent - Alert Runbooks",
|
||||
"panels": 2,
|
||||
"creationTimestamp": "2026-10-24T20:56:55Z"
|
||||
}
|
||||
],
|
||||
"annotations": 18
|
||||
},
|
||||
"https": {
|
||||
"https://metrics.myfileagent.tech/api/health": 200,
|
||||
"https://ci.myfileagent.tech/login": 200,
|
||||
"https://myfileagent.tech/user/login": 200
|
||||
},
|
||||
"checked_utc": "2026-10-28T17:33:28.307692+00:00"
|
||||
}
|
||||
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 381 KiB |
|
After Width: | Height: | Size: 403 KiB |
|
After Width: | Height: | Size: 344 KiB |
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"saved_utc": "2026-10-24T20:49:53.986453+00:00",
|
||||
"role": "Primary dashboard screenshot evidence, selected by the team",
|
||||
"files": [
|
||||
{
|
||||
"path": "screenshots/team-dashboard-cpu-memory.png",
|
||||
"source": "User-supplied original screenshot: codex-clipboard-2808a8e1-d36c-4128-bea2-f55e38d9a858.png",
|
||||
"bytes": 390149,
|
||||
"sha256": "5de62ffbc6213d4215acfe681dd7bbe5b0f35fbc71e4411862d69532204f5b07"
|
||||
},
|
||||
{
|
||||
"path": "screenshots/team-dashboard-root-gitea.png",
|
||||
"source": "User-supplied original screenshot: codex-clipboard-e57208ff-5657-4534-b2df-ff5e4a44f437.png",
|
||||
"bytes": 352388,
|
||||
"sha256": "be7768538882732dbf77c07d6757c9aa68ed75633f258759d9184459a8c68176"
|
||||
},
|
||||
{
|
||||
"path": "screenshots/team-dashboard-jenkins-duration.png",
|
||||
"source": "User-supplied original screenshot: codex-clipboard-0b34de30-5510-47c5-97ea-80ce8b5597d6.png",
|
||||
"bytes": 412894,
|
||||
"sha256": "537f54b2d73c8a0c23c984de35d3c70150020ebf64764f9bcd5f4ca915984c45"
|
||||
}
|
||||
],
|
||||
"context": "Screenshots show a rolling Last 15 minutes range and 5-minute refresh, captured at different times (visible taskbar 16:44, 16:48 and 16:49 on October 24, 2026). Do not describe these as identical fixed-window captures. Exact build times and raw measurements remain in ci-build4-dashboard-correlation.json. Originals preserved, including browser chrome and desktop notification in the third screenshot."
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": null,
|
||||
"uid": "myfileagent-sre-runbooks",
|
||||
"title": "MyFileAgent - Alert Runbooks",
|
||||
"tags": [
|
||||
"SSW590",
|
||||
"runbooks"
|
||||
],
|
||||
"timezone": "America/New_York",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"editable": false,
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Service unavailable",
|
||||
"type": "text",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 24,
|
||||
"h": 18
|
||||
},
|
||||
"options": {
|
||||
"mode": "markdown",
|
||||
"content": "# HTTPS service unavailable\nOwner: SSW590 Group 7. Severity: critical. Evaluate every 30s; pending 1 minute.\n\nThe rule produces separate instances for Gitea and Jenkins by URL label.\nMissing expected probe series are explicitly treated as failure; datasource\nno-data and evaluation errors enter Alerting rather than reporting health.\n\n1. Acknowledge the alert and record receipt/acknowledgement time.\n2. Inspect the instance URL and the availability/duration panels. Check collection\nhealth and exporter logs to distinguish probe failure from broken monitoring.\n3. Check DNS, valid TLS, expected response and redirects from the monitoring network.\nNever disable certificate verification to clear an alert.\n4. Inspect the affected container status/logs, Caddy routing, resource pressure,\nand recent changes. Confirm the actual cause before restarting anything.\n5. For the planned Jenkins-only exercise, restore using:\n`cd /home/codex/myfileagent-gitea && docker compose -f compose.yaml -f compose.jenkins.yaml start jenkins`\nVerify the live Compose service remains named jenkins before running it.\nDo not stop the Droplet, Gitea or monitoring; never delete service volumes.\n6. Verify HTTPS probe success, a normal Jenkins pipeline, webhook/status and\nGitea manual build as applicable. Record first success and resolved notification.\n7. Escalate unresolved faults to the other team member; capture impact/timeline\nand corrective actions. A complete Droplet failure can also stop these alerts.\n\nNotification destination and delivery timings are pending SMTP/contact-point\nsetup. Scrape (30s), evaluation (30s), pending (1m) and notification delays add\nlatency; do not expect an immediate message. No outage test has been run.\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Root capacity",
|
||||
"type": "text",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 18,
|
||||
"w": 24,
|
||||
"h": 18
|
||||
},
|
||||
"options": {
|
||||
"mode": "markdown",
|
||||
"content": "# Root capacity below 15 percent\nOwner: SSW590 Group 7. Severity: warning. Evaluate every 30s; pending 5 minutes.\n\nSelector: instance node-exporter:9100; mountpoint /; device /dev/vda1; ext4.\nQuery is 100 * available bytes / size bytes for that same filesystem.\nThe 15% threshold leaves operational room for builds, compaction and logs.\nNo-data or evaluation errors enter Alerting and require monitoring diagnosis.\n\n1. Acknowledge and record times. Compare exporter values to `df -B1 /`.\n2. Inspect directory usage, Docker images/volumes and logs read-only first.\nIdentify growth and protect Gitea/Jenkins/Grafana/Prometheus persistent data.\n3. Agree with the team on safe cleanup or retention changes; avoid global\nDocker pruning and do not delete repositories, service volumes or evidence.\n4. Restore adequate headroom, verify the metric and wait for rule resolution.\n5. Record cause, corrective action, delivered notification and recovery time.\n\nSafe planned test: temporarily raise the free-percentage threshold above the\nmeasured current value, wait through the full five-minute pending period and\ncapture real firing/delivery, then restore 15% and verify resolved delivery.\nNever fill the disk. The test has not yet been run. For file-provisioned rules,\nchange the reviewed provisioning threshold and reload/restart Grafana; retain\nfinal 15% configuration. Notification setup is still pending.\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
{
|
||||
"id": null,
|
||||
"uid": "myfileagent-sre",
|
||||
"title": "MyFileAgent - SRE Monitoring",
|
||||
"tags": [
|
||||
"SSW590",
|
||||
"Assignment 7",
|
||||
"SRE"
|
||||
],
|
||||
"timezone": "America/New_York",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "30s",
|
||||
"time": {
|
||||
"from": "now-1h",
|
||||
"to": "now"
|
||||
},
|
||||
"editable": true,
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": {
|
||||
"type": "grafana",
|
||||
"uid": "-- Grafana --"
|
||||
},
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Whole-droplet CPU utilization",
|
||||
"description": "CPU busy percentage averaged across all host CPUs. Whole-host load cannot attribute consumption to Jenkins or a single container.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": 75
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 90
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 100
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{job=\"node\",instance=\"node-exporter:9100\",mode=\"idle\"}[2m])))",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Available host memory",
|
||||
"description": "Host memory available to applications, including reclaimable memory; not merely free RAM.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "bytes",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "node_memory_MemAvailable_bytes{job=\"node\",instance=\"node-exporter:9100\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Root filesystem available space",
|
||||
"description": "Available space on the verified host root filesystem: /dev/vda1, ext4, mountpoint /. Excludes other mounts and pseudo filesystems.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 9,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 25
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 100
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "100 * node_filesystem_avail_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Gitea HTTPS availability",
|
||||
"description": "1 means the HTTPS login-page probe succeeded with TLS validation; 0 means failure. Does not establish authenticated Git operation.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 9,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "stepAfter",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 1,
|
||||
"decimals": 0
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_success{job=\"https\",instance=\"https://myfileagent.tech/user/login\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Jenkins HTTPS availability",
|
||||
"description": "1 means the HTTPS login-page probe succeeded; a successful response does not establish a successful pipeline.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 18,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "stepAfter",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 1,
|
||||
"decimals": 0
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_success{job=\"https\",instance=\"https://ci.myfileagent.tech/login\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "HTTPS probe duration",
|
||||
"description": "End-to-end probe duration for both login URLs from this Droplet. Does not establish reachability from every user network.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 18,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_duration_seconds{job=\"https\",instance=~\"https://(myfileagent.tech/user/login|ci.myfileagent.tech/login)\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"apiVersion":1}
|
||||
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"apiVersion": 1,
|
||||
"groups": [
|
||||
{
|
||||
"orgId": 1,
|
||||
"name": "team-sre",
|
||||
"folder": "SSW590",
|
||||
"interval": "30s",
|
||||
"rules": [
|
||||
{
|
||||
"uid": "sre-service-unavailable",
|
||||
"title": "HTTPS service unavailable",
|
||||
"condition": "B",
|
||||
"data": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasourceUid": "prometheus",
|
||||
"relativeTimeRange": {
|
||||
"from": 600,
|
||||
"to": 0
|
||||
},
|
||||
"model": {
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "min by (instance) (probe_success{job=\"https\"} or on(instance) label_replace(vector(0), \"instance\", \"https://myfileagent.tech/user/login\", \"\", \"\") or on(instance) label_replace(vector(0), \"instance\", \"https://ci.myfileagent.tech/login\", \"\", \"\"))",
|
||||
"instant": true,
|
||||
"range": false,
|
||||
"refId": "A",
|
||||
"intervalMs": 1000,
|
||||
"maxDataPoints": 43200
|
||||
}
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"datasourceUid": "__expr__",
|
||||
"relativeTimeRange": {
|
||||
"from": 0,
|
||||
"to": 0
|
||||
},
|
||||
"model": {
|
||||
"refId": "B",
|
||||
"type": "threshold",
|
||||
"expression": "A",
|
||||
"datasource": {
|
||||
"type": "__expr__",
|
||||
"uid": "__expr__"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"noDataState": "Alerting",
|
||||
"execErrState": "Alerting",
|
||||
"for": "1m",
|
||||
"isPaused": false,
|
||||
"labels": {
|
||||
"owner": "SSW590-Group7",
|
||||
"team": "group7",
|
||||
"severity": "critical",
|
||||
"scope": "assignment7"
|
||||
},
|
||||
"annotations": {
|
||||
"summary": "HTTPS probe failed or the expected service probe series is missing for at least one minute.",
|
||||
"description": "Follow the linked runbook. Alerts route to the team Discord contact point; inspect probe/collection health and record acknowledgement and recovery times.",
|
||||
"runbook_url": "https://metrics.myfileagent.tech/d/myfileagent-sre-runbooks?viewPanel=panel-1"
|
||||
},
|
||||
"dashboardUid": "myfileagent-sre"
|
||||
},
|
||||
{
|
||||
"uid": "sre-root-capacity",
|
||||
"title": "Host root available space below 15 percent",
|
||||
"condition": "B",
|
||||
"data": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasourceUid": "prometheus",
|
||||
"relativeTimeRange": {
|
||||
"from": 600,
|
||||
"to": 0
|
||||
},
|
||||
"model": {
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "100 * node_filesystem_avail_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}",
|
||||
"instant": true,
|
||||
"range": false,
|
||||
"refId": "A",
|
||||
"intervalMs": 1000,
|
||||
"maxDataPoints": 43200
|
||||
}
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"datasourceUid": "__expr__",
|
||||
"relativeTimeRange": {
|
||||
"from": 0,
|
||||
"to": 0
|
||||
},
|
||||
"model": {
|
||||
"refId": "B",
|
||||
"type": "threshold",
|
||||
"expression": "A",
|
||||
"datasource": {
|
||||
"type": "__expr__",
|
||||
"uid": "__expr__"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
15
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"noDataState": "Alerting",
|
||||
"execErrState": "Alerting",
|
||||
"for": "5m",
|
||||
"isPaused": false,
|
||||
"labels": {
|
||||
"owner": "SSW590-Group7",
|
||||
"team": "group7",
|
||||
"severity": "warning",
|
||||
"scope": "assignment7"
|
||||
},
|
||||
"annotations": {
|
||||
"summary": "Available space on the verified host root filesystem is below 15 percent for five minutes.",
|
||||
"description": "Follow the linked runbook. Alerts route to the team Discord contact point; inspect probe/collection health and record acknowledgement and recovery times.",
|
||||
"runbook_url": "https://metrics.myfileagent.tech/d/myfileagent-sre-runbooks?viewPanel=panel-2"
|
||||
},
|
||||
"dashboardUid": "myfileagent-sre",
|
||||
"panelId": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": null,
|
||||
"uid": "myfileagent-sre-runbooks",
|
||||
"title": "MyFileAgent - Alert Runbooks",
|
||||
"tags": [
|
||||
"SSW590",
|
||||
"runbooks"
|
||||
],
|
||||
"timezone": "America/New_York",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"editable": false,
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Service unavailable",
|
||||
"type": "text",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 24,
|
||||
"h": 18
|
||||
},
|
||||
"options": {
|
||||
"mode": "markdown",
|
||||
"content": "# HTTPS service unavailable\nOwner: SSW590 Group 7. Severity: critical. Evaluate every 30s; pending 1 minute.\n\nThe rule produces separate instances for Gitea and Jenkins by URL label.\nMissing expected probe series are explicitly treated as failure; datasource\nno-data and evaluation errors enter Alerting rather than reporting health.\n\n1. Acknowledge the alert and record receipt/acknowledgement time.\n2. Inspect the instance URL and the availability/duration panels. Check collection\nhealth and exporter logs to distinguish probe failure from broken monitoring.\n3. Check DNS, valid TLS, expected response and redirects from the monitoring network.\nNever disable certificate verification to clear an alert.\n4. Inspect the affected container status/logs, Caddy routing, resource pressure,\nand recent changes. Confirm the actual cause before restarting anything.\n5. For the planned Jenkins-only exercise, restore using:\n`cd /home/codex/myfileagent-gitea && docker compose -f compose.yaml -f compose.jenkins.yaml start jenkins`\nVerify the live Compose service remains named jenkins before running it.\nDo not stop the Droplet, Gitea or monitoring; never delete service volumes.\n6. Verify HTTPS probe success, a normal Jenkins pipeline, webhook/status and\nGitea manual build as applicable. Record first success and resolved notification.\n7. Escalate unresolved faults to the other team member; capture impact/timeline\nand corrective actions. A complete Droplet failure can also stop these alerts.\n\nNotification destination and delivery timings are pending SMTP/contact-point\nsetup. Scrape (30s), evaluation (30s), pending (1m) and notification delays add\nlatency; do not expect an immediate message. No outage test has been run.\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Root capacity",
|
||||
"type": "text",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 18,
|
||||
"w": 24,
|
||||
"h": 18
|
||||
},
|
||||
"options": {
|
||||
"mode": "markdown",
|
||||
"content": "# Root capacity below 15 percent\nOwner: SSW590 Group 7. Severity: warning. Evaluate every 30s; pending 5 minutes.\n\nSelector: instance node-exporter:9100; mountpoint /; device /dev/vda1; ext4.\nQuery is 100 * available bytes / size bytes for that same filesystem.\nThe 15% threshold leaves operational room for builds, compaction and logs.\nNo-data or evaluation errors enter Alerting and require monitoring diagnosis.\n\n1. Acknowledge and record times. Compare exporter values to `df -B1 /`.\n2. Inspect directory usage, Docker images/volumes and logs read-only first.\nIdentify growth and protect Gitea/Jenkins/Grafana/Prometheus persistent data.\n3. Agree with the team on safe cleanup or retention changes; avoid global\nDocker pruning and do not delete repositories, service volumes or evidence.\n4. Restore adequate headroom, verify the metric and wait for rule resolution.\n5. Record cause, corrective action, delivered notification and recovery time.\n\nSafe planned test: temporarily raise the free-percentage threshold above the\nmeasured current value, wait through the full five-minute pending period and\ncapture real firing/delivery, then restore 15% and verify resolved delivery.\nNever fill the disk. The test has not yet been run. For file-provisioned rules,\nchange the reviewed provisioning threshold and reload/restart Grafana; retain\nfinal 15% configuration. Notification setup is still pending.\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
{
|
||||
"id": null,
|
||||
"uid": "myfileagent-sre",
|
||||
"title": "MyFileAgent - SRE Monitoring",
|
||||
"tags": [
|
||||
"SSW590",
|
||||
"Assignment 7",
|
||||
"SRE"
|
||||
],
|
||||
"timezone": "America/New_York",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "30s",
|
||||
"time": {
|
||||
"from": "now-1h",
|
||||
"to": "now"
|
||||
},
|
||||
"editable": true,
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": {
|
||||
"type": "grafana",
|
||||
"uid": "-- Grafana --"
|
||||
},
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Whole-droplet CPU utilization",
|
||||
"description": "CPU busy percentage averaged across all host CPUs. Whole-host load cannot attribute consumption to Jenkins or a single container.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": 75
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 90
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 100
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{job=\"node\",instance=\"node-exporter:9100\",mode=\"idle\"}[2m])))",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Available host memory",
|
||||
"description": "Host memory available to applications, including reclaimable memory; not merely free RAM.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "bytes",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "node_memory_MemAvailable_bytes{job=\"node\",instance=\"node-exporter:9100\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Root filesystem available space",
|
||||
"description": "Available space on the verified host root filesystem: /dev/vda1, ext4, mountpoint /. Excludes other mounts and pseudo filesystems.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 9,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 25
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 100
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "100 * node_filesystem_avail_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Gitea HTTPS availability",
|
||||
"description": "1 means the HTTPS login-page probe succeeded with TLS validation; 0 means failure. Does not establish authenticated Git operation.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 9,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "stepAfter",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 1,
|
||||
"decimals": 0
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_success{job=\"https\",instance=\"https://myfileagent.tech/user/login\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Jenkins HTTPS availability",
|
||||
"description": "1 means the HTTPS login-page probe succeeded; a successful response does not establish a successful pipeline.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 18,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "stepAfter",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
},
|
||||
"min": 0,
|
||||
"max": 1,
|
||||
"decimals": 0
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_success{job=\"https\",instance=\"https://ci.myfileagent.tech/login\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "HTTPS probe duration",
|
||||
"description": "End-to-end probe duration for both login URLs from this Droplet. Does not establish reachability from every user network.",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 18,
|
||||
"w": 12,
|
||||
"h": 9
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"drawStyle": "line",
|
||||
"lineInterpolation": "linear",
|
||||
"fillOpacity": 10,
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": false
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_duration_seconds{job=\"https\",instance=~\"https://(myfileagent.tech/user/login|ci.myfileagent.tech/login)\"}",
|
||||
"legendFormat": "{{instance}}",
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: team-sre
|
||||
orgId: 1
|
||||
folder: SSW590
|
||||
type: file
|
||||
disableDeletion: true
|
||||
allowUiUpdates: false
|
||||
updateIntervalSeconds: 30
|
||||
options:
|
||||
path: /etc/grafana/provisioning/dashboards/json
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
editable: false
|
||||
jsonData:
|
||||
timeInterval: 30s
|
||||
@@ -0,0 +1,48 @@
|
||||
# Blameless review: controlled Jenkins outage
|
||||
|
||||
Status: evidence-based draft for team verification, prepared October 28, 2026. Operational source remains on the Droplet working branch; not yet committed, pushed or peer approved. This is a review of an approved exercise, not an unplanned production incident.
|
||||
|
||||
## Impact and cause
|
||||
On October 24 only the existing Jenkins service was deliberately stopped to validate HTTPS monitoring, the one-minute unavailable rule, Discord delivery and recovery. Builds were checked idle before injection. The team approved the exercise and the agent executed the known stop/start commands. The cause was intentional fault injection; no individual error or underlying application defect is established. Gitea remained healthy in recorded HTTP checks and all 20 probes of the selected window. No volumes were removed.
|
||||
|
||||
## Timeline
|
||||
All times below are October 24, 2026, America/New_York (EDT, UTC-04:00), except the explicitly dated later checks.
|
||||
|
||||
| Event | Time | Evidence/qualification |
|
||||
|---|---|---|
|
||||
| Stop requested | 17:26:45.883 | Automation event |
|
||||
| Jenkins stopped | 17:26:51.997 | Stop command completed |
|
||||
| First failed probe sample | 17:27:11.023 | Actual Prometheus sample timestamp |
|
||||
| Failure first observed by polling | 17:27:12.740 | Observer timestamp |
|
||||
| Rule firing transition | 17:28:20 | Grafana instance UI |
|
||||
| Firing first observed by polling | 17:28:34.086 | Observer timestamp |
|
||||
| Discord firing delivery | displayed 17:28 | User screenshot; no exact second |
|
||||
| Team acknowledgment | confirmed in chat | Exact clock time not supplied |
|
||||
| Restart requested | 17:29:55.087 | Automatic recovery |
|
||||
| Start command finished | 17:29:57.750 | Exit 0; not readiness |
|
||||
| HTTPS ready observed | 17:30:48.613 | HTTP 200 |
|
||||
| First successful probe after failure | 17:31:11.023 | Actual sample timestamp |
|
||||
| Rule returned Normal | 17:31:20 | Grafana instance UI |
|
||||
| Discord resolved delivery | confirmed | Screenshot lacks visible delivery time |
|
||||
|
||||
## Detection and restoration
|
||||
Stop-to-first-failed-sample: 19.026 seconds. Stop-to-rule-firing transition: 88.003 seconds. First failed sample to firing transition: 68.977 seconds. The 30-second scrape, 30-second evaluation interval and one-minute pending period explain quantization; polling first observed firing another 14.086 seconds later. Discord grouping adds configured delivery delay (10-second group wait, one-minute group interval), but exact delivery latency and acknowledgment latency cannot be calculated from the screenshots.
|
||||
|
||||
Stopped-to-restart-requested: 183.090 seconds. Restart-requested-to-observed-HTTPS-ready: 53.526 seconds. Stopped-to-observed-HTTPS-ready: 236.617 seconds (about 3 minutes 57 seconds). The injection was approximately three minutes; startup extended service unavailability. Failed-to-successful sampled transition spans 240 seconds; that is a sampled interval, not an exact downtime duration.
|
||||
|
||||
## SLI result and limits
|
||||
Fixed window: October 24 17:23:00-17:33:00 EDT; evaluation epoch 1792877580. At 30-second intervals, both services returned the expected 20 samples. Jenkins had 12 successes and 8 failures: 60% sampled availability. Gitea had 20 successes: 100%. Both ended with probe_success=1. No missing samples were observed in this window. This short exercise does not establish a full-day 99% SLO result, an SLA, or availability from every client network. Missing collection in other windows is unknown, not success.
|
||||
|
||||
## Response and recovery verification
|
||||
The automatic recovery path started only Jenkins and preserved volumes. Discord firing and resolved delivery are confirmed by team screenshots. Normal rule thresholds remain unchanged. Build #5 on October 25 passed syntax validation and two unit tests in 36.837 seconds on revision 131d605c5edb5b5080e4d54861c3c7bf7c360c9c; its log records Gitea SUCCESS notification. This was following-day validation after fresh sign-in, not an immediate recovery build. No manual/PDF build was rerun because the team explicitly deferred compilation. Earlier failed/repaired PR 11 demonstrates pipeline test failure, which differs from service unavailability: https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11 . Build #5: https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/5/ .
|
||||
|
||||
## What worked and measurement gaps
|
||||
The isolated exercise, prechecked idle queue, explicit recovery command, automatic restart, per-service alert instances and team-controlled Discord routing worked. Polling timestamps and actual sample timestamps are retained separately. Delivery/acknowledgment timing and prompt post-recovery build validation need improvement. Manual build verification remains deferred by team instruction. Incident graph annotations have not yet been added; the fixed-window raw probe samples are preserved and must support any later figure. No claims of completed peer review or publication are made.
|
||||
|
||||
October 28 separate Prometheus/Grafana restarts retained historical readings, both resource-backed dashboards, data source, two alert rules and 18 annotations. One approximately 60-second interval between Jenkins probe samples was recorded (one missed scheduled sample). Grafana restart pauses evaluation and notifications. Persistence is not backup/restore proof.
|
||||
|
||||
## Shared failure domain and prioritized follow-up
|
||||
All monitoring shares the Droplet with its monitored services. Total host/network failure can prevent local detection and notification. P1: independent external HTTPS checks. P2: complete incident timestamps and prompt recovery-build validation. Owner for both: Gowri Das Lovely (@glovely); Gitea issues created October 28: [P1 issue 12](https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/12), [P2 issue 13](https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/13). Both assigned to glovely; author shown as jenkins-ci from the user-signed-in session. These issues authorize tracking, not a new outage, paid purchase or deployment.
|
||||
|
||||
## Evidence
|
||||
Droplet evidence directory: /home/codex/myfileagent-gitea/evidence/assignment7 . Primary records: jenkins-incident-timeline.json, jenkins-incident-probe-samples.json, jenkins-incident-sli-fixed-window.json, jenkins-recovery-build5.json, monitoring-restart-persistence.json and monitoring-restart-state-verification.json. Team screenshots: jenkins-discord-firing-team.png and jenkins-discord-resolved-team.png under screenshots/. These files have not yet been published as reviewed Git artifacts; final report integration must use verified source links.
|
||||
@@ -0,0 +1,28 @@
|
||||
global:
|
||||
scrape_interval: 30s
|
||||
scrape_timeout: 15s
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: [prometheus:9090]
|
||||
- job_name: node
|
||||
static_configs:
|
||||
- targets: [node-exporter:9100]
|
||||
- job_name: blackbox
|
||||
static_configs:
|
||||
- targets: [blackbox-exporter:9115]
|
||||
- job_name: https
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://myfileagent.tech/user/login
|
||||
- https://ci.myfileagent.tech/login
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: blackbox-exporter:9115
|
||||
@@ -0,0 +1,22 @@
|
||||
# Root capacity below 15 percent
|
||||
Owner: SSW590 Group 7. Severity: warning. Evaluate every 30s; pending 5 minutes.
|
||||
|
||||
Selector: instance node-exporter:9100; mountpoint /; device /dev/vda1; ext4.
|
||||
Query is 100 * available bytes / size bytes for that same filesystem.
|
||||
The 15% threshold leaves operational room for builds, compaction and logs.
|
||||
No-data or evaluation errors enter Alerting and require monitoring diagnosis.
|
||||
|
||||
1. Acknowledge and record times. Compare exporter values to `df -B1 /`.
|
||||
2. Inspect directory usage, Docker images/volumes and logs read-only first.
|
||||
Identify growth and protect Gitea/Jenkins/Grafana/Prometheus persistent data.
|
||||
3. Agree with the team on safe cleanup or retention changes; avoid global
|
||||
Docker pruning and do not delete repositories, service volumes or evidence.
|
||||
4. Restore adequate headroom, verify the metric and wait for rule resolution.
|
||||
5. Record cause, corrective action, delivered notification and recovery time.
|
||||
|
||||
Safe planned test: temporarily raise the free-percentage threshold above the
|
||||
measured current value, wait through the full five-minute pending period and
|
||||
capture real firing/delivery, then restore 15% and verify resolved delivery.
|
||||
Never fill the disk. The October 24 threshold-only test delivered firing and resolved notifications. For file-provisioned rules,
|
||||
change the reviewed provisioning threshold and reload/restart Grafana; retain
|
||||
final 15% configuration. Discord team-alerts is active with resolved notifications enabled.
|
||||
@@ -0,0 +1,25 @@
|
||||
# HTTPS service unavailable
|
||||
Owner: SSW590 Group 7. Severity: critical. Evaluate every 30s; pending 1 minute.
|
||||
|
||||
The rule produces separate instances for Gitea and Jenkins by URL label.
|
||||
Missing expected probe series are explicitly treated as failure; datasource
|
||||
no-data and evaluation errors enter Alerting rather than reporting health.
|
||||
|
||||
1. Acknowledge the alert and record receipt/acknowledgement time.
|
||||
2. Inspect the instance URL and the availability/duration panels. Check collection
|
||||
health and exporter logs to distinguish probe failure from broken monitoring.
|
||||
3. Check DNS, valid TLS, expected response and redirects from the monitoring network.
|
||||
Never disable certificate verification to clear an alert.
|
||||
4. Inspect the affected container status/logs, Caddy routing, resource pressure,
|
||||
and recent changes. Confirm the actual cause before restarting anything.
|
||||
5. For the planned Jenkins-only exercise, restore using:
|
||||
`cd /home/codex/myfileagent-gitea && docker compose -f compose.yaml -f compose.jenkins.yaml start jenkins`
|
||||
Verify the live Compose service remains named jenkins before running it.
|
||||
Do not stop the Droplet, Gitea or monitoring; never delete service volumes.
|
||||
6. Verify HTTPS probe success, a normal Jenkins pipeline, webhook/status and
|
||||
Gitea manual build as applicable. Record first success and resolved notification.
|
||||
7. Escalate unresolved faults to the other team member; capture impact/timeline
|
||||
and corrective actions. A complete Droplet failure can also stop these alerts.
|
||||
|
||||
Discord team-alerts is the active route; resolved notifications are enabled.
|
||||
Scrape 30s, evaluation 30s, pending 1m, group wait 10s, group interval 1m and repeat 4h contribute delay. The approved October 24 exercise delivered firing and resolved notifications; see ../incidents/2026-10-24-jenkins-outage.md. Do not repeat an outage without team approval.
|
||||
@@ -0,0 +1,62 @@
|
||||
# SLI, SLO and error budget - Assignment 7
|
||||
|
||||
Status: baseline and controlled-outage short-window measurements completed.
|
||||
No full-day SLO evaluation is claimed.
|
||||
This file is an operational working note, not an edit to the team manual/PDF.
|
||||
|
||||
## Definitions and scope
|
||||
SLI: fraction of received scheduled HTTPS login probes that succeed, reported
|
||||
separately for Gitea and Jenkins, alongside expected/received sample coverage.
|
||||
SLO: internal lab target of at least 99% successful scheduled probes over a
|
||||
24-hour window for each service. No customer SLA is established by this lab.
|
||||
SLA: a customer service agreement that may specify consequences for a miss.
|
||||
A successful login probe does not establish Git operations or passing builds.
|
||||
A same-Droplet probe does not prove external user reachability. A total host
|
||||
outage may stop both collection and notification; missing data is unknown.
|
||||
|
||||
## Required hypothetical worked example (not measured results)
|
||||
At a 30-second interval, 24 hours contains 2,880 scheduled probes per service.
|
||||
Assume every scheduled observation is present.
|
||||
- Gitea: 2,880 successes / 2,880 = 100%; meets the 99% target.
|
||||
- Jenkins: 2,850 successes / 2,880 = 98.958333...%; misses the 99% target.
|
||||
- The 1% theoretical budget is 28.8 failed samples, equivalent to 14.4 minutes
|
||||
under uniform sampling. At most 28 whole failures meet this target.
|
||||
- 30 failed samples exceed 28.8 by 1.2 samples, about 0.6 minutes.
|
||||
These minute equivalents assume uniform sampling; they are not exact measured
|
||||
outage durations and must not be presented as actual lab results.
|
||||
|
||||
## Measurement queries
|
||||
See queries.json. The job filter is https and the instance label preserves
|
||||
the exact Gitea/Jenkins URL. Each series is evaluated separately.
|
||||
availability_percent: 100 * avg_over_time(probe_success{job="https"}[10m])
|
||||
received_samples: count_over_time(probe_success{job="https"}[10m])
|
||||
observed_failed_samples: count_over_time(...) - sum_over_time(...)
|
||||
collection_health: up{job=~"https|blackbox|prometheus"}
|
||||
A 10-minute interval has approximately 20 scheduled samples at 30 seconds.
|
||||
Range boundaries, jitter and restarts can change received counts. avg_over_time
|
||||
uses only received observations; an absent observation is not success.
|
||||
The difference in the failure-count query is valid because probe_success is
|
||||
binary. Count sample failures separately from exporter/collection failures.
|
||||
Prometheus query evaluation time must be fixed and recorded for reproduction.
|
||||
|
||||
## Baseline check
|
||||
The exact fixed query time, start/end, results and scrape-health observations
|
||||
are saved in evidence/assignment7/sli-slo-baseline-query-check.json under
|
||||
/home/codex/myfileagent-gitea. This checks queries against live data only.
|
||||
It does not satisfy the controlled-outage evidence requirement or establish
|
||||
that the 24-hour SLO was met. Do not extrapolate a short window into a day.
|
||||
If missing samples are present, report coverage and the uncertainty explicitly;
|
||||
a received-sample average alone cannot classify a complete-window SLO result.
|
||||
|
||||
## Later approved outage measurement
|
||||
After alerts and their notification route work, agree on a maintenance window.
|
||||
Record exact injection/recovery events, then select a short window spanning
|
||||
before, during and after the controlled Jenkins outage. Use one timezone
|
||||
(America/New_York) and record query evaluation time in UTC as well.
|
||||
Evaluate both services at that exact time using the same 10-minute window.
|
||||
Report successes/failures, received vs approximately expected samples, coverage,
|
||||
collection health and known gaps. Save raw results and annotate the incident.
|
||||
Keep the hypothetical example separate from measured findings.
|
||||
Full-day collection and meeting the SLO are optional in manual version 1.42.
|
||||
The October 24 incident is documented in ../incidents/2026-10-24-jenkins-outage.md.
|
||||
Fixed window 17:23-17:33 EDT: both services 20/20 expected observations; Jenkins 12 successes/8 failures (60%), Gitea 20 successes/0 failures (100%). See ../evidence/jenkins-incident-sli-fixed-window.json.
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"window_seconds": 600,
|
||||
"scrape_interval_seconds": 30,
|
||||
"queries": {
|
||||
"availability_percent": "100 * avg_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"received_samples": "count_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"observed_failed_samples": "count_over_time(probe_success{job=\"https\"}[10m]) - sum_over_time(probe_success{job=\"https\"}[10m])",
|
||||
"collection_health": "up{job=~\"https|blackbox|prometheus\"}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Merge this site block into the deployment's existing Caddyfile.
|
||||
# Gitea delivers directly to Jenkins through the private Docker bridge.
|
||||
ci.myfileagent.tech {
|
||||
@giteaHook path /gitea-webhook /gitea-webhook/*
|
||||
respond @giteaHook "Webhook is available only on the private network" 403
|
||||
reverse_proxy jenkins:8080
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
# Assignment 6 Python CI
|
||||
|
||||
The pipeline runs on the trusted Jenkins controller executor. Only trusted
|
||||
team members may change pipeline code. Do not supply secrets or privileged
|
||||
Docker access to untrusted pull requests. Fork PR discovery is disabled.
|
||||
|
||||
The controller uses the official Jenkins LTS image recorded in compose.jenkins.yaml.
|
||||
Python comes from that image's Debian package repositories; record the actual
|
||||
Python version from each build. No pip dependencies or Docker socket are needed.
|
||||
After replacing the container, run `sh ops/jenkins/install-python.sh` on the
|
||||
Droplet before building. A restart retains Python; replacement requires reinstall.
|
||||
Jenkins jobs and settings persist in the jenkins-home volume.
|
||||
|
||||
From the repository root, reproduce checks with:
|
||||
|
||||
python3 -m py_compile pricing.py tests/test_pricing.py
|
||||
python3 -m unittest discover -s tests -v
|
||||
|
||||
Expected: both tests pass. Syntax or test failures must fail the Jenkins run.
|
||||
Multibranch origin PR discovery tests the current PR revision, not a merged revision.
|
||||
The printed checkout commit identifies what was actually tested.
|
||||
|
||||
Webhook delivery, status reporting, branch protection, and the controlled
|
||||
failure/repair demonstration must be configured and verified separately.
|
||||
|
||||
## Gitea webhook and required merge gate
|
||||
|
||||
Configure the repository Gitea webhook with POST, application/json, active,
|
||||
push and pull-request events, branch filter `*`, and target
|
||||
`http://jenkins:8080/gitea-webhook/post`. Gitea must allow the exact `jenkins`
|
||||
host through its webhook destination allowlist; see `compose.webhook.yaml`.
|
||||
The deployed base Compose file includes this same environment setting.
|
||||
The hook is configured manually, so Jenkins does not manage repository hooks.
|
||||
|
||||
The installed Gitea plugin handler does not verify a shared-secret signature.
|
||||
Leave the hook secret empty and use the existing private Docker network.
|
||||
Block `/gitea-webhook` and `/gitea-webhook/*` at the public Caddy site, as in
|
||||
`Caddyfile.jenkins`. Raw port 8080 remains loopback-only. Do not claim HMAC
|
||||
authentication, and do not expose the unsigned receiver publicly.
|
||||
|
||||
Require `myfileagent-python-ci/pipeline/pr-main` on `main`; this is the
|
||||
observed PR-head context. The branch context ending `/pipeline/head` is
|
||||
not the PR context. `main-branch-protection.json` records the applied rule:
|
||||
no direct or force pushes, one approval, dismiss stale approvals, reject
|
||||
changes-requested reviews, and no administrator merge override.
|
||||
|
||||
October 9, 2026 acceptance exercise, linked to issue #10 and PR #11:
|
||||
- PR build 1 passed on ad056a3 after a real pull-request-open webhook.
|
||||
- Commit d6477b3 changed multiplication to addition; PR build 2 failed with
|
||||
`AssertionError: 13 != 30`; Gitea showed the required check failed.
|
||||
- Commit 02d3169 restored multiplication; the webhook started PR build 3,
|
||||
which passed both tests and updated the same required context.
|
||||
- PR #11 remains open for reviewer nkogut. No review approval or merge has
|
||||
been performed by automation.
|
||||
|
||||
For delivery diagnosis, inspect Gitea's recent delivery response and compare
|
||||
its event/head SHA with Jenkins' console. A 200 `Processed` delivery alone
|
||||
is not proof that tests passed. Save the failed and repaired PR gate views
|
||||
before further commits. A new commit needs a new success status and review.
|
||||
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
jenkins:
|
||||
image: jenkins/jenkins@sha256:a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1
|
||||
container_name: myfileagent-jenkins
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
JAVA_OPTS: "-Xms64m -Xmx256m"
|
||||
mem_limit: 448m
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
volumes:
|
||||
- jenkins-home:/var/jenkins_home
|
||||
networks:
|
||||
- gitea-private
|
||||
|
||||
volumes:
|
||||
jenkins-home:
|
||||
@@ -0,0 +1,7 @@
|
||||
# Apply with the existing base compose.yaml and compose.jenkins.yaml.
|
||||
# Allows only the named Jenkins destination in addition to Gitea's default
|
||||
# external destinations; never use '*' to allow every private address.
|
||||
services:
|
||||
gitea:
|
||||
environment:
|
||||
GITEA__webhook__ALLOWED_HOST_LIST: "external,jenkins"
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Run on the Droplet after recreating the official Jenkins container.
|
||||
# Python installed in the container survives restart, not container replacement.
|
||||
set -eu
|
||||
docker exec -u root myfileagent-jenkins sh -c 'apt-get update -qq && apt-get install -y --no-install-recommends python3'
|
||||
docker exec myfileagent-jenkins python3 --version
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"branch_name": "main",
|
||||
"rule_name": "main",
|
||||
"priority": 1,
|
||||
"enable_push": false,
|
||||
"enable_push_whitelist": false,
|
||||
"push_whitelist_usernames": [],
|
||||
"push_whitelist_teams": [],
|
||||
"push_whitelist_deploy_keys": false,
|
||||
"enable_force_push": false,
|
||||
"enable_force_push_allowlist": false,
|
||||
"force_push_allowlist_usernames": [],
|
||||
"force_push_allowlist_teams": [],
|
||||
"force_push_allowlist_deploy_keys": false,
|
||||
"enable_merge_whitelist": false,
|
||||
"merge_whitelist_usernames": [],
|
||||
"merge_whitelist_teams": [],
|
||||
"enable_bypass_allowlist": false,
|
||||
"bypass_allowlist_usernames": [],
|
||||
"bypass_allowlist_teams": [],
|
||||
"enable_status_check": true,
|
||||
"status_check_contexts": [
|
||||
"myfileagent-python-ci/pipeline/pr-main"
|
||||
],
|
||||
"required_approvals": 1,
|
||||
"enable_approvals_whitelist": false,
|
||||
"approvals_whitelist_username": [],
|
||||
"approvals_whitelist_teams": [],
|
||||
"block_on_rejected_reviews": true,
|
||||
"block_on_official_review_requests": true,
|
||||
"block_on_outdated_branch": false,
|
||||
"dismiss_stale_approvals": true,
|
||||
"ignore_stale_approvals": false,
|
||||
"require_signed_commits": false,
|
||||
"protected_file_patterns": "",
|
||||
"unprotected_file_patterns": "",
|
||||
"block_admin_merge_override": true,
|
||||
"created_at": "2026-10-09T19:03:48Z",
|
||||
"updated_at": "2026-10-09T19:04:32Z"
|
||||
}
|
||||
@@ -1,8 +1,12 @@
|
||||
# Assignment 5 manual build infrastructure
|
||||
|
||||
Status on October 6, 2026: infrastructure preparation; the authoritative manual
|
||||
has not been transferred. No manual PDF build or failure/repair exercise is
|
||||
claimed. Assignment metadata must remain 1.7.1, October 6, 2026.
|
||||
Status on October 6, 2026 (America/New_York): source transfer resolved. The
|
||||
complete manual now resides in documentation/. Push-triggered manual runs 3
|
||||
and 4 passed; controlled LaTeX failure run 5 published no PDF; repaired run 6
|
||||
passed. All three successful artifacts were downloaded and checksum-verified.
|
||||
See manual-build-evidence.json and documentation/devopsAutomatedManualBuild.tex.
|
||||
Assignment metadata remains 1.7.1, October 6, 2026. Final PDF publication uses
|
||||
its generated Build Identity; final download verification is retained separately.
|
||||
|
||||
## Deployment
|
||||
|
||||
@@ -36,8 +40,7 @@ workflow changes remains a procedural control, not an enforced approval gate.
|
||||
|
||||
Dockerfile pins Debian by digest and packages by the October 1, 2026 Debian
|
||||
snapshot. It supplies TeX Live 2022, latexmk, minted/Pygments, Latin Modern,
|
||||
recommended fonts, BibTeX, index/glossary tools, Node and pypdf. Full source
|
||||
compatibility remains unverified until the real manual is available.
|
||||
recommended fonts, BibTeX, index/glossary tools, Node and pypdf. Full source compatibility was verified by precompilation and successful Actions runs.
|
||||
|
||||
runner-preflight.yml is an isolated infrastructure test on branch
|
||||
manual-runner-preflight. It is not one of the required manual source builds.
|
||||
@@ -47,22 +50,17 @@ retention; the eventual PDF workflow must also record its actual retention.
|
||||
Checkout is pinned to v4.2.2 commit 11bd71901bbe5b1630ceea73d27597364c9af683.
|
||||
Upload is pinned to v3.2.2 commit c6a366c94c3e0affe28c06c8df20a878f24da3cf.
|
||||
|
||||
## Source transfer and remaining work
|
||||
## Source and build
|
||||
|
||||
Transfer the actual C:\Users\gowri\SSW590\assignment5\documentation directory,
|
||||
including main.tex, all chapters, cornell.cls, bibliography/style files,
|
||||
ci/build_manual.py, hw4_images and other referenced assets, plus the instruction
|
||||
PDF dosManual-V1.18.pdf. Preserve the archive as an input and inspect it before
|
||||
extracting. Exclude credentials and stale build/cache outputs from commits.
|
||||
Use existing authenticated SSH/SFTP/SCP to stage the source archive under
|
||||
/home/codex/myfileagent-gitea/incoming; do not open a public upload port.
|
||||
|
||||
Then verify dependencies, add the push-triggered manual workflow, generate
|
||||
uncommitted visible version/commit/run metadata, and require a nonempty PDF.
|
||||
Perform two successful source-change builds, the controlled error and repair
|
||||
on manual-build-validation, update all eight chapter sections and history,
|
||||
prompt log, Hosts/Passwords (explicit changed/unchanged), glossary and index.
|
||||
Download and visually inspect the final successful Actions PDF artifact.
|
||||
The user supplied Assignment5-source-prepared.zip, SHA-256
|
||||
ad93f9f2e71bc66a2b882b57510cbb7f51827637047073d6a6f78c0170e6205e.
|
||||
The original archive and instruction PDF remain outside the public repository.
|
||||
All actual manual dependencies, including twelve hw4_images files, are versioned.
|
||||
The active workflow is .gitea/workflows/manual-pdf.yml, triggered by pushes to
|
||||
main and manual-build-validation. Its helper runs from documentation/ci and
|
||||
creates uncommitted build metadata in a fresh temporary workspace. Compiler
|
||||
errors, missing/empty PDFs and failed identity/reference checks stop publication.
|
||||
The requested artifact retention is 14 days. No generated PDF is auto-committed.
|
||||
|
||||
## Ownership, cost, cleanup and recovery
|
||||
|
||||
@@ -108,14 +106,11 @@ The pinned upload-artifact v3.2.2 action works with this server. Its legacy
|
||||
artifact is downloadable from the run URL but absent from the newer REST
|
||||
artifact listing. Use the run's named download link for this protocol. Retention
|
||||
is requested as 14 days; expiry enforcement has not yet been observed.
|
||||
The pending manual workflow is in manual-pdf.yml.example, not activated.
|
||||
The active manual workflow is .gitea/workflows/manual-pdf.yml; manual-pdf.yml.example is the original preparation template.
|
||||
|
||||
The first preflight hit the runner's 96 MiB cap during action download. Its
|
||||
orphaned container was stopped; the cap is now 192 MiB with GOMEMLIMIT=128MiB.
|
||||
Run 2 then passed without another runner restart. This infrastructure repair
|
||||
is NOT the required controlled LaTeX error and repair exercise.
|
||||
|
||||
No original manual chapter, history, glossary, Hosts or Passwords table was
|
||||
modified on this host because its authoritative source is still missing.
|
||||
Once transferred, incorporate these verified facts into the single complete
|
||||
devopsAutomatedManualBuild.tex and preserve prior history.
|
||||
The original manual is now imported. Its complete automated-build chapter, history, prompt log, introduction, references and Hosts/Passwords hints have been updated while preserving earlier evidence. The glossary and index link the build concepts; the final artifact requires visual review after download.
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
"job_memory_mib": 256,
|
||||
"runner_image": "gitea/act_runner@sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86",
|
||||
"compiler_image_id": "sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1",
|
||||
"source_transfer": "pending; incoming directory empty",
|
||||
"manual_builds_verified": 0,
|
||||
"source_transfer": "resolved: user-provided archive imported into documentation",
|
||||
"manual_builds_verified": 3,
|
||||
"preflight_1": {
|
||||
"commit": "194cce7c657ff1166c4cddb5dd6f47bfa9c97e93",
|
||||
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/1",
|
||||
@@ -47,5 +47,6 @@
|
||||
"color-buttons-app on 8080"
|
||||
],
|
||||
"secret_boundary": "runner state and temporary repository write token outside Git, restricted storage; no credential values in evidence",
|
||||
"hosts_passwords_manual_tables": "unchanged remotely; authoritative manual unavailable"
|
||||
"hosts_passwords_manual_tables": "updated with runner and protected credential-storage hints",
|
||||
"manual_evidence": "manual-build-evidence.json"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"observed_date": "2026-10-06 America/New_York",
|
||||
"source_archive_sha256": "ad93f9f2e71bc66a2b882b57510cbb7f51827637047073d6a6f78c0170e6205e",
|
||||
"successful_builds": [
|
||||
{
|
||||
"commit": "c74087a93bf53b44a75a25c3658fc178ff253225",
|
||||
"run_number": "3",
|
||||
"run_id": "3",
|
||||
"attempt": "1",
|
||||
"suffix": "+build.3.c74087a.attempt.1",
|
||||
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3",
|
||||
"document_version": "1.7.1",
|
||||
"pdf_sha256": "ab99995751da7a67684d97e32344cfc8d7f3d0c6c26055bbd0670b3dc030d337",
|
||||
"pages": 72,
|
||||
"artifact_name": "assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225",
|
||||
"artifact_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3/artifacts/assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225",
|
||||
"artifact_zip_sha256": "f4ebf6cf6e9278715dd8347a6e38a9034e62256ea5e619887109a6bddece6b2d",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"commit": "2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a",
|
||||
"run_number": "4",
|
||||
"run_id": "4",
|
||||
"attempt": "1",
|
||||
"suffix": "+build.4.2b8be11.attempt.1",
|
||||
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4",
|
||||
"document_version": "1.7.1",
|
||||
"pdf_sha256": "ba87740958bada14f31d2236638c9b175d8b24797f715252cdb0f0af6668be06",
|
||||
"pages": 72,
|
||||
"artifact_name": "assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a",
|
||||
"artifact_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a",
|
||||
"artifact_zip_sha256": "87d3ed75e74caf0eaf823a8b3dd7355fd090e7a13b28ae75ba82020ff2045bbc",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"commit": "a4737f1a4eed5e1b786038bb917ca1ab9f1ed856",
|
||||
"run_number": "6",
|
||||
"run_id": "6",
|
||||
"attempt": "1",
|
||||
"suffix": "+build.6.a4737f1.attempt.1",
|
||||
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6",
|
||||
"document_version": "1.7.1",
|
||||
"pdf_sha256": "7591b1cd87f319dfc77eaa4ca9fd9727d1e7b97253a05d9a93e8624296bc736e",
|
||||
"pages": 72,
|
||||
"artifact_name": "assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856",
|
||||
"artifact_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6/artifacts/assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856",
|
||||
"artifact_zip_sha256": "e7de44f82686fdb57b8c57480f4b0079dca1b27751a08b15b980adaaa10473d8",
|
||||
"result": "success"
|
||||
}
|
||||
],
|
||||
"controlled_failure": {
|
||||
"run": 5,
|
||||
"commit": "f0e7b74ee63b40811334ee9cd4aecf035f1b0864",
|
||||
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/5",
|
||||
"error": "Undefined control sequence: AssignmentFiveControlledFailure",
|
||||
"latexmk_exit": 12,
|
||||
"artifact_download_status": 404
|
||||
},
|
||||
"final_publication": "Current PDF build identity and matching Actions artifact identify the final source; external verification follows download."
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
# Instruction PDF section 3.5 documentation review
|
||||
|
||||
Reviewed October 7, 2026 against the supplied dosManual-V1.18.pdf, section 3.5
|
||||
(printed pages 13–14). This checks documented coverage, not a grade prediction.
|
||||
The title remains Assignment 5, version 1.7.1, October 6, 2026.
|
||||
|
||||
| Requirement | Documentation and evidence | Result |
|
||||
|---|---|---|
|
||||
| Eight numbered subsections in rubric order; dated, labeled, sanitized evidence and clickable links | Chapter 10 has sections 10.1–10.8 in the required order; MAN-RUNNER-01 and MAN-BUILD/FAIL/REPAIR records have dates, expected/actual results and real run links. | Included |
|
||||
| 1. Source and trigger: repository/main/workflow links, branch and push trigger, observed triggered run, HTTPS path and ports, no runner submission port | 10.1 names main and manual-build-validation, links source/workflow, traces HTTPS 443 → Caddy → private Gitea 3000, and explains outbound runner polling; 10.6 correlates source pushes and runs. | Included |
|
||||
| 2. Runner setup: version, location, scope, label, execution mode, network path, capacity, online/assigned evidence, isolation and temporary jobs | 10.2 records runner 0.6.1, same-Droplet configuration location, repository scope, ID 1, manual-latex, explicit Docker docker:// execution, temporary TeX containers, HTTPS paths, capacity one, resource limits, online API observation and assigned run 2. No public runner/job ports or socket mount in jobs. | Included |
|
||||
| 3. Reproducible compilation: image, dependencies, command, main file, output, successful log, failure detection, compiler location and source/artifact exchange | 10.3 records the pinned image ID, tool versions, latexmk command, helper/output path and validation gates; 10.1 identifies main.tex. A direct successful run-9 job-log link is included. Sections 10.2–10.3 and Figure 10.1 explain temporary compiler installation and HTTPS exchange without a Gitea/shared compiler filesystem. | Included |
|
||||
| 4. PDF identity: human version, build suffix, full commit/run, matching run and no auto-commit loop | 10.4 and the visible Build Identity page describe generated temporary metadata. The title includes the actual build suffix; matching runs and PDF identities are in 10.6. | Included |
|
||||
| 5. Artifact: named successful artifact link, downloaded file opens, retention and no permanent-backup claim | 10.5 provides a generated link to the current PDF artifact and requests 14-day retention; it explicitly states artifacts are not permanent backups. 10.6 records downloaded/parsed PDFs and matching checksums for runs 3, 4 and 6. The newly revised artifact is downloaded and checked after this review is committed. | Included; revised artifact verification follows build |
|
||||
| 6. Two successive source changes plus controlled failure and repair, expected/actual results and matched commits | 10.6 correlates successful runs 3–4, failed run 5 (compiler error, upload skipped, artifact 404), and repaired run 6 with full commits, visible PDF versions, named artifacts and checksums. | Included |
|
||||
| 7. Workflow rights, secret storage hints, isolation, Docker privilege risk and non-secret configuration links | 10.7 documents Owners-team rights, trusted push triggers, protected runner/token storage, socket risk and job restrictions. It directly links runner-config.yaml, runner-compose.yaml and the workflow. | Included |
|
||||
| 8. Version/history and chapter link; explicit Hosts/Passwords changes; current hints-only tables; citations, glossary/index, evidence, failed-build procedure | Consolidated 1.7.1 history explicitly records Hosts and Passwords updates and links the chapters. 10.8 links the tables/history/log, cites supporting material and gives troubleshooting. Existing glossary/index destinations and all earlier-version history remain. | Included |
|
||||
|
||||
The four 1.7.1 rows in each log were merged into one concise October 6–7 row.
|
||||
Their rendered height is checked against the requested two-thirds-page maximum
|
||||
(preferably one-half page) in the downloaded Actions PDF. No earlier-version
|
||||
entry was removed. Section 10.1's requested sentence was removed; historical
|
||||
records in other chapters remain intact.
|
||||
@@ -0,0 +1,4 @@
|
||||
def total_price(unit_price, quantity):
|
||||
if quantity < 1:
|
||||
raise ValueError("Quantity must be positive")
|
||||
return unit_price * quantity
|
||||
@@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
from pricing import total_price
|
||||
|
||||
|
||||
class PricingTests(unittest.TestCase):
|
||||
def test_total(self):
|
||||
self.assertEqual(total_price(10, 3), 30)
|
||||
|
||||
def test_invalid_quantity(self):
|
||||
with self.assertRaises(ValueError):
|
||||
total_price(10, 0)
|
||||