diff --git a/.gitea/workflows/manual-pdf.yml b/.gitea/workflows/manual-pdf.yml index 65b6935..e440995 100644 --- a/.gitea/workflows/manual-pdf.yml +++ b/.gitea/workflows/manual-pdf.yml @@ -2,13 +2,15 @@ # The runner label must match the registered self-managed Gitea runner. name: manual-pdf + on: push: branches: - main - chapter3-failure-test + - chapter5-sre-monitoring workflow_dispatch: - + jobs: build-manual: runs-on: windows-latex-host @@ -16,6 +18,7 @@ jobs: - name: Check out source uses: actions/checkout@v4 + - name: Generate build metadata shell: cmd run: | @@ -28,16 +31,24 @@ jobs: echo \renewcommand{\WorkflowRunNumber}{%GITHUB_RUN_NUMBER%}>> devopsBuildMetadata.tex echo \renewcommand{\WorkflowRunAttempt}{%GITHUB_RUN_ATTEMPT%}>> devopsBuildMetadata.tex + - name: Compile manual shell: cmd run: | latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex + if errorlevel 1 exit /b 1 + makeglossaries devopsAssignment + if errorlevel 1 exit /b 1 + latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex + if errorlevel 1 exit /b 1 if not exist devopsAssignment.pdf exit /b 1 for %%A in (devopsAssignment.pdf) do if %%~zA LEQ 0 exit /b 1 + - name: Upload compiled PDF uses: actions/upload-artifact@v3 with: name: devops-it-manual-${{ github.run_number }}-${{ github.sha }} path: devopsAssignment.pdf - retention-days: 14 + retention-days: 14 + diff --git a/.gitignore b/.gitignore index de31eb9..01084b2 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,11 @@ _minted/ .DS_Store Thumbs.db .vscode/ + +# Local deployment secrets +.env +.env.* +!.env.example + +# Server-local notification secrets +*.local.yml diff --git a/devopsAIPromptLog.tex b/devopsAIPromptLog.tex index f3db631..5cfca13 100644 --- a/devopsAIPromptLog.tex +++ b/devopsAIPromptLog.tex @@ -29,3 +29,26 @@ accounts, created the DigitalOcean firewall in the web console, confirmed DNS record creation, and authorized replacing obsolete teammate-hosted assignment details; Unresolved assumptions: the temporary reviewer account can be replaced by a real teammate account before future production use. + +\section{Chapter 5 Monitoring Record} +Date: October 30, 2026; tool: OpenAI Codex. Inputs: Turan's prepared feature +branch, assignment manual 1.42, actual host/CI/metrics records and Sergio's +explicit deployment, snapshot, resize and Discord authorizations. Output used: +configuration repairs, deployment, controlled tests, measured report and +sanitized evidence. Sergio retained the 10 GB disk and confirmed the test +message plus both real firing/resolved notification pairs. Secrets stayed on +the server. Human peer review, exact receiver timestamps and the limitations +listed in \ChapterRef{SREMonitoring} remain outstanding. No main merge was +performed. Turan's initial configuration was adapted; no imported dashboard +was represented as an independently authored external template. + +\section{Chapter 5 Final Audit and Automatic Trigger Check} +Date: October 30, 2026; tool: OpenAI Codex. Sergio requested an automatic +application-trigger test, complete Chapter 5 audit and no main merge. A small +application documentation commit was discovered by existing polling; exact +checkout, automatic cause, three passing tests and Gitea success status were +recorded. The audit found and fixed Grafana raw metrics exposure, supplied +missing metric inventory and backup instructions, and checked live cloud rules. +Sergio signed into DigitalOcean and explicitly chose to leave globally allowed +IPv4 SSH unchanged and flag it. Historical acknowledgement timing and genuine +human peer review were not invented. No new outage or restore is claimed. diff --git a/devopsAssignment.tex b/devopsAssignment.tex index dd9521f..1d20f2d 100644 --- a/devopsAssignment.tex +++ b/devopsAssignment.tex @@ -21,6 +21,7 @@ \usepackage{minted} \usepackage{tcolorbox} \usepackage{makeidx} +\usepackage{xurl} \usepackage[colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage[acronym,toc]{glossaries} @@ -37,13 +38,13 @@ % Replace these values for each assignment. \newcommand{\AssignmentTitle}{Group 10 DevOps Project} \newcommand{\AssignmentNumber}{} -\newcommand{\DocumentVersion}{1.9} +\newcommand{\DocumentVersion}{1.11} \newcommand{\DocumentStatus}{Active} \newcommand{\CourseNumber}{SSW 590} \newcommand{\CourseName}{DevOps} \newcommand{\Instructor}{Darian Muresan} \newcommand{\Organization}{Stevens Institute of Technology} -\newcommand{\DocumentDate}{October 13, 2026} +\newcommand{\DocumentDate}{October 30, 2026} \newcommand{\DueDate}{} \newcommand{\VERSION}{Version \DocumentVersion} \input{devopsBuildMetadata.tex} @@ -118,6 +119,7 @@ \include{devopsGitea} \include{devopsGiteaActions} \include{devopsJenkins} +\include{devopsSREMonitoring} \include{devopsActivityBrief} \include{devopsWorkflow} \include{devopsEvidence} @@ -141,4 +143,4 @@ \markboth{Index}{Index} \printindex \end{document} - + diff --git a/devopsDocumentHistory.tex b/devopsDocumentHistory.tex index 72c572c..3c8179e 100644 --- a/devopsDocumentHistory.tex +++ b/devopsDocumentHistory.tex @@ -22,12 +22,27 @@ link each entry to the changed chapter, table, figure, or controlled artifact. \bottomrule \endlastfoot +October 30, 2026 / 1.11 & SE, CDX & +Completed automatic application branch discovery/build/status verification; +closed the public Grafana metrics route; audited all eight Chapter 5 sections, +added the metric inventory, backup procedure, external/cloud firewall checks +and timeline annotations. Retained deferred global SSH and human review gaps; +no main merge. & \ChapterRef{SREMonitoring}, +\hyperref[Table:SREFinalAudit]{rubric audit}\\ +October 30, 2026 / 1.10 & SE, TI, CDX & +Deployed and verified Chapter 5 monitoring on the approved resized host; +recorded the slim-image capacity correction, dashboard, controlled Jenkins +incident, alert receipt, actual SLI, persistence, recovery CI and owned issues. +Fixed workflow indentation and master include; retained human-review gaps and +left main unmerged. & \ChapterRef{SREMonitoring}, +\hyperref[Table:SRETimeline]{incident timeline}, +\hyperref[Table:SREHosts]{hosts and hints}\\ October 13, 2026 / 1.9 & SE, CDX & Completed the corrected Chapter 3 Gitea Actions evidence after SSH access was restored: registered the Windows LaTeX runner, pushed the manual workflow to Gitea, recorded successful main-branch builds, captured a controlled failed build, repaired it, and updated the artifact, runner, traceability, and rubric-status evidence while preserving the Jenkins chapter as Chapter 4 groundwork. & \ChapterRef{GiteaActions}, \hyperref[Table:GiteaActionsRunner]{runner setup}, \hyperref[Table:GiteaActionsRuns]{Actions runs}, \hyperref[Table:GiteaActionsArtifact]{artifact evidence}, -\hyperref[Table:GiteaActionsRemainingWork]{rubric evidence}\\ +\hyperref[Table:GiteaActionsRemainingWork]{rubric evidence}\\ October 12, 2026 / 1.8 & SE, CDX & Added the corrected Chapter 3 Gitea Actions manual-build chapter after comparing the Version 1.18 assignment manual with the earlier Version 1.12 Jenkins-only @@ -109,4 +124,3 @@ submission chapters. & \ChapterRef{AIAgentGuide}\\ \end{tabularx} - diff --git a/devopsGlossary.tex b/devopsGlossary.tex index 946e4b7..5cf1aed 100644 --- a/devopsGlossary.tex +++ b/devopsGlossary.tex @@ -20,7 +20,11 @@ \newglossaryentry{rollback}{name={rollback},description={A controlled return to a known acceptable version or state after a failed or harmful change}} \newglossaryentry{runbook}{name={runbook},description={A documented operational procedure for a repeatable task or incident response}} \newglossaryentry{synonyms}{name={synonyms},description={Equivalent terms used in this assignment; record preferred terms to avoid ambiguity in instructions and evidence}} -\newglossaryentry{giteaactions}{name={Gitea Actions},description={Gitea's built-in workflow automation system for running jobs such as builds and artifact uploads}} -\newglossaryentry{artifact}{name={artifact},description={A build output retained by a workflow run, such as a generated PDF, for later download and review}} -\newglossaryentry{runner}{name={runner},description={A self-managed service that polls Gitea for workflow jobs and executes them in a configured environment}} - +\newglossaryentry{giteaactions}{name={Gitea Actions},description={Gitea's built-in workflow automation system for running jobs such as builds and artifact uploads}} +\newglossaryentry{artifact}{name={artifact},description={A build output retained by a workflow run, such as a generated PDF, for later download and review}} +\newglossaryentry{runner}{name={runner},description={A self-managed service that polls Gitea for workflow jobs and executes them in a configured environment}} + + +\newacronym{sli}{SLI}{service-level indicator} +\newacronym{sla}{SLA}{service-level agreement} +\newglossaryentry{errorbudget}{name={error budget},description={The allowed amount of unsuccessful service observations within a stated objective and window}} diff --git a/devopsReferences.bib b/devopsReferences.bib index 77d2be8..0736ef2 100644 --- a/devopsReferences.bib +++ b/devopsReferences.bib @@ -131,4 +131,18 @@ howpublished = {\url{https://tug.org/texlive/}}, year = {2026}, note = {Accessed October 12, 2026} -} +} + +@misc{PrometheusStorage, + author={{Prometheus Authors}}, title={Storage}, + howpublished={\url{https://prometheus.io/docs/prometheus/latest/storage/}}, + note={Accessed October 30, 2026}} +@misc{GrafanaNoData, + author={{Grafana Labs}}, title={No Data and Error states}, + howpublished={\url{https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rule-evaluation/nodata-and-error-states/}}, + note={Accessed October 30, 2026}} + +@misc{GrafanaBackup, + author={{Grafana Labs}}, title={Back up Grafana}, + howpublished={\url{https://grafana.com/docs/grafana/latest/administration/back-up-grafana/}}, + note={Accessed October 30, 2026}} diff --git a/devopsSREMonitoring.tex b/devopsSREMonitoring.tex new file mode 100644 index 0000000..f34accb --- /dev/null +++ b/devopsSREMonitoring.tex @@ -0,0 +1,545 @@ +\chapter{Introduction to SRE: Monitoring and Reliability} +\ChapterLabel{SREMonitoring} +\index{monitoring}\index{incident review}\index{error budget} + +\section{Deployment and Reproducibility} +\subsection{Scope, baseline, and decisions} +Group 10 deployed four monitoring containers on October 30, 2026, using Turan +Islamli's prepared branch and Sergio Espinal's authorized operational changes. +This report records actual tests, rather than treating configuration as proof. +\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/1}{Implementation issue 1} +records the initial baseline, starting manual commit \path{1df4798a31}, and +preparation/deployment responsibilities. Sergio and Turan are both assigned; +Sergio operates the deployment and Turan is the second team member for final +verification. Formal assignment was corrected during this audit; independent +peer approval is still pending in draft PR 4. +The implementation remains on \path{chapter5-sre-monitoring}; main has not +been merged. Human peer review remains outstanding. + +The Ubuntu 24.04 primary Droplet (165.227.90.215) originally had approximately +458 MiB RAM. An approved snapshot, ID 252241628, was retained before resizing +CPU/RAM to 1 vCPU and 2 GB. The disk remains 10 GB as requested. Its root +filesystem reports 8.7 GiB usable, approximately 7.0 GiB used and 1.8 GiB +available (81\% used). Snapshot existence does not demonstrate a restore. +The primary plan is \$12/month; the separate unchanged 512 MB Droplet costs +\$4/month; the 5.65 GB snapshot is approximately \$0.34/month. Known total: +approximately \$16.34/month before taxes or other usage. Sergio owns these +resources and should remove the snapshot only after deciding it is no longer +needed. No additional paid service was provisioned for monitoring. + +The full Grafana image and optional plugin downloads temporarily exhausted disk +space during installation. Grafana was stopped, only the new full image and +optional downloaded plugin files were removed, and the slim image was used. +The Grafana database and all named volumes were preserved. The resulting image +is approximately 1.23 GB rather than 2 GB. Only the Prometheus plugin 13.2.4 +was installed; automatic plugin preinstallation and updates are disabled. +The retained free-space margin is small and must be monitored. + +\subsection{Versions, storage, and actual topology} +The deployed images are \path{prom/prometheus:v3.15.1}, +\path{grafana/grafana:13.3.0-slim}, +\path{quay.io/prometheus/node-exporter:v1.12.1}, and +\path{quay.io/prometheus/blackbox-exporter:v0.29.1}. Publisher digests +captured with \texttt{docker image inspect} are recorded below. Versions are +pinned in Compose; the digests identify the images actually inspected. + +\begin{figure}[htbp]\centering\small +\fbox{\begin{minipage}{0.94\linewidth}\centering +\textbf{Primary Droplet: Ubuntu 24.04, 1 CPU, 2 GB RAM, 10 GB disk}\\[5pt] +Browser $\xrightarrow{\mathrm{HTTPS}\ 443}$ \fbox{Caddy}\\ +\path{gitea_default} proxy network: Caddy routes by hostname\\[4pt] +\fbox{Gitea :3000}\quad \fbox{Jenkins :8080}\quad +\fbox{Grafana :3000}\\[5pt] +\textbf{Four separate monitoring containers}\\ +\fbox{Grafana} $\xrightarrow{\mathrm{query}}$ \fbox{Prometheus :9090}\\[4pt] +Prometheus $\xrightarrow{\mathrm{scrape\ every\ }30s}$ +\fbox{Node Exporter :9100}\quad host /proc, /sys, /\\[4pt] +Prometheus $\xrightarrow{\mathrm{probe\ request}}$ +\fbox{Blackbox Exporter :9115}\\ +Blackbox $\xrightarrow{\mathrm{TLS}\ 443}$ Caddy +$\rightarrow$ Gitea /user/login and Jenkins /login\\[4pt] +\path{monitoring_monitoring_private}: all four monitoring services\\ +Grafana and Blackbox additionally join \path{gitea_default}.\\ +Grafana $\xrightarrow{\mathrm{outbound\ HTTPS}}$ Discord team alerts\\[4pt] +\textbf{Persistent storage:} Prometheus named volume $\rightarrow$ /prometheus;\\ +Grafana named volume $\rightarrow$ /var/lib/grafana;\\ +existing Gitea /data and Jenkins /var/jenkins\_home retained.\\ +Configuration bind mounts originate in /opt/ssw590-monitoring.\\ +Existing applications remain in /opt/gitea and /opt/jenkins.\\[4pt] +\textbf{CI outside this diagram's metrics:} Windows LaTeX runner polls Gitea;\\ +Jenkins application build executes on the primary controller. +\end{minipage}} +\caption{Actual deployment, October 30, 2026. Internal ports are not public +listeners. Grafana is shown twice to clarify its query role, not as two containers.} +\label{Figure:SRETopology}\end{figure} + +Prometheus retains up to seven days or 512 MB of stored blocks, whichever +limit applies first. WAL/head storage is additional, so this is not a hard +filesystem quota \cite{PrometheusStorage}. Grafana stores its SQLite database +and installed plugin in its named volume. Removing volumes would destroy this +persistence. All four containers use \texttt{unless-stopped} restart policies. + +\subsection{Repeatable operations} +Check out the feature branch and copy the non-secret \path{monitoring/} +directory to \path{/opt/ssw590-monitoring}. Privately supply the admin password, +Grafana root URL, and the current Caddy private IP in a mode-600 \texttt{.env}. +The proxy network must already exist. Confirm its subnet and that +172.18.0.250 is unused before assigning Blackbox's fixed address. Set readable +configuration directories to 755 and non-secret files to 644. Keep the local +Discord provisioning file owned by UID 472, group 0, mode 600. +\begin{lstlisting}[basicstyle=\ttfamily\scriptsize,breaklines=true] +cd /opt/ssw590-monitoring +docker compose config --quiet +docker compose up -d +docker compose exec grafana grafana cli plugins install prometheus 13.2.4 +docker compose restart grafana +docker compose ps +docker exec monitoring-prometheus-1 promtool check config /etc/prometheus/prometheus.yml +\end{lstlisting} +The commands were executed successfully during deployment. For updates, review +image/plugin compatibility and available disk first, retain a backup, validate +configuration, and recreate only the affected service. Do not run +\texttt{down -v}. Recovery starts with \texttt{docker compose up -d}, target +health and logs; restore known-good configuration before escalating to a backup +restore. Reinstall the pinned plugin if rebuilding the Grafana volume. + +\subsection{Inspected publisher digests} +\begin{lstlisting}[basicstyle=\ttfamily\tiny,breaklines=true] +prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 +grafana/grafana@sha256:a66f098dd9b2e1b5a19287ff176db02d895122488c6e39b3dfcd3fb897039225 +quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0 +quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13 +\end{lstlisting} + +\subsection{Backup of state that Git cannot reconstruct} +The retained cloud snapshot predates monitoring. A current monitoring backup +and an isolated restore have not been performed. The operator procedure is +versioned in \path{monitoring/BACKUP-RECOVERY.md}. Arrange a maintenance window, +check capacity, stop Grafana before copying SQLite, and stop Prometheus before +copying its complete data directory. Preserve the two inspected named-volume +paths, ownership and permissions. Protect the local environment, Discord +provisioning and Caddy configuration separately; these contain secrets and +must stay outside Git. Transfer using a binary-safe SSH/archive tool to an +approved encrypted off-host destination, verify checksums, restart in a +finally/trap cleanup path and check historical data plus alert delivery. +The small root disk must not be used to stage an unbounded archive. +Restore into isolated replacement volumes with matching versions/plugin first; +never overwrite the live volumes to demonstrate recovery. This procedure +extends the published Grafana backup guidance \cite{GrafanaBackup}. + +\section{Metrics and Probes} +Prometheus privately scrapes itself, Node Exporter and Blackbox Exporter, plus +two relabeled HTTPS probe targets every 30 seconds. Five \texttt{up} series +were 1 at the verification checkpoint; both \path{probe_success} values +were 1 after recovery. A successful scrape (\texttt{up}) means collection +worked; it does not establish that the application probe succeeded. + +Node Exporter has read-only host-root and proc/sys access. Its +\path{node_memory_MemTotal_bytes} was 2,063,564,800 bytes, consistent +with host \texttt{free}. The root series labels were verified as +\path{device=/dev/vda1}, \path{mountpoint=/}, \texttt{fstype=ext4}, +matching \texttt{df}. This excludes container overlay filesystems. + +The HTTPS module requires HTTP 200, valid certificate verification and a +response before its timeout. Targets are the actual TLS login URLs below. +The exporter resolves both hostnames to Caddy's private 172.18.0.3 address, +retaining their hostname/SNI and TLS verification. This measures the private +proxy/application route; it cannot establish public DNS or external Internet +availability. A shared-host outage also stops its own monitoring. + +\subsection{Metric inventory and host comparison} +\small +\begin{tabularx}{\linewidth}{L{4.0cm}L{2.0cm}Y} +\caption{Required metric inventory\label{Table:SREMetricInventory}}\\ +\toprule Metric & Type / unit & Labels, meaning and limitation\\\midrule +\path{node_cpu_seconds_total} & Counter / seconds & cpu, mode, job, instance. +Cumulative CPU time; rate of idle time gives averaged non-idle percent. +Not per-container attribution.\\ +\path{node_memory_MemAvailable_bytes} & Gauge / bytes & job, instance. +Kernel estimate of memory available to applications, not merely unused RAM.\\ +\path{node_filesystem_avail_bytes}, \path{node_filesystem_size_bytes} & Gauges / bytes & +job, instance, device, mountpoint, fstype. Available/size percent for the verified +root filesystem; do not combine mounts or use overlay data.\\ +\texttt{up} & Generated gauge / 0 or 1 & job, instance. Prometheus collection +health, not application health. A missing sample remains unknown.\\ +\path{probe_success} & Gauge / 0 or 1 & job, instance (HTTPS URL). +Login-page TLS/HTTP probe success; does not prove authenticated operations.\\ +\path{probe_duration_seconds} & Gauge / seconds & job, instance. +Probe duration includes failures/timeouts; not application transaction latency.\\ +\bottomrule\end{tabularx} +\normalsize +At the final audit, \texttt{free -b} reported total memory 2,063,564,800 bytes, +matching Node Exporter exactly. Host available memory was 852,103,168 bytes; +the most recent 30-second scrape reported 890,720,256, reflecting different +sample times while processes ran. \texttt{df -B1 /} and the exporter agreed on root size: +9,283,444,736 bytes. Available space changed from 1,825,554,432 to +1,825,574,912 bytes between observations, a difference of 20,480 bytes. +The raw comparisons and timestamps are retained in +\path{evidence/chapter5/host-metric-comparison.json}. +Node Exporter uses the host PID namespace and read-only host root mounted at +\texttt{/host}, with proc/sys/rootfs flags selecting the host view. This exposes +host metadata for collection; no monitoring container receives the Docker socket. + +\subsection{Sanitized collection and probe configuration} +These are the actual versioned files used in the running deployment: +\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/prometheus/prometheus.yml} +\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/blackbox/blackbox.yml} +Only the final login page is checked; there is no authenticated content test. + +\section{HTTPS and Access Control} +\begin{itemize} +\item Gitea login: \url{https://git.sespinal590.dev/user/login}. +\item Jenkins login: \url{https://ci.165.227.90.215.sslip.io/login}. +\item Grafana: \url{https://metrics.165.227.90.215.sslip.io}. +\end{itemize} +Use the team account for Gitea, the existing administrator's approved Jenkins +access path, and the privately held Grafana admin password. Anonymous Grafana +access and self-registration are disabled; its cookie is secure. No grader +account is required to read the embedded evidence. + +Caddy provides HTTPS and forwards the metrics hostname to +\texttt{grafana:3000}. The existing Jenkins IP restriction was retained with +only Blackbox's 172.18.0.250/32 added. A public 403 from an unapproved source +is expected access denial and is not treated as successful availability. +The exporter obtained 200 from Jenkins through the narrow permitted route. +Caddy's configuration was backed up before modification. +\begin{lstlisting}[basicstyle=\ttfamily\scriptsize,breaklines=true] +# Existing Jenkins allowlist plus the one monitoring address: +remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32 +# Additional HTTPS virtual host: +metrics.165.227.90.215.sslip.io { + @rawMetrics path /metrics /metrics/* + respond @rawMetrics "Raw metrics are private." 403 + reverse_proxy grafana:3000 +} +\end{lstlisting} +The inspected users are Prometheus/Node Exporter \texttt{nobody}, Grafana UID +472, and the Blackbox image default user (empty image user setting, Linux +root by default). Its configuration is read-only and no Docker socket is +mounted. No monitoring service has Compose host-port mappings. External TCP checks from +Sergio's Windows workstation on October 30 could not connect to primary ports +3000, 8080, 9090, 9100 or 9115. HTTPS remained reachable. These are point-in-time +observations from that source, not a universal firewall guarantee. + +\subsection{Final network audit and retained SSH gap} +The signed-in DigitalOcean console confirmed firewall +\texttt{ssw590-gitea-firewall} is attached to the primary Droplet. It permits +TCP 80 and 443 publicly, and TCP 22 from all IPv4 plus an existing operator +/32. Other inbound ports are not allowed; outbound ICMP/TCP/UDP are allowed. +Host UFW is inactive, so protection relies on the cloud firewall, Docker port +mappings and Caddy. IPv6 is not enabled on the Droplet and the host has no +global IPv6 address; external IPv6 checks are therefore not applicable. +\textbf{Open gap: SSH is still globally reachable over IPv4. Sergio explicitly +requested that SSH be left unchanged and flagged.} This inherited policy is +not represented as a restricted SSH configuration. + +The audit found Grafana's unauthenticated raw \texttt{/metrics} route returning +200 through HTTPS. Caddy was backed up, the route was blocked with the matcher +above, and configuration validation/reload passed. The versioned final proxy +configuration is \path{monitoring/Caddyfile}. +From the external Windows workstation at 21:16:31 UTC, TLS-verified +\texttt{curl.exe} checks returned: Gitea login 200, Gitea metrics 404, +Grafana login 200, Grafana raw metrics 403, and restricted Jenkins login 403. +HTTP Gitea login redirected to HTTPS with 308. Socket checks with three-second +timeouts could not connect to ports 3000, 8080, 9090, 9100 or 9115. +These commands and results are retained in +\path{evidence/chapter5/external-access-audit.json}; sanitized cloud rules and +container identities/mounts are retained alongside them. Both private HTTPS +probes and authenticated Grafana queries remained healthy after the proxy fix. + +\begin{tabularx}{\linewidth}{L{3cm}Y} +\caption{Chapter 5 hosts, storage and credential hints\label{Table:SREHosts}}\\ +\toprule Service / owner & Address, exposure, storage or secret handling\\\midrule +Primary / Sergio & 165.227.90.215; Caddy HTTPS 443; SSH for approved operators. +Snapshot retained; monitoring runs here.\\ +Grafana / Sergio & metrics hostname above; private 3000; named Grafana volume. +Admin secret stays in root-owned server .env; never in Git or PDF.\\ +Prometheus / Sergio & Private prometheus:9090; named metrics volume; no user-facing login.\\ +Exporters / Sergio & Private node-exporter:9100 and blackbox-exporter:9115; +read-only configuration/host mounts.\\ +Discord / team & Dedicated Discord integration; secret destination in +\texttt{discord.local.yml} on server only. Rotate via Discord if exposed.\\ +\bottomrule\end{tabularx} +These entries supplement the existing Hosts and Password Hints tables in +\ChapterRef{Gitea}; no credentials are reproduced. + +\section{Dashboard and CI Correlation} +The provisioned dashboard is \textit{Chapter 5 -- SRE Monitoring Overview}, UID +\texttt{sre-overview}, UTC, default one hour, refresh 30 seconds. Its versioned +source is \path{monitoring/grafana/dashboards/sre-overview.json}. The six +panels use the following expressions (each line is one panel's query). +\begin{lstlisting}[basicstyle=\ttfamily\scriptsize,breaklines=true] +100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode="idle",job="node-exporter"}[5m]))) +node_memory_MemAvailable_bytes{job="node-exporter"} +100 * node_filesystem_avail_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"} +probe_success{job="https",instance="https://git.sespinal590.dev/user/login"} +probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"} +probe_duration_seconds{job="https"} +\end{lstlisting} +CPU is the non-idle fraction averaged over CPUs, percent; available RAM is +bytes rendered in GiB/MiB; root availability is percent for the one verified +root mount; service lines are binary 0/1; durations are seconds with separate +Gitea/Jenkins legends. Availability is not an HTTP request error rate for +all users. Whole-host CPU cannot be attributed solely to Jenkins. + +\begin{figure}[p]\centering +\includegraphics[width=\linewidth,height=0.82\textheight,keepaspectratio]{evidence/chapter5/dashboard-live.png} +\caption{Actual Grafana six-panel dashboard, October 30, 2026, UTC. +The Jenkins-only outage is visible while Gitea stays at 1.} +\label{Figure:SREDashboard}\end{figure} + +After recovery, Jenkins \path{startup-product-ci/main} build 3 passed for +commit \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}. +It ran from 20:43:32.534 to 20:43:52.340 UTC (19.806 seconds), on the Jenkins +controller. See \url{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/3/}. +The host measurements immediately before, during and after this build were: +\begin{center}\begin{tabular}{lrr}\toprule +UTC evaluation & CPU (one-minute rate) & Available RAM (MiB)\\\midrule +20:43:00 (before) & 41.57\% & 878.0\\ +20:43:45 (during) & 17.40\% & 863.8\\ +20:44:30 (after) & 17.67\% & 914.5\\\bottomrule +\end{tabular}\end{center} +The short build's CPU peak is not established by these snapshots. They include +Jenkins initialization, monitoring and other work; the 30-second scrape cadence +and one-minute rate smooth the 19.8-second build. The dashboard uses five-minute +CPU smoothing. Available RAM fell slightly during the build and rose afterward, +which is correlation rather than proof of per-container allocation. +The Windows LaTeX workflow executes off-droplet, so its build load is not +measured by these host metrics. + +\section{SLI, SLO, and Error Budget} +An \gls{sli} is a measured indicator; here it is successful HTTPS observations +divided by received observations for a named service and window. The +\gls{slo} is an internal target of at least 99\% success over 24 hours. An +\gls{sla} is a customer agreement that may attach consequences; this lab +establishes no customer SLA. + +\subsection{Required hypothetical example} +These figures are illustrative, not measured lab results. At 30 seconds, +24 hours schedules $24\times60\times2=2880$ probes per service. +Gitea's $2880/2880=100\%$ meets the target. Jenkins's +$2850/2880\times100=98.9583\%$ misses it, with 30 failures. +The theoretical budget is $0.01\times2880=28.8$ failures or +$28.8\times30/60=14.4$ minutes. At most 28 whole failed samples meet 99\%. +Thirty failures exceed the budget by 1.2 samples, approximately 0.6 minutes. + +\subsection{Measured short exercise window} +The actual interval is (20:35:00,20:45:00] UTC on October 30, evaluated at +20:45:00 with a 30-second scrape interval. Queries were +\path{avg_over_time}, \path{count_over_time} and +\path{sum_over_time} of \texttt{probe\_success\{job="https"\}[10m]}. +Multiply the average by 100 for percent. +\begin{center}\begin{tabular}{lrrrr}\toprule +Service & Received / expected & Successes & Failures & Percent\\\midrule +Gitea & 20 / 20 & 20 & 0 & 100\%\\ +Jenkins & 20 / 20 & 13 & 7 & 65\%\\\bottomrule +\end{tabular}\end{center} +Both have 100\% sample coverage in this short window. The services have +different scrape phases, so timestamps differ; no samples were missing in +this interval. Seven failed Jenkins samples correspond to approximately +3.5 minutes under uniform sampling. Actual endpoints transitioned between +scrapes, so sample counts do not provide continuous-time precision. Missing +observations in another window would be unknown, not successes. This exercise +does not establish whether the full 24-hour SLO was met. + +\section{Alerts and Runbooks} +Both Grafana-managed rules have owner \texttt{sespinal}, a 30-second evaluation +interval, summaries and links to \path{monitoring/ALERTING-RUNBOOK.md}. +Service unavailability uses \texttt{probe\_success\{job="https"\}<1}, pending +one minute, severity critical, retaining instance labels. Disk uses the same +verified root percentage as the dashboard, below 15\% for five minutes, +severity warning. Fifteen percent provides a response margin on this small disk. +No-data state is \texttt{NoData}; evaluation errors are \texttt{Error}, rather +than healthy. Grafana creates separate data-source alerts for these conditions +\cite{GrafanaNoData}. The service expression additionally uses a zero-valued fallback from the +matching target \texttt{up} series when its probe series disappears: +\texttt{or on(instance,job) (0 * up\{job="https"\})}. Thus a failed +collection does not silently become a successful probe. Removing a target +from configuration still requires source review; it is not an availability fix. + +\begin{figure}[htbp]\centering +\includegraphics[width=\linewidth]{evidence/chapter5/alerts-recovered.png} +\caption{Actual Grafana group showing both provisioned rules normal after the +tests, October 30, 2026. The rule-state JSON records retain firing transitions.} +\label{Figure:SREAlerts}\end{figure} +Both route through the dedicated Discord integration in contact point +\texttt{team-alerts}. Policy groups by folder and alert name, waits 10 seconds, +uses a 30-second group interval and four-hour repeat interval. Resolved messages +are enabled. The webhook is stored only in server-local provisioning. The +contact test succeeded, and Sergio confirmed its receipt, then confirmed +receipt of both real firing and both resolved notifications. +Sergio reported these Discord display times in New York (EDT, UTC--4): +Jenkins firing 16:40, Jenkins resolved 16:42, disk firing 16:43, disk resolved +16:43. Converted to UTC: 20:40, 20:42, 20:43 and 20:43. These are user-reported +minute-precision receipt records; exact seconds and a separate channel +acknowledgement timestamp were not retained. They cannot establish precise +notification latency and must not replace the higher-resolution server records. + +For HTTPS failures, inspect the instance, \texttt{up}, Blackbox diagnostics, +TLS, Caddy and application state. Keep TLS verification and the Jenkins +allowlist intact; restart only the affected service and verify probe recovery +and CI. For disk, inspect \texttt{df}, Docker images and volume/log growth; +remove only verified disposable material after review. Preserve application +and monitoring volumes. Recheck the filesystem and resolved state. + +The disk test changed only its threshold from 15 to 30\% at 20:37:26.770 UTC. +It reached firing by observation 20:42:57.308, after five minutes pending. +The script's \texttt{finally} block restored 15\% at 20:43:27.486; it was +inactive by 20:43:57.520. No disk-filling workload was used. + +\section{Incident and Recovery} +\subsection{Controlled Jenkins incident and measurements} +The exercise stopped only Jenkins, retaining all volumes and the recovery +command. A 210-second systemd safety timer was installed before stopping it; +the primary script restarted it after approximately three minutes. Gitea, +Caddy and the four monitoring containers remained available during the outage. +All times below are October 30, 2026 UTC. +\begin{tabularx}{\linewidth}{L{3.6cm}Y} +\caption{Observed incident timeline\label{Table:SRETimeline}}\\ +\toprule Time & Event and evidence\\\midrule +20:38:45.484 & Jenkins stop requested; stopped at 20:38:46.995.\\ +20:39:09.110 & First recorded failed Jenkins probe; previous success 20:38:39.110.\\ +20:40:30 evaluation & HTTPS alert firing, observed by polling at 20:40:57.\\ +20:41:47.511 & Restart requested; container started 20:41:47.945.\\ +20:42:09.110 & Probe still failed while Jenkins initialized.\\ +20:42:39.110 & First successful post-outage probe.\\ +20:43:27.344 or earlier & Rule observed inactive; subsequent evaluations stayed normal.\\ +20:43:32.534--52.340 & Recovery pipeline build 3 SUCCESS.\\ +\bottomrule\end{tabularx} +Stop request to first failed sample was 23.626 seconds. First failure to the +20:40:30 firing evaluation was 80.890 seconds, consistent with scrape phase, +30-second evaluation and one-minute pending. Stop request to first recovered +sample was 233.626 seconds; restart request to that sample was 51.599 seconds. +Seven failed probes bound the observed failure period. Discord firing/resolved receipt was confirmed by Sergio at the minute-level +times above. Sub-minute delivery and acknowledgement latencies cannot be +calculated from these records. + +\subsection{Persistence and integration checks} +Prometheus and Grafana were restarted separately without volume deletion. +A historical instant query at 20:40:00 returned Jenkins 0 and Gitea 1 both +before and after the Prometheus restart. Grafana's health returned database OK; +dashboard UID \texttt{sre-overview}, both rules (1m/5m) and the Discord contact +point remained. The retained 30-minute Prometheus self-scrape range contained no adjacent +sample gap greater than 45 seconds around the restart (30-second nominal +cadence). A short restart can fall between scheduled scrapes. The complete +10-minute SLI window above predates the restart. This test demonstrates persistence, not backup +restoration. Raw sanitized records are under \path{evidence/chapter5/}. + +Gitea Actions manual-pdf run 16 (displayed build 12), source +\path{2fc6e8909034bd615fd5f3caffd71f0ef386d18f}, passed in 44 seconds +before final documentation changes: +\url{https://git.sespinal590.dev/group10-startup/devops-it-manual/actions/runs/16}. +The final automated artifact carries build \WorkflowRunNumber{} and source +\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/commit/\SourceRevision}{\SourceRevision{}} in its generated metadata. +Its workflow record is available from +\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/actions}{the repository Actions page}. +Human approval of this source revision is still required. Chapter 4's test/build failure +is different: code can fail a pipeline while Jenkins remains available. +Here the CI server itself was unavailable, so jobs could not execute during +that interval. Retained Chapter 4 records link +\href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/}{failed PR-9 build 1} +(commit \path{35605c33b903742cd13d444a1a14d61b07fbaa86}) and +\href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/}{repaired build 2} +(commit \path{ed8684a2897c407946320183e572f6412dbb7703}, SUCCESS). +Those historical records do not establish current peer-review status. +The recovery build published a fresh success status to Gitea at 20:43:52 UTC, +context \path{startup-product-ci/pipeline/head}, target build 3, matching +commit \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}. +The repository has no configured webhook; its configured periodic repository +scan uses \texttt{* * * * *} (once per minute). The following separate check +verifies automatic discovery rather than claiming webhook delivery. + +\subsection{Automatic application-trigger verification} +A documentation-only commit was published on isolated application branch +\path{codex/chapter5-trigger-check}; application code and the existing +Jenkinsfile were unchanged. The exact commit is +\href{https://git.sespinal590.dev/group10-startup/startup-product/commit/b39613b2d2869065cf363bff36a7b54225cb7438}{b39613b2d2869065cf363bff36a7b54225cb7438}, +created at 21:12:56 UTC (17:12:56 EDT). No Jenkins build or repository scan +was requested manually. Its scheduled scan discovered the branch and started +build 1 at 21:13:17.934; it ended SUCCESS at 21:13:22.127 UTC, 4.193 seconds +later. The retained cause is \path{jenkins.branch.BranchIndexingCause}, with +no manual user cause. Checkout matched the exact commit and all three unit +tests passed on the controller. Gitea received +\path{startup-product-ci/pipeline/head}=success for that commit at 21:13:22. +The observed commit-to-build delay was approximately 22 seconds, consistent +with one-minute polling. This is polling evidence, not a webhook receipt. +The application main remains \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}. +See the \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex\%252Fchapter5-trigger-check/1/}{automatic application build} +and \path{evidence/chapter5/automatic-trigger.json}. Historical incident, +recovery build and automatic build regions were added to the Grafana dashboard +using measured timestamps; \path{dashboard-annotations.json} records them. + +\begin{figure}[p]\centering +\includegraphics[width=\linewidth,height=0.8\textheight,keepaspectratio]{evidence/chapter5/dashboard-annotated.png} +\caption{Actual incident dashboard with measured outage and recovery-build +annotation regions added during the final Chapter 5 audit.} +\label{Figure:SREAnnotations}\end{figure} + +\subsection{Blameless review and owned improvements} +The intended maintenance injection caused the incident. Jenkins initialization +extended user-visible unavailability beyond the stopped-container interval. +Detection worked; Gitea remained successful throughout the measured window; +Jenkins recovered and a normal build passed. No person is blamed for the +capacity issue: the original disk budget was too small for the default image +and optional plugins, and the slim deployment restored a workable margin. + +The current setup shares the failure domain it monitors. It also relies on +Caddy's dynamic private IP, and receiver timestamps were retained only to the minute; a separate +acknowledgement time was not captured. The following owned issues track improvements: +\begin{itemize} +\item \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/2}{Issue 2}, +P1, Sergio (\texttt{sespinal}): add an independent external TLS availability +check; verify notification and recovery without exposing private ports. +\item \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/3}{Issue 3}, +P2, Turan (\texttt{turanisl}): remove fragile proxy-address dependence and +verify coordinated rebuilds, private access, TLS and rollback. +\end{itemize} + +\section{Manual Integration and Traceability} +Source and prepared configuration are retained on the feature branch. +The workflow indentation and master include typo were repaired first. +The final PDF includes the source revision from workflow build metadata. +Use that revision to inspect the exact source, rather than relying only on a +moving branch link. The updated history, service/secret-hints table, glossary, +references and AI log accompany this chapter. + +\paragraph{Review boundary.} +Deployment, rule evaluation, notification receipt, controlled recovery and +persistence have measured evidence. Human peer review and main merge remain +outstanding; main merge is explicitly deferred by Sergio. Receiver timing is limited to user-reported minutes; a separate channel +acknowledgement timestamp was not captured during the incident. The automatic +application trigger is now verified. Public IPv4 SSH is explicitly deferred by +Sergio, and human peer review plus the requested unmerged status remain open. A successful PDF build does not close those gaps. + +\subsection{Final Chapter 5 rubric audit} +This is an evidence audit, not a prediction of the instructor's grade. +\small +\begin{tabularx}{\linewidth}{L{3.5cm}Y} +\caption{Eight-section final audit\label{Table:SREFinalAudit}}\\ +\toprule Requirement & Result and retained boundary\\\midrule +Deployment (15 points) & Four pinned containers, digests, topology, retention, +startup/recovery and persistent volumes verified. Backup procedure supplied; +current-state backup restore not claimed.\\ +Metrics/probes (15) & Five scrapes healthy, host comparison and metric inventory +recorded; both real HTTPS login probes pass. Private-route limitation explicit.\\ +Access control (10) & Authenticated HTTPS, private ports and external tests pass; +public Grafana metrics route fixed. Inherited global IPv4 SSH remains an +explicit user-deferred gap.\\ +Dashboard/CI (15) & Six panels, queries/units, versioned definition and normal +build correlation present; measured timeline annotation regions added.\\ +SLI/SLO (10) & Definitions, hypothetical budget and actual 20-sample-per-service +exercise window present. No full-day SLO claim; full-day collection is optional.\\ +Alerts (15) & Both evaluated/fired/resolved and received in Discord; disk restored +to 15\%. Receiver times are user-reported to the minute, not exact seconds.\\ +Incident (10) & Jenkins-only outage, measured detection/recovery, persistence, +passing recovery build, automatic exact-commit build/status and two owned +improvement issues verified. Separate channel acknowledgement time absent.\\ +Manual/review (10) & Updated version/history, service/secret hints, inventory, +citations, attribution and automated build metadata present. Draft PR 4 is +unmerged; genuine second-member approval is still required.\\ +\bottomrule\end{tabularx} +\normalsize +The user explicitly requested no main merge. Do not close the implementation +issue or present the source as peer-approved until that review occurs. The +remaining human review and deferred SSH policy are recorded openly rather +than being marked complete by automation. diff --git a/evidence/chapter5/CHAPTER5-AUDIT.md b/evidence/chapter5/CHAPTER5-AUDIT.md new file mode 100644 index 0000000..311c2c5 --- /dev/null +++ b/evidence/chapter5/CHAPTER5-AUDIT.md @@ -0,0 +1,25 @@ +# Chapter 5 final audit — 2026-10-30 + +This is an evidence audit against dosManual-V1.42.pdf Chapter 5, not a promised grade. The final updated PDF is the submission artifact; configuration/evidence stays in Gitea. + +| Rubric section | Finding | Evidence | +|---|---|---| +| Deployment / 15 | Implemented: four images/digests, topology, private networks, volumes, retention, startup/recovery and restart persistence; backup procedure documented separately from an unperformed current-state restore. | compose.yaml, image-digests.json, sli-persistence.json, monitoring/BACKUP-RECOVERY.md | +| Metrics and probes / 15 | Implemented: five scrapes healthy; memory/root comparison, metric types/units/labels/limits, actual TLS login probes and explicit internal-route limitations. | host-metric-comparison.json, live-metrics.json, versioned scrape/module files | +| Access / 10 | Grafana public raw metrics route fixed and externally verified. Raw backend/exporter ports unreachable, TLS login behavior checked, no global IPv6. OPEN: inherited All IPv4 SSH retained at explicit user request. | monitoring/Caddyfile, external-access-audit.json, final-access-audit.json, cloud-firewall-audit.json | +| Dashboard / 15 | Six panels with queries/units/legends, normal build metrics, definitions in Git, measured incident/build annotations. | dashboard exports/screenshots, final-validation.json, dashboard-annotations.json | +| SLI/SLO / 10 | Definitions, correct hypothetical 2880-probe arithmetic and measured 10-minute 20/20-coverage window supplied. Full-day collection is optional. | sli-persistence.json, incident-samples.json, monitoring/SLI-SLO.md | +| Alerts / 15 | Both rules fired and resolved, owner/severity/runbooks/no-data/error routing documented, four real Discord messages confirmed with minute-level times; safe threshold test restored 15%. | controlled-tests.json, alert-rules-export.json, discord-receipt.json | +| Incident / 10 | Jenkins-only outage/recovery, persistence, passing recovery build 3, exact-commit automatic polling build 1 and matching Gitea success verified; issues 2/3 owned. Separate channel acknowledgement time was not recorded. | jenkins-incident.json, jenkins-recovery-build.json, automatic-trigger.json, restart-gaps.json | +| Manual / 10 | Version/history/hosts and secret hints/glossary/citations/AI attribution updated; final CI build must match new source metadata. OPEN: genuine peer approval; main merge expressly deferred. | devopsSREMonitoring.tex, draft PR 4 | + +## Automatic application trigger + +Existing one-minute repository scan discovered documentation commit b39613b2d2869065cf363bff36a7b54225cb7438 on codex/chapter5-trigger-check. Build 1 ran 21:13:17.934–21:13:22.127 UTC (17:13 EDT), cause BranchIndexingCause, unchanged pipeline, all three tests passed. Gitea published startup-product-ci/pipeline/head=success for the same SHA. No manual build or scan endpoint was called. The test branch remains isolated; application main is unchanged at 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065. + +## Remaining boundaries + +- User explicitly chose to retain global IPv4 SSH and flag it. No firewall rule was changed. +- Turan's genuine peer review of the final manual source remains required; draft PR 4 and implementation issue 1 remain open, and main must not be merged yet. +- Incident Discord times are user-reported to the minute; a separate channel acknowledgement time was not captured and cannot be reconstructed honestly. +- A monitoring backup/restore procedure is supplied; a new current-state off-host backup/restore was not performed. The previous cloud snapshot predates deployment. diff --git a/evidence/chapter5/README.md b/evidence/chapter5/README.md new file mode 100644 index 0000000..ab0d306 --- /dev/null +++ b/evidence/chapter5/README.md @@ -0,0 +1 @@ +Sanitized actual runtime records from 2026-10-30. UTC throughout. No webhook URLs or credentials are included. dashboard-live.png and alerts-recovered.png are browser captures. JSON files record direct Prometheus/Grafana/Jenkins observations. Receiver delivery was confirmed by Sergio; exact Discord receipt timestamps were not captured. diff --git a/evidence/chapter5/alert-rules-export.json b/evidence/chapter5/alert-rules-export.json new file mode 100644 index 0000000..bfe2843 --- /dev/null +++ b/evidence/chapter5/alert-rules-export.json @@ -0,0 +1,192 @@ +[ + { + "id": 1, + "uid": "sre-https-unavailable", + "orgID": 1, + "folderUID": "bg2th6ik05vr4e", + "ruleGroup": "Chapter 5 SRE Alerts", + "title": "HTTPS Service Unavailable", + "condition": "C", + "data": [ + { + "refId": "A", + "queryType": "", + "relativeTimeRange": { + "from": 300, + "to": 0 + }, + "datasourceUid": "prometheus", + "model": { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "probe_success{job=\"https\"} or on(instance,job) (0 * up{job=\"https\"})", + "instant": true, + "intervalMs": 30000, + "maxDataPoints": 43200, + "refId": "A" + } + }, + { + "refId": "B", + "queryType": "", + "relativeTimeRange": { + "from": 0, + "to": 0 + }, + "datasourceUid": "__expr__", + "model": { + "conditions": [], + "expression": "A", + "intervalMs": 1000, + "maxDataPoints": 43200, + "reducer": "last", + "refId": "B", + "type": "reduce" + } + }, + { + "refId": "C", + "queryType": "", + "relativeTimeRange": { + "from": 0, + "to": 0 + }, + "datasourceUid": "__expr__", + "model": { + "conditions": [ + { + "evaluator": { + "params": [ + 1 + ], + "type": "lt" + } + } + ], + "expression": "B", + "intervalMs": 1000, + "maxDataPoints": 43200, + "refId": "C", + "type": "threshold" + } + } + ], + "updated": "2026-10-30T20:51:37Z", + "noDataState": "NoData", + "execErrState": "Error", + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "provenance": "file", + "isPaused": false, + "notification_settings": null, + "record": null, + "for": "1m", + "keep_firing_for": "0s" + }, + { + "id": 2, + "uid": "sre-root-disk-low", + "orgID": 1, + "folderUID": "bg2th6ik05vr4e", + "ruleGroup": "Chapter 5 SRE Alerts", + "title": "Host Root Disk Space Low", + "condition": "C", + "data": [ + { + "refId": "A", + "queryType": "", + "relativeTimeRange": { + "from": 300, + "to": 0 + }, + "datasourceUid": "prometheus", + "model": { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "instant": true, + "intervalMs": 30000, + "maxDataPoints": 43200, + "refId": "A" + } + }, + { + "refId": "B", + "queryType": "", + "relativeTimeRange": { + "from": 0, + "to": 0 + }, + "datasourceUid": "__expr__", + "model": { + "conditions": [], + "expression": "A", + "intervalMs": 1000, + "maxDataPoints": 43200, + "reducer": "last", + "refId": "B", + "type": "reduce" + } + }, + { + "refId": "C", + "queryType": "", + "relativeTimeRange": { + "from": 0, + "to": 0 + }, + "datasourceUid": "__expr__", + "model": { + "conditions": [ + { + "evaluator": { + "params": [ + 15 + ], + "type": "lt" + } + } + ], + "expression": "B", + "intervalMs": 1000, + "maxDataPoints": 43200, + "refId": "C", + "type": "threshold" + } + } + ], + "updated": "2026-10-30T20:51:37Z", + "noDataState": "NoData", + "execErrState": "Error", + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "provenance": "file", + "isPaused": false, + "notification_settings": null, + "record": null, + "for": "5m", + "keep_firing_for": "0s" + } +] \ No newline at end of file diff --git a/evidence/chapter5/alerts-recovered.png b/evidence/chapter5/alerts-recovered.png new file mode 100644 index 0000000..022ca54 Binary files /dev/null and b/evidence/chapter5/alerts-recovered.png differ diff --git a/evidence/chapter5/automatic-trigger.json b/evidence/chapter5/automatic-trigger.json new file mode 100644 index 0000000..ed5bb58 --- /dev/null +++ b/evidence/chapter5/automatic-trigger.json @@ -0,0 +1,48 @@ +{ + "expected_commit": "b39613b2d2869065cf363bff36a7b54225cb7438", + "observations": [ + { + "observed_at": "2026-10-30T21:13:34.396722+00:00", + "number": 1, + "building": false, + "result": "SUCCESS" + } + ], + "build": { + "number": 1, + "url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/", + "result": "SUCCESS", + "timestamp": 1793394797934, + "duration": 4193 + }, + "revisions": [ + "b39613b2d2869065cf363bff36a7b54225cb7438" + ], + "causes": [ + { + "_class": "jenkins.branch.BranchIndexingCause", + "shortDescription": "Branch indexing" + } + ], + "console_excerpt": [ + "Branch indexing", + "Running on Jenkins in /var/jenkins_home/workspace/_ci_codex_chapter5-trigger-check", + "Checking out Revision b39613b2d2869065cf363bff36a7b54225cb7438 (codex/chapter5-trigger-check)", + "Commit message: \"Document Chapter 5 monitoring handoff and automatic trigger check\"", + "Ran 3 tests in 0.000s", + "OK", + "Finished: SUCCESS" + ], + "gitea_status": { + "state": "success", + "sha": "b39613b2d2869065cf363bff36a7b54225cb7438", + "statuses": [ + { + "status": "success", + "context": "startup-product-ci/pipeline/head", + "target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/display/redirect", + "created_at": "2026-10-30T21:13:22Z" + } + ] + } +} \ No newline at end of file diff --git a/evidence/chapter5/automatic-trigger.png b/evidence/chapter5/automatic-trigger.png new file mode 100644 index 0000000..015fbfd Binary files /dev/null and b/evidence/chapter5/automatic-trigger.png differ diff --git a/evidence/chapter5/cloud-firewall-audit.json b/evidence/chapter5/cloud-firewall-audit.json new file mode 100644 index 0000000..8dfe676 --- /dev/null +++ b/evidence/chapter5/cloud-firewall-audit.json @@ -0,0 +1,43 @@ +{ + "observed_on": "2026-10-30", + "source": "Signed-in DigitalOcean firewall Rules and Droplets UI", + "firewall_id": "dc253da0-adff-4549-b4d1-ce3cb509914b", + "firewall_name": "ssw590-gitea-firewall", + "attached_droplet": { + "id": 604497684, + "name": "sergio-ssw590-gitea", + "public_ipv4": "165.227.90.215", + "size_display": "2 GB / 10 GB / NYC1" + }, + "inbound": [ + { + "tcp": 22, + "sources": [ + "All IPv4", + "existing operator /32 (redacted)" + ] + }, + { + "tcp": 80, + "sources": [ + "All IPv4", + "All IPv6" + ] + }, + { + "tcp": 443, + "sources": [ + "All IPv4", + "All IPv6" + ] + } + ], + "outbound": [ + "ICMP all IPv4/IPv6", + "TCP all ports IPv4/IPv6", + "UDP all ports IPv4/IPv6" + ], + "host_ufw": "inactive", + "public_ipv6": "not enabled on droplet; no global host IPv6 address", + "ssh_decision": "User explicitly requested leave SSH unchanged and flag it; no firewall rule modified." +} \ No newline at end of file diff --git a/evidence/chapter5/controlled-tests.json b/evidence/chapter5/controlled-tests.json new file mode 100644 index 0000000..fbb35d5 --- /dev/null +++ b/evidence/chapter5/controlled-tests.json @@ -0,0 +1,1478 @@ +[ + { + "time": "2026-10-30T20:37:26.637600+00:00", + "event": "baseline", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:37:26.769089+00:00", + "event": "disk threshold temporarily 30 percent", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:37:56.799994+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:38:26.830355+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:38:56.860339+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:39:26.892953+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:39:56.927413+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:39:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:40:26.988811+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:39:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:40:57.027119+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:41:27.061214+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:41:57.180545+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:42:27.266616+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "pending", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:42:57.304674+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:43:27.341471+00:00", + "event": "disk evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:43:27.483285+00:00", + "event": "disk threshold restored to 15 percent", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "firing", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:43:57.517169+00:00", + "event": "disk resolution evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:30Z", + "value": "" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:44:27.550012+00:00", + "event": "disk resolution evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:30Z", + "value": "" + } + ] + } + ] + }, + { + "time": "2026-10-30T20:44:57.581048+00:00", + "event": "disk resolution evaluation", + "rules": [ + { + "name": "HTTPS Service Unavailable", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ] + }, + { + "name": "Host Root Disk Space Low", + "health": "ok", + "state": "inactive", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:30Z", + "value": "" + } + ] + } + ] + } +] \ No newline at end of file diff --git a/evidence/chapter5/dashboard-annotated.png b/evidence/chapter5/dashboard-annotated.png new file mode 100644 index 0000000..1b84f87 Binary files /dev/null and b/evidence/chapter5/dashboard-annotated.png differ diff --git a/evidence/chapter5/dashboard-annotations.json b/evidence/chapter5/dashboard-annotations.json new file mode 100644 index 0000000..6b7ef0e --- /dev/null +++ b/evidence/chapter5/dashboard-annotations.json @@ -0,0 +1,53 @@ +[ + { + "request": { + "time": 1793392725484, + "timeEnd": 1793392959110, + "tags": [ + "chapter5", + "controlled-exercise" + ], + "text": "Jenkins-only controlled outage: stop request to first recovered HTTPS probe. UTC. See Chapter 5 incident timeline.", + "dashboardUID": "sre-overview", + "dashboardId": 4065061988397056 + }, + "result": { + "id": 10, + "message": "Annotation added" + } + }, + { + "request": { + "time": 1793393012534, + "timeEnd": 1793393032340, + "tags": [ + "chapter5", + "normal-build" + ], + "text": "Jenkins main recovery build 3 SUCCESS, commit 6cfac4ec1e. Controller execution.", + "dashboardUID": "sre-overview", + "dashboardId": 4065061988397056 + }, + "result": { + "id": 11, + "message": "Annotation added" + } + }, + { + "request": { + "time": 1793394797934, + "timeEnd": 1793394802127, + "tags": [ + "chapter5", + "automatic-trigger" + ], + "text": "Automatic branch-indexing build 1 SUCCESS; codex/chapter5-trigger-check; commit b39613b2d2869065cf363bff36a7b54225cb7438; three tests passed.", + "dashboardUID": "sre-overview", + "dashboardId": 4065061988397056 + }, + "result": { + "id": 12, + "message": "Annotation added" + } + } +] \ No newline at end of file diff --git a/evidence/chapter5/dashboard-export.json b/evidence/chapter5/dashboard-export.json new file mode 100644 index 0000000..4bbe5fb --- /dev/null +++ b/evidence/chapter5/dashboard-export.json @@ -0,0 +1,296 @@ +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "chapter-5-sre-monitoring-overview", + "url": "/d/sre-overview/chapter-5-sre-monitoring-overview", + "expires": "0001-01-01T00:00:00Z", + "created": "2026-10-30T19:37:56Z", + "updated": "2026-10-30T19:37:56Z", + "updatedBy": "Anonymous", + "createdBy": "Anonymous", + "version": 1, + "hasAcl": false, + "isFolder": false, + "apiVersion": "v0alpha1", + "folderId": 4065061318705152, + "folderUid": "bg2th6ik05vr4e", + "folderTitle": "SRE Monitoring", + "folderUrl": "/dashboards/f/bg2th6ik05vr4e/sre-monitoring", + "provisioned": true, + "provisionedExternalId": "sre-overview.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + } + }, + "dashboard": { + "annotations": { + "list": [] + }, + "id": 4065061988397056, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "max": 100, + "min": 0, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[5m])))", + "legendFormat": "CPU used", + "refId": "A" + } + ], + "title": "Host CPU Utilization (%)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "node_memory_MemAvailable_bytes{job=\"node-exporter\"}", + "legendFormat": "Available RAM", + "refId": "A" + } + ], + "title": "Host Available RAM", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "max": 100, + "min": 0, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 3, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "legendFormat": "Root disk available", + "refId": "A" + } + ], + "title": "Root Disk Available (%)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "decimals": 0, + "max": 1, + "min": 0 + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 4, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "probe_success{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}", + "legendFormat": "Gitea HTTPS success", + "refId": "A" + } + ], + "title": "Gitea HTTPS Availability", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "decimals": 0, + "max": 1, + "min": 0 + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 5, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "probe_success{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}", + "legendFormat": "Jenkins HTTPS success", + "refId": "A" + } + ], + "title": "Jenkins HTTPS Availability", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "min": 0, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 6, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}", + "legendFormat": "Gitea", + "refId": "A" + }, + { + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}", + "legendFormat": "Jenkins", + "refId": "B" + } + ], + "title": "HTTPS Response Time (seconds)", + "type": "timeseries" + } + ], + "refresh": "30s", + "schemaVersion": 39, + "tags": [ + "sre", + "chapter5", + "monitoring" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timezone": "utc", + "title": "Chapter 5 - SRE Monitoring Overview", + "uid": "sre-overview", + "version": 1 + } +} \ No newline at end of file diff --git a/evidence/chapter5/dashboard-live.png b/evidence/chapter5/dashboard-live.png new file mode 100644 index 0000000..906d1c2 Binary files /dev/null and b/evidence/chapter5/dashboard-live.png differ diff --git a/evidence/chapter5/discord-receipt.json b/evidence/chapter5/discord-receipt.json new file mode 100644 index 0000000..fb14af6 --- /dev/null +++ b/evidence/chapter5/discord-receipt.json @@ -0,0 +1,14 @@ +{ + "source": "Sergio confirmation in chat; timestamps read from Discord", + "date": "2026-10-30", + "timezone": "America/New_York (EDT, UTC-4)", + "precision": "minute; no exact seconds or separate channel acknowledgement recorded", + "jenkins_firing_local": "16:40", + "jenkins_resolved_local": "16:42", + "disk_firing_local": "16:43", + "disk_resolved_local": "16:43", + "jenkins_firing_utc": "20:40", + "jenkins_resolved_utc": "20:42", + "disk_firing_utc": "20:43", + "disk_resolved_utc": "20:43" +} \ No newline at end of file diff --git a/evidence/chapter5/external-access-audit.json b/evidence/chapter5/external-access-audit.json new file mode 100644 index 0000000..bfa52e6 --- /dev/null +++ b/evidence/chapter5/external-access-audit.json @@ -0,0 +1,64 @@ +{ + "captured_at": "2026-10-30T21:16:31.703076+00:00", + "source": "Sergio Windows workstation, outside primary droplet", + "http": [ + { + "url": "https://git.sespinal590.dev/user/login", + "exit": 0, + "result": "200 ", + "error": "" + }, + { + "url": "https://git.sespinal590.dev/metrics", + "exit": 0, + "result": "404 ", + "error": "" + }, + { + "url": "https://ci.165.227.90.215.sslip.io/login", + "exit": 0, + "result": "403 ", + "error": "" + }, + { + "url": "https://metrics.165.227.90.215.sslip.io/login", + "exit": 0, + "result": "200 ", + "error": "" + }, + { + "url": "https://metrics.165.227.90.215.sslip.io/metrics", + "exit": 0, + "result": "403 ", + "error": "" + }, + { + "url": "http://git.sespinal590.dev/user/login", + "exit": 0, + "result": "308 https://git.sespinal590.dev/user/login", + "error": "" + } + ], + "tcp": [ + { + "port": 3000, + "reachable": false + }, + { + "port": 8080, + "reachable": false + }, + { + "port": 9090, + "reachable": false + }, + { + "port": 9100, + "reachable": false + }, + { + "port": 9115, + "reachable": false + } + ] +} \ No newline at end of file diff --git a/evidence/chapter5/final-access-audit.json b/evidence/chapter5/final-access-audit.json new file mode 100644 index 0000000..ab8600b --- /dev/null +++ b/evidence/chapter5/final-access-audit.json @@ -0,0 +1,122 @@ +{ + "captured_at": "2026-10-30T21:14:45.733137+00:00", + "https://git.sespinal590.dev/user/login": { + "status": 200, + "content_type": "text/html; charset=utf-8" + }, + "https://git.sespinal590.dev/metrics": { + "status": 404 + }, + "https://ci.165.227.90.215.sslip.io/login": { + "status": 403 + }, + "https://ci.165.227.90.215.sslip.io/prometheus/": { + "status": 403 + }, + "https://metrics.165.227.90.215.sslip.io/login": { + "status": 200, + "content_type": "text/html; charset=UTF-8" + }, + "https://metrics.165.227.90.215.sslip.io/metrics": { + "status": 403 + }, + "global_ipv6": "", + "ufw_status": "Status: inactive\n", + "monitoring-prometheus-1": { + "user": "nobody", + "mounts": [ + { + "source": "/var/lib/docker/volumes/monitoring_prometheus_data/_data", + "destination": "/prometheus", + "rw": true + }, + { + "source": "/opt/ssw590-monitoring/prometheus/prometheus.yml", + "destination": "/etc/prometheus/prometheus.yml", + "rw": false + } + ], + "ports": { + "9090/tcp": null + }, + "restart_policy": { + "Name": "unless-stopped", + "MaximumRetryCount": 0 + }, + "networks": [ + "monitoring_monitoring_private" + ] + }, + "monitoring-grafana-1": { + "user": "472", + "mounts": [ + { + "source": "/opt/ssw590-monitoring/grafana/provisioning", + "destination": "/etc/grafana/provisioning", + "rw": false + }, + { + "source": "/var/lib/docker/volumes/monitoring_grafana_data/_data", + "destination": "/var/lib/grafana", + "rw": true + }, + { + "source": "/opt/ssw590-monitoring/grafana/dashboards", + "destination": "/var/lib/grafana/dashboards", + "rw": false + } + ], + "ports": { + "3000/tcp": null + }, + "restart_policy": { + "Name": "unless-stopped", + "MaximumRetryCount": 0 + }, + "networks": [ + "gitea_default", + "monitoring_monitoring_private" + ] + }, + "monitoring-node-exporter-1": { + "user": "nobody", + "mounts": [ + { + "source": "/", + "destination": "/host", + "rw": false + } + ], + "ports": { + "9100/tcp": null + }, + "restart_policy": { + "Name": "unless-stopped", + "MaximumRetryCount": 0 + }, + "networks": [ + "monitoring_monitoring_private" + ] + }, + "monitoring-blackbox-exporter-1": { + "user": "", + "mounts": [ + { + "source": "/opt/ssw590-monitoring/blackbox/blackbox.yml", + "destination": "/etc/blackbox/blackbox.yml", + "rw": false + } + ], + "ports": { + "9115/tcp": null + }, + "restart_policy": { + "Name": "unless-stopped", + "MaximumRetryCount": 0 + }, + "networks": [ + "gitea_default", + "monitoring_monitoring_private" + ] + } +} \ No newline at end of file diff --git a/evidence/chapter5/final-health-check.json b/evidence/chapter5/final-health-check.json new file mode 100644 index 0000000..24b1a24 --- /dev/null +++ b/evidence/chapter5/final-health-check.json @@ -0,0 +1,49 @@ +{ + "health": { + "database": "ok", + "version": "13.3.0", + "commit": "6f8ce3c693b493043ebcd4787566d2b6b118b0f0" + }, + "datasources": [ + { + "uid": "prometheus", + "url": "http://prometheus:9090" + } + ], + "dashboard_panels": 6, + "rules": [ + { + "uid": "sre-https-unavailable", + "title": "HTTPS Service Unavailable", + "for": "1m", + "noDataState": "NoData", + "execErrState": "Error", + "threshold": [ + 1 + ] + }, + { + "uid": "sre-root-disk-low", + "title": "Host Root Disk Space Low", + "for": "5m", + "noDataState": "NoData", + "execErrState": "Error", + "threshold": [ + 15 + ] + } + ], + "rule_states": [ + [ + "HTTPS Service Unavailable", + "inactive", + "ok" + ], + [ + "Host Root Disk Space Low", + "inactive", + "ok" + ] + ], + "annotations": 3 +} \ No newline at end of file diff --git a/evidence/chapter5/final-validation.json b/evidence/chapter5/final-validation.json new file mode 100644 index 0000000..4515bc1 --- /dev/null +++ b/evidence/chapter5/final-validation.json @@ -0,0 +1,170 @@ +{ + "2026-10-30T20:43:00Z": { + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793392980, + "41.56666666666449" + ] + } + ] + } + }, + "node_memory_MemAvailable_bytes{job=\"node-exporter\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemAvailable_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793392980, + "920629248" + ] + } + ] + } + } + }, + "2026-10-30T20:43:45Z": { + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793393025, + "17.400000000000848" + ] + } + ] + } + }, + "node_memory_MemAvailable_bytes{job=\"node-exporter\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemAvailable_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793393025, + "905736192" + ] + } + ] + } + } + }, + "2026-10-30T20:44:30Z": { + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793393070, + "17.666666666664245" + ] + } + ] + } + }, + "node_memory_MemAvailable_bytes{job=\"node-exporter\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemAvailable_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793393070, + "849772544" + ] + } + ] + } + } + }, + "fallback_normal": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393516.365, + "1" + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393516.365, + "1" + ] + } + ] + } + }, + "fallback_absent_simulated": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393516.533, + "0" + ] + }, + { + "metric": { + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393516.533, + "0" + ] + } + ] + } + }, + "compose_check": 0, + "promtool": "Checking /etc/prometheus/prometheus.yml\n SUCCESS: /etc/prometheus/prometheus.yml is valid prometheus config file syntax\n\n" +} \ No newline at end of file diff --git a/evidence/chapter5/gitea-recovery-status.json b/evidence/chapter5/gitea-recovery-status.json new file mode 100644 index 0000000..ec6702e --- /dev/null +++ b/evidence/chapter5/gitea-recovery-status.json @@ -0,0 +1,13 @@ +{ + "state": "success", + "sha": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "statuses": [ + { + "status": "success", + "target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/3/display/redirect", + "context": "startup-product-ci/pipeline/head", + "created_at": "2026-10-30T20:43:52Z", + "updated_at": "2026-10-30T20:43:52Z" + } + ] +} \ No newline at end of file diff --git a/evidence/chapter5/host-metric-comparison.json b/evidence/chapter5/host-metric-comparison.json new file mode 100644 index 0000000..d061ffd --- /dev/null +++ b/evidence/chapter5/host-metric-comparison.json @@ -0,0 +1,213 @@ +{ + "captured_at": "2026-10-30T21:18:38.979555+00:00", + "host_free_b": " total used free shared buff/cache available\nMem: 2063564800 1211461632 147107840 3719168 886272000 852103168\nSwap: 1073737728 100024320 973713408\n", + "host_df_B1_root": "Filesystem 1B-blocks Used Available Use% Mounted on\n/dev/vda1 9283444736 7441113088 1825554432 81% /\n", + "node_memory_MemTotal_bytes": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemTotal_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793395119.134, + "2063564800" + ] + } + ] + } + }, + "node_memory_MemAvailable_bytes": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemAvailable_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793395119.283, + "890720256" + ] + } + ] + } + }, + "node_filesystem_size_bytes{mountpoint=\"/\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_filesystem_size_bytes", + "device": "/dev/vda1", + "fstype": "ext4", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/" + }, + "value": [ + 1793395119.412, + "9283444736" + ] + } + ] + } + }, + "node_filesystem_avail_bytes{mountpoint=\"/\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_filesystem_avail_bytes", + "device": "/dev/vda1", + "fstype": "ext4", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/" + }, + "value": [ + 1793395119.532, + "1825574912" + ] + } + ] + } + }, + "up": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "up", + "instance": "prometheus:9090", + "job": "prometheus" + }, + "value": [ + 1793395119.647, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793395119.647, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793395119.647, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793395119.647, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "blackbox-exporter:9115", + "job": "blackbox-exporter" + }, + "value": [ + 1793395119.647, + "1" + ] + } + ] + } + }, + "probe_success": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793395119.759, + "1" + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793395119.759, + "1" + ] + } + ] + } + }, + "probe_duration_seconds": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_duration_seconds", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793395119.879, + "0.069309989" + ] + }, + { + "metric": { + "__name__": "probe_duration_seconds", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793395119.879, + "0.025185514" + ] + } + ] + } + }, + "docker_stats": "monitoring-grafana-1 CPU=1.12% MEM=172.5MiB / 1.922GiB\nmonitoring-prometheus-1 CPU=0.39% MEM=101.7MiB / 1.922GiB\nmonitoring-node-exporter-1 CPU=0.00% MEM=10.57MiB / 1.922GiB\nmonitoring-blackbox-exporter-1 CPU=0.00% MEM=14.8MiB / 1.922GiB\njenkins CPU=0.17% MEM=414.8MiB / 1.922GiB\ncaddy CPU=0.00% MEM=50.93MiB / 1.922GiB\ngitea CPU=2.74% MEM=145.3MiB / 1.922GiB\n", + "docker_version": "29.8.1", + "compose_version": "5.5.1" +} \ No newline at end of file diff --git a/evidence/chapter5/image-digests.json b/evidence/chapter5/image-digests.json new file mode 100644 index 0000000..3c0f93a --- /dev/null +++ b/evidence/chapter5/image-digests.json @@ -0,0 +1,38 @@ +[ + { + "tags": [ + "prom/prometheus:v3.15.1" + ], + "digests": [ + "prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2" + ], + "architecture": "amd64" + }, + { + "tags": [ + "grafana/grafana:13.3.0-slim" + ], + "digests": [ + "grafana/grafana@sha256:a66f098dd9b2e1b5a19287ff176db02d895122488c6e39b3dfcd3fb897039225" + ], + "architecture": "amd64" + }, + { + "tags": [ + "quay.io/prometheus/node-exporter:v1.12.1" + ], + "digests": [ + "quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0" + ], + "architecture": "amd64" + }, + { + "tags": [ + "quay.io/prometheus/blackbox-exporter:v0.29.1" + ], + "digests": [ + "quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13" + ], + "architecture": "amd64" + } +] \ No newline at end of file diff --git a/evidence/chapter5/incident-samples.json b/evidence/chapter5/incident-samples.json new file mode 100644 index 0000000..19f3ff6 --- /dev/null +++ b/evidence/chapter5/incident-samples.json @@ -0,0 +1,597 @@ +{ + "probe_success{job=\"https\"}[10m] @ 2026-10-30T20:38:00Z": { + "status": "success", + "data": { + "resultType": "matrix", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "values": [ + [ + 1793392089.11, + "1" + ], + [ + 1793392119.11, + "1" + ], + [ + 1793392149.11, + "1" + ], + [ + 1793392179.11, + "1" + ], + [ + 1793392209.11, + "1" + ], + [ + 1793392239.11, + "1" + ], + [ + 1793392269.11, + "1" + ], + [ + 1793392299.11, + "1" + ], + [ + 1793392329.11, + "1" + ], + [ + 1793392359.11, + "1" + ], + [ + 1793392389.11, + "1" + ], + [ + 1793392419.11, + "1" + ], + [ + 1793392449.11, + "1" + ], + [ + 1793392479.11, + "1" + ], + [ + 1793392509.11, + "1" + ], + [ + 1793392539.11, + "1" + ], + [ + 1793392569.11, + "1" + ], + [ + 1793392599.11, + "1" + ], + [ + 1793392629.11, + "1" + ], + [ + 1793392659.11, + "1" + ] + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "values": [ + [ + 1793392106.948, + "1" + ], + [ + 1793392136.948, + "1" + ], + [ + 1793392166.948, + "1" + ], + [ + 1793392196.948, + "1" + ], + [ + 1793392226.948, + "1" + ], + [ + 1793392256.948, + "1" + ], + [ + 1793392286.948, + "1" + ], + [ + 1793392316.948, + "1" + ], + [ + 1793392346.948, + "1" + ], + [ + 1793392376.948, + "1" + ], + [ + 1793392406.948, + "1" + ], + [ + 1793392436.948, + "1" + ], + [ + 1793392466.948, + "1" + ], + [ + 1793392496.948, + "1" + ], + [ + 1793392526.948, + "1" + ], + [ + 1793392556.948, + "1" + ], + [ + 1793392586.948, + "1" + ], + [ + 1793392616.948, + "1" + ], + [ + 1793392646.948, + "1" + ], + [ + 1793392676.948, + "1" + ] + ] + } + ] + } + }, + "probe_success{job=\"https\"}[10m] @ 2026-10-30T20:44:00Z": { + "status": "success", + "data": { + "resultType": "matrix", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "values": [ + [ + 1793392449.11, + "1" + ], + [ + 1793392479.11, + "1" + ], + [ + 1793392509.11, + "1" + ], + [ + 1793392539.11, + "1" + ], + [ + 1793392569.11, + "1" + ], + [ + 1793392599.11, + "1" + ], + [ + 1793392629.11, + "1" + ], + [ + 1793392659.11, + "1" + ], + [ + 1793392689.11, + "1" + ], + [ + 1793392719.11, + "1" + ], + [ + 1793392749.11, + "0" + ], + [ + 1793392779.11, + "0" + ], + [ + 1793392809.11, + "0" + ], + [ + 1793392839.11, + "0" + ], + [ + 1793392869.11, + "0" + ], + [ + 1793392899.11, + "0" + ], + [ + 1793392929.11, + "0" + ], + [ + 1793392959.11, + "1" + ], + [ + 1793392989.11, + "1" + ], + [ + 1793393019.11, + "1" + ] + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "values": [ + [ + 1793392466.948, + "1" + ], + [ + 1793392496.948, + "1" + ], + [ + 1793392526.948, + "1" + ], + [ + 1793392556.948, + "1" + ], + [ + 1793392586.948, + "1" + ], + [ + 1793392616.948, + "1" + ], + [ + 1793392646.948, + "1" + ], + [ + 1793392676.948, + "1" + ], + [ + 1793392706.948, + "1" + ], + [ + 1793392736.948, + "1" + ], + [ + 1793392766.948, + "1" + ], + [ + 1793392796.948, + "1" + ], + [ + 1793392826.948, + "1" + ], + [ + 1793392856.948, + "1" + ], + [ + 1793392886.948, + "1" + ], + [ + 1793392916.948, + "1" + ], + [ + 1793392946.948, + "1" + ], + [ + 1793392976.948, + "1" + ], + [ + 1793393006.948, + "1" + ], + [ + 1793393036.948, + "1" + ] + ] + } + ] + } + }, + "probe_success{job=\"https\"}[10m] @ 2026-10-30T20:46:00Z": { + "status": "success", + "data": { + "resultType": "matrix", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "values": [ + [ + 1793392569.11, + "1" + ], + [ + 1793392599.11, + "1" + ], + [ + 1793392629.11, + "1" + ], + [ + 1793392659.11, + "1" + ], + [ + 1793392689.11, + "1" + ], + [ + 1793392719.11, + "1" + ], + [ + 1793392749.11, + "0" + ], + [ + 1793392779.11, + "0" + ], + [ + 1793392809.11, + "0" + ], + [ + 1793392839.11, + "0" + ], + [ + 1793392869.11, + "0" + ], + [ + 1793392899.11, + "0" + ], + [ + 1793392929.11, + "0" + ], + [ + 1793392959.11, + "1" + ], + [ + 1793392989.11, + "1" + ], + [ + 1793393019.11, + "1" + ], + [ + 1793393049.11, + "1" + ], + [ + 1793393079.11, + "1" + ], + [ + 1793393109.11, + "1" + ], + [ + 1793393139.109, + "1" + ] + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "values": [ + [ + 1793392586.948, + "1" + ], + [ + 1793392616.948, + "1" + ], + [ + 1793392646.948, + "1" + ], + [ + 1793392676.948, + "1" + ], + [ + 1793392706.948, + "1" + ], + [ + 1793392736.948, + "1" + ], + [ + 1793392766.948, + "1" + ], + [ + 1793392796.948, + "1" + ], + [ + 1793392826.948, + "1" + ], + [ + 1793392856.948, + "1" + ], + [ + 1793392886.948, + "1" + ], + [ + 1793392916.948, + "1" + ], + [ + 1793392946.948, + "1" + ], + [ + 1793392976.948, + "1" + ], + [ + 1793393006.948, + "1" + ], + [ + 1793393036.948, + "1" + ], + [ + 1793393066.948, + "1" + ], + [ + 1793393096.948, + "1" + ] + ] + } + ] + } + }, + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m]))) @ 2026-10-30T20:38:00Z": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793392680, + "11.866666666668003" + ] + } + ] + } + }, + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m]))) @ 2026-10-30T20:44:00Z": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793393040, + "70.63333333333503" + ] + } + ] + } + }, + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m]))) @ 2026-10-30T20:46:00Z": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793393160, + "46.43333333333127" + ] + } + ] + } + } +} \ No newline at end of file diff --git a/evidence/chapter5/jenkins-incident.json b/evidence/chapter5/jenkins-incident.json new file mode 100644 index 0000000..65e406a --- /dev/null +++ b/evidence/chapter5/jenkins-incident.json @@ -0,0 +1,3844 @@ +[ + { + "time": "2026-10-30T20:38:45.431014+00:00", + "event": "baseline", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.006972282, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "inactive": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829 + } + ] + }, + { + "time": "2026-10-30T20:38:45.483851+00:00", + "event": "Jenkins stop requested", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.006972282, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "inactive": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829 + } + ] + }, + { + "time": "2026-10-30T20:38:46.994864+00:00", + "event": "Jenkins stopped", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.006972282, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "inactive": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829 + } + ] + }, + { + "time": "2026-10-30T20:39:02.040553+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:00Z", + "evaluationTime": 0.010866323, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "inactive": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:38:30Z", + "evaluationTime": 0.005201829 + } + ] + }, + { + "time": "2026-10-30T20:39:17.072140+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:00Z", + "evaluationTime": 0.010866323, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:00Z", + "evaluationTime": 0.009728203, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "inactive": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:39:00Z", + "evaluationTime": 0.009728203 + } + ] + }, + { + "time": "2026-10-30T20:39:32.100442+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "pending", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:39:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 1, + "pending": 1 + }, + "totalsFiltered": { + "normal": 1, + "pending": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:30Z", + "evaluationTime": 0.00692303, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:00Z", + "evaluationTime": 0.009728203, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "pending": 2 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:39:00Z", + "evaluationTime": 0.009728203 + } + ] + }, + { + "time": "2026-10-30T20:39:47.131797+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "pending", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:39:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 1, + "pending": 1 + }, + "totalsFiltered": { + "normal": 1, + "pending": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:30Z", + "evaluationTime": 0.00692303, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:30Z", + "evaluationTime": 0.005506169, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "pending": 2 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:39:30Z", + "evaluationTime": 0.005506169 + } + ] + }, + { + "time": "2026-10-30T20:40:02.210933+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "pending", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:39:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 1, + "pending": 1 + }, + "totalsFiltered": { + "normal": 1, + "pending": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:00Z", + "evaluationTime": 0.006736428, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:39:30Z", + "evaluationTime": 0.005506169, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "pending": 2 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:39:30Z", + "evaluationTime": 0.005506169 + } + ] + }, + { + "time": "2026-10-30T20:40:17.255940+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "pending", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:39:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "normal": 1, + "pending": 1 + }, + "totalsFiltered": { + "normal": 1, + "pending": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:00Z", + "evaluationTime": 0.006736428, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:00Z", + "evaluationTime": 0.017080059, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "pending": 2 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:40:00Z", + "evaluationTime": 0.017080059 + } + ] + }, + { + "time": "2026-10-30T20:40:32.289618+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:30Z", + "evaluationTime": 0.006946832, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:00Z", + "evaluationTime": 0.017080059, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:40:00Z", + "evaluationTime": 0.017080059 + } + ] + }, + { + "time": "2026-10-30T20:40:47.324817+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:30Z", + "evaluationTime": 0.006946832, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:30Z", + "evaluationTime": 0.010435667, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:40:30Z", + "evaluationTime": 0.010435667 + } + ] + }, + { + "time": "2026-10-30T20:41:02.359320+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:00Z", + "evaluationTime": 0.007378314, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:40:30Z", + "evaluationTime": 0.010435667, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:40:30Z", + "evaluationTime": 0.010435667 + } + ] + }, + { + "time": "2026-10-30T20:41:17.390806+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:00Z", + "evaluationTime": 0.007378314, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:00Z", + "evaluationTime": 0.006210642, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:41:00Z", + "evaluationTime": 0.006210642 + } + ] + }, + { + "time": "2026-10-30T20:41:32.428335+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.016858879, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:00Z", + "evaluationTime": 0.006210642, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:41:00Z", + "evaluationTime": 0.006210642 + } + ] + }, + { + "time": "2026-10-30T20:41:47.474613+00:00", + "event": "outage observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.016858879, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884 + } + ] + }, + { + "time": "2026-10-30T20:41:47.510915+00:00", + "event": "Jenkins restart requested", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.016858879, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884 + } + ] + }, + { + "time": "2026-10-30T20:41:47.944867+00:00", + "event": "Jenkins started", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.016858879, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884 + } + ] + }, + { + "time": "2026-10-30T20:42:03.113661+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:00Z", + "evaluationTime": 0.011418458, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:41:30Z", + "evaluationTime": 0.004862884 + } + ] + }, + { + "time": "2026-10-30T20:42:18.202799+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:00Z", + "evaluationTime": 0.011418458, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:00Z", + "evaluationTime": 0.010445106, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:42:00Z", + "evaluationTime": 0.010445106 + } + ] + }, + { + "time": "2026-10-30T20:42:33.254030+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:30Z", + "evaluationTime": 0.019198747, + "isPaused": false, + "provenance": "file" + }, + { + "state": "pending", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Pending", + "activeAt": "2026-10-30T20:37:30Z", + "value": "1e+00" + } + ], + "totals": { + "pending": 1 + }, + "totalsFiltered": { + "pending": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:00Z", + "evaluationTime": 0.010445106, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "pending": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:42:00Z", + "evaluationTime": 0.010445106 + } + ] + }, + { + "time": "2026-10-30T20:42:48.290668+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "firing", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "activeAt": "2026-10-30T20:40:30Z", + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:40:30Z", + "value": "1e+00" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + } + ], + "totals": { + "alerting": 1, + "normal": 1 + }, + "totalsFiltered": { + "alerting": 1, + "normal": 1 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:30Z", + "evaluationTime": 0.019198747, + "isPaused": false, + "provenance": "file" + }, + { + "state": "firing", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "activeAt": "2026-10-30T20:42:30Z", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ], + "totals": { + "alerting": 1 + }, + "totalsFiltered": { + "alerting": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:30Z", + "evaluationTime": 0.005687338, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 2 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:42:30Z", + "evaluationTime": 0.005687338 + } + ] + }, + { + "time": "2026-10-30T20:43:03.328052+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:00Z", + "evaluationTime": 0.010434224, + "isPaused": false, + "provenance": "file" + }, + { + "state": "firing", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "activeAt": "2026-10-30T20:42:30Z", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ], + "totals": { + "alerting": 1 + }, + "totalsFiltered": { + "alerting": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:42:30Z", + "evaluationTime": 0.005687338, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "inactive": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:42:30Z", + "evaluationTime": 0.005687338 + } + ] + }, + { + "time": "2026-10-30T20:43:18.366896+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:00Z", + "evaluationTime": 0.010434224, + "isPaused": false, + "provenance": "file" + }, + { + "state": "firing", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "activeAt": "2026-10-30T20:42:30Z", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ], + "totals": { + "alerting": 1 + }, + "totalsFiltered": { + "alerting": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:00Z", + "evaluationTime": 0.009016835, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "inactive": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:43:00Z", + "evaluationTime": 0.009016835 + } + ] + }, + { + "time": "2026-10-30T20:43:33.441030+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:30Z", + "evaluationTime": 0.005466044, + "isPaused": false, + "provenance": "file" + }, + { + "state": "firing", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "activeAt": "2026-10-30T20:42:30Z", + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Alerting", + "activeAt": "2026-10-30T20:42:30Z", + "value": "1e+00" + } + ], + "totals": { + "alerting": 1 + }, + "totalsFiltered": { + "alerting": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:00Z", + "evaluationTime": 0.009016835, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "firing": 1, + "inactive": 1 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:43:00Z", + "evaluationTime": 0.009016835 + } + ] + }, + { + "time": "2026-10-30T20:43:48.535272+00:00", + "event": "recovery observation", + "rules": [ + { + "name": "Chapter 5 SRE Alerts", + "file": "SRE Monitoring", + "folderUid": "bg2th6ik05vr4e", + "rules": [ + { + "state": "inactive", + "name": "HTTPS Service Unavailable", + "query": "probe_success{job=\"https\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 60, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for {{ $labels.instance }}" + }, + "alerts": [ + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://git.sespinal590.dev/user/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T19:38:00Z", + "value": "" + }, + { + "labels": { + "__name__": "probe_success", + "alertname": "HTTPS Service Unavailable", + "chapter": "5", + "grafana_folder": "SRE Monitoring", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https", + "owner": "sespinal", + "severity": "critical" + }, + "annotations": { + "description": "The HTTPS probe has failed continuously for at least one minute.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "HTTPS probe failure for https://ci.165.227.90.215.sslip.io/login" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:00Z", + "value": "" + } + ], + "totals": { + "normal": 2 + }, + "totalsFiltered": { + "normal": 2 + }, + "uid": "sre-https-unavailable", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "critical" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:30Z", + "evaluationTime": 0.005466044, + "isPaused": false, + "provenance": "file" + }, + { + "state": "inactive", + "name": "Host Root Disk Space Low", + "query": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "queriedDatasourceUIDs": [ + "prometheus" + ], + "duration": 300, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "alerts": [ + { + "labels": { + "alertname": "Host Root Disk Space Low", + "chapter": "5", + "device": "/dev/vda1", + "fstype": "ext4", + "grafana_folder": "SRE Monitoring", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/", + "owner": "sespinal", + "severity": "warning" + }, + "annotations": { + "description": "Available root filesystem space has remained below 15% for five minutes.", + "runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md", + "summary": "Host root disk availability below 15%" + }, + "state": "Normal", + "activeAt": "2026-10-30T20:43:30Z", + "value": "" + } + ], + "totals": { + "normal": 1 + }, + "totalsFiltered": { + "normal": 1 + }, + "uid": "sre-root-disk-low", + "folderUid": "bg2th6ik05vr4e", + "labels": { + "chapter": "5", + "owner": "sespinal", + "severity": "warning" + }, + "health": "ok", + "type": "alerting", + "lastEvaluation": "2026-10-30T20:43:30Z", + "evaluationTime": 0.032317002, + "isPaused": false, + "provenance": "file" + } + ], + "totals": { + "inactive": 2 + }, + "interval": 30, + "lastEvaluation": "2026-10-30T20:43:30Z", + "evaluationTime": 0.032317002 + } + ] + } +] \ No newline at end of file diff --git a/evidence/chapter5/jenkins-recovery-build.json b/evidence/chapter5/jenkins-recovery-build.json new file mode 100644 index 0000000..8c7845a --- /dev/null +++ b/evidence/chapter5/jenkins-recovery-build.json @@ -0,0 +1,105 @@ +{ + "requested_at": "2026-10-30T20:43:26.150656+00:00", + "build": { + "_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", + "actions": [ + { + "_class": "hudson.model.CauseAction", + "causes": [ + { + "_class": "hudson.model.Cause$UserIdCause", + "shortDescription": "Started by user sespinal-admin", + "userId": "sespinal-admin", + "userName": "sespinal-admin" + } + ] + }, + { + "_class": "jenkins.scm.api.SCMRevisionAction" + }, + { + "_class": "org.jenkinsci.plugins.workflow.libs.LibrariesAction" + }, + {}, + {}, + { + "_class": "hudson.plugins.git.util.BuildData", + "buildsByBranchName": { + "main": { + "_class": "hudson.plugins.git.util.Build", + "buildNumber": 3, + "buildResult": null, + "marked": { + "SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "branch": [ + { + "SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "name": "main" + } + ] + }, + "revision": { + "SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "branch": [ + { + "SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "name": "main" + } + ] + } + } + }, + "lastBuiltRevision": { + "SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "branch": [ + { + "SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065", + "name": "main" + } + ] + }, + "remoteUrls": [ + "http://gitea:3000/group10-startup/startup-product.git" + ], + "scmName": "" + }, + {}, + {}, + { + "_class": "org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction" + }, + { + "_class": "org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction" + }, + {}, + { + "_class": "org.jenkinsci.plugins.workflow.job.views.FlowGraphAction" + }, + {}, + {} + ], + "artifacts": [], + "building": false, + "description": null, + "displayName": "#3", + "duration": 19806, + "estimatedDuration": 50140, + "executor": null, + "fullDisplayName": "startup-product \u00bb main #3", + "id": "3", + "keepLog": false, + "number": 3, + "queueId": 12816, + "result": "SUCCESS", + "timestamp": 1793393012534, + "url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/3/", + "changeSets": [], + "culprits": [], + "inProgress": false, + "nextBuild": null, + "previousBuild": { + "number": 2, + "url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/2/" + } + } +} \ No newline at end of file diff --git a/evidence/chapter5/live-metrics.json b/evidence/chapter5/live-metrics.json new file mode 100644 index 0000000..d84e3fa --- /dev/null +++ b/evidence/chapter5/live-metrics.json @@ -0,0 +1,204 @@ +{ + "captured_at": "2026-10-30T20:51:37.878019+00:00", + "queries": { + "up": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "up", + "instance": "prometheus:9090", + "job": "prometheus" + }, + "value": [ + 1793393498.002, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393498.002, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793393498.002, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393498.002, + "1" + ] + }, + { + "metric": { + "__name__": "up", + "instance": "blackbox-exporter:9115", + "job": "blackbox-exporter" + }, + "value": [ + 1793393498.002, + "1" + ] + } + ] + } + }, + "probe_success": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393498.139, + "1" + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393498.139, + "1" + ] + } + ] + } + }, + "probe_duration_seconds": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_duration_seconds", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393498.271, + "0.043615857" + ] + }, + { + "metric": { + "__name__": "probe_duration_seconds", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393498.271, + "0.050175626" + ] + } + ] + } + }, + "node_memory_MemTotal_bytes": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemTotal_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793393498.403, + "2063564800" + ] + } + ] + } + }, + "node_memory_MemAvailable_bytes": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "node_memory_MemAvailable_bytes", + "instance": "node-exporter:9100", + "job": "node-exporter" + }, + "value": [ + 1793393498.541, + "948740096" + ] + } + ] + } + }, + "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[5m])))": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "instance": "node-exporter:9100" + }, + "value": [ + 1793393498.678, + "9.459259259259245" + ] + } + ] + } + }, + "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "device": "/dev/vda1", + "fstype": "ext4", + "instance": "node-exporter:9100", + "job": "node-exporter", + "mountpoint": "/" + }, + "value": [ + 1793393498.81, + "19.76967666843447" + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/evidence/chapter5/restart-gaps.json b/evidence/chapter5/restart-gaps.json new file mode 100644 index 0000000..3799023 --- /dev/null +++ b/evidence/chapter5/restart-gaps.json @@ -0,0 +1,6 @@ +{ + "captured_at": "2026-10-30T21:01:48.380690+00:00", + "query": "up{job=\"prometheus\"}[30m]", + "received": 60, + "gaps_over_45_seconds": [] +} \ No newline at end of file diff --git a/evidence/chapter5/sli-persistence.json b/evidence/chapter5/sli-persistence.json new file mode 100644 index 0000000..a5068d0 --- /dev/null +++ b/evidence/chapter5/sli-persistence.json @@ -0,0 +1,322 @@ +{ + "window_end": "2026-10-30T20:45:00Z", + "window_minutes": 10, + "queries": { + "avg_over_time(probe_success{job=\"https\"}[10m])": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393100, + "0.65" + ] + }, + { + "metric": { + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393100, + "1" + ] + } + ] + } + }, + "count_over_time(probe_success{job=\"https\"}[10m])": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393100, + "20" + ] + }, + { + "metric": { + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393100, + "20" + ] + } + ] + } + }, + "sum_over_time(probe_success{job=\"https\"}[10m])": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393100, + "13" + ] + }, + { + "metric": { + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393100, + "20" + ] + } + ] + } + }, + "probe_success{job=\"https\"}": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793393100, + "1" + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793393100, + "1" + ] + } + ] + } + }, + "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": {}, + "value": [ + 1793393100, + "16.000000000000604" + ] + } + ] + } + }, + "probe_success{job=\"https\",instance=~\".*jenkins.*\"}[10m]": { + "status": "success", + "data": { + "resultType": "matrix", + "result": [] + } + }, + "probe_success{job=\"https\",instance=~\".*git.*\"}[10m]": { + "status": "success", + "data": { + "resultType": "matrix", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "values": [ + [ + 1793392526.948, + "1" + ], + [ + 1793392556.948, + "1" + ], + [ + 1793392586.948, + "1" + ], + [ + 1793392616.948, + "1" + ], + [ + 1793392646.948, + "1" + ], + [ + 1793392676.948, + "1" + ], + [ + 1793392706.948, + "1" + ], + [ + 1793392736.948, + "1" + ], + [ + 1793392766.948, + "1" + ], + [ + 1793392796.948, + "1" + ], + [ + 1793392826.948, + "1" + ], + [ + 1793392856.948, + "1" + ], + [ + 1793392886.948, + "1" + ], + [ + 1793392916.948, + "1" + ], + [ + 1793392946.948, + "1" + ], + [ + 1793392976.948, + "1" + ], + [ + 1793393006.948, + "1" + ], + [ + 1793393036.948, + "1" + ], + [ + 1793393066.948, + "1" + ], + [ + 1793393096.948, + "1" + ] + ] + } + ] + } + } + }, + "before_restart": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793392800, + "0" + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793392800, + "1" + ] + } + ] + } + }, + "after_restart": { + "status": "success", + "data": { + "resultType": "vector", + "result": [ + { + "metric": { + "__name__": "probe_success", + "instance": "https://ci.165.227.90.215.sslip.io/login", + "job": "https" + }, + "value": [ + 1793392800, + "0" + ] + }, + { + "metric": { + "__name__": "probe_success", + "instance": "https://git.sespinal590.dev/user/login", + "job": "https" + }, + "value": [ + 1793392800, + "1" + ] + } + ] + } + }, + "grafana_health": { + "database": "ok", + "version": "13.3.0", + "commit": "6f8ce3c693b493043ebcd4787566d2b6b118b0f0" + }, + "dashboard_uid": "sre-overview", + "rules": [ + { + "title": "HTTPS Service Unavailable", + "for": "1m" + }, + { + "title": "Host Root Disk Space Low", + "for": "5m" + } + ], + "contact_points": [ + { + "uid": "team-discord", + "name": "team-alerts", + "type": "discord" + } + ] +} \ No newline at end of file diff --git a/monitoring/ALERTING-RUNBOOK.md b/monitoring/ALERTING-RUNBOOK.md new file mode 100644 index 0000000..6d056fd --- /dev/null +++ b/monitoring/ALERTING-RUNBOOK.md @@ -0,0 +1,327 @@ +# Chapter 5 — Alerting and Incident Response Runbook + +## 1. Purpose + +This runbook defines the monitoring alerts, response procedures, +controlled outage experiment, recovery verification, and evidence +required for Chapter 5. + +The monitoring stack consists of Prometheus, Grafana, Node Exporter, +and Blackbox Exporter. + +All monitoring services must be deployed without exposing their +internal ports publicly. + +The existing Gitea, Jenkins, and Caddy services must be preserved. + +## 2. Alert A — HTTPS Availability Failure + +Alert name: HTTPS Service Unavailable + +Monitoring system: Grafana-managed alerting + +Data source: Prometheus + +PromQL: + +probe_success{job="https"} or on(instance,job) (0 * up{job="https"}) + +Condition: + +- Evaluate each HTTPS target independently. +- Trigger when probe_success is below 1. +- Pending period: 1 minute. +- Evaluate every 30 seconds where supported. +- Alert separately for Gitea and Jenkins using the instance label. + +Expected behavior: + +- A successful probe returns 1. +- A failed probe returns 0. +- Sustained failure transitions the alert to Firing. +- Recovery transitions the alert to Normal or Resolved. + +Important: + +Missing probe data must not automatically be interpreted as +successful service availability. + +Final policies: noDataState=NoData, execErrState=Error. The zero-valued up fallback surfaces a missing probe series while its scrape target remains configured. Removing a target must undergo source review. + +Jenkins monitoring requests must be permitted through the +existing Caddy IP allowlist without weakening Jenkins security. + +HTTP 403 must not count as a successful Jenkins probe. + +## 3. Alert B — Low Root Disk Space + +Alert name: Host Root Disk Space Low + +Monitoring system: Grafana-managed alerting + +Data source: Prometheus + +PromQL: + +100 * +node_filesystem_avail_bytes{ + job="node-exporter", + mountpoint="/", + fstype!~"tmpfs|overlay" +} +/ +node_filesystem_size_bytes{ + job="node-exporter", + mountpoint="/", + fstype!~"tmpfs|overlay" +} + +Condition: + +- Trigger when available root disk space is below 15%. +- Pending period: 5 minutes. +- Evaluate every 30 seconds where supported. + +Expected behavior: + +- Normal when available disk space is at least 15%. +- Pending when the threshold is crossed. +- Firing after five continuous minutes below the threshold. +- Resolved after the condition clears. + +## 4. Notification Contact Point + +The approved contact point is team-alerts, UID team-discord, using Grafana's dedicated Discord integration. Its local provisioning file is excluded by *.local.yml. Owner: sespinal. Resolved notifications are enabled. Group by grafana_folder and alertname; group_wait 10s, group_interval 30s, repeat_interval 4h. + +Do not commit passwords, API tokens, or notification secrets +to the repository. + +Required evidence: + +- Contact point configuration. +- Successful test notification. +- Actual alert notification received. +- Alert resolution notification where supported. + +Record the notification destination in the final manual without +exposing private credentials. + +## 5. HTTPS Failure Response Procedure + +When the HTTPS alert fires: + +1. Record the UTC timestamp. +2. Identify the affected instance label. +3. Check the corresponding Grafana dashboard panel. +4. Inspect Prometheus probe_success and probe_duration_seconds. +5. Check whether the HTTPS endpoint returns HTTP 200. +6. Check TLS certificate validity. +7. Check the relevant Docker container status. +8. Inspect relevant container logs. +9. Confirm whether the issue is application failure, proxy access, + DNS, TLS, or monitoring configuration. +10. Restore service using the approved recovery procedure. +11. Verify probe_success returns to 1. +12. Record the recovery timestamp and alert resolution. + +Do not disable security controls merely to silence an alert. + +## 6. Low Disk Space Response Procedure + +When the disk alert fires: + +1. Record the UTC timestamp. +2. Confirm root disk availability using Node Exporter metrics. +3. Check disk usage on the host. +4. Identify unusually large files, logs, images, or volumes. +5. Do not delete Docker volumes without identifying their owners. +6. Preserve Gitea, Jenkins, and monitoring persistent data. +7. Apply an approved cleanup or capacity increase. +8. Verify disk availability returns above the threshold. +9. Record the alert resolution. + +Do not use destructive cleanup commands without approval. + +## 7. Safe Disk Alert Demonstration + +The team must not fill the Droplet disk to trigger the alert. + +Instead: + +1. Record the actual root disk available percentage. +2. Temporarily raise the alert threshold above that value. +3. Wait for the configured five-minute pending period. +4. Capture Pending and Firing evidence. +5. Verify notification delivery. +6. Restore the required 15% threshold. +7. Confirm the alert returns to Normal or Resolved. +8. Record the temporary threshold and restoration time. + +This is a controlled alert test, not a genuine disk exhaustion event. + +## 8. Controlled Jenkins-Only Outage + +The controlled outage must affect Jenkins only. + +Do not stop Gitea, Caddy, or the monitoring stack. + +Before starting: + +1. Confirm Gitea and Jenkins probes are healthy. +2. Confirm both Grafana panels show valid data. +3. Confirm the HTTPS alert is operational. +4. Confirm the notification contact point works. +5. Record the UTC start time. + +During the experiment: + +1. Stop only the Jenkins application container using an + approved maintenance procedure. +2. Keep the outage approximately three minutes. +3. Record the first failed Jenkins HTTPS probe. +4. Record the alert Pending and Firing transitions. +5. Record notification receipt time. +6. Confirm Gitea continues to report successful probes. + +Recovery: + +1. Restart Jenkins using the approved procedure. +2. Confirm the Jenkins login endpoint responds successfully. +3. Confirm probe_success returns to 1. +4. Confirm the Grafana alert resolves. +5. Record the UTC recovery time. +6. Verify Jenkins pipeline functionality. +7. Verify the Gitea Actions PDF workflow independently. + +The team must coordinate this outage and obtain approval +before disrupting Jenkins. + +## 9. Incident Timeline + +Record actual UTC timestamps for: + +- Planned maintenance approval. +- Jenkins stop command. +- First failed probe. +- Alert Pending state. +- Alert Firing state. +- Notification receipt. +- Jenkins restart command. +- First successful probe. +- Alert resolution. +- Jenkins pipeline verification. +- Gitea Actions PDF verification. + +Do not invent timestamps. + +## 10. Detection and Recovery Measurements + +Detection delay: + +First failed probe time - Jenkins outage start time + +Alert firing delay: + +Alert Firing time - First failed probe time + +Notification delay: + +Notification receipt time - Alert Firing time + +Service recovery time: + +First successful probe time - Jenkins outage start time + +These measurements must use actual recorded timestamps. + +Distinguish application recovery from alert resolution. + +## 11. Prometheus and Grafana Restart Tests + +Perform these tests separately after the monitoring stack +has been deployed and verified. + +Prometheus restart: + +1. Record current targets and metrics. +2. Restart only Prometheus. +3. Confirm the service returns. +4. Confirm historical time-series data persists. +5. Confirm scrape targets recover. + +Grafana restart: + +1. Record the dashboard and data source. +2. Restart only Grafana. +3. Confirm HTTPS login works. +4. Confirm the provisioned dashboard remains available. +5. Confirm the alert rules and contact points persist. + +Do not delete persistent volumes during these tests. + +## 12. Blameless Incident Review + +The incident review must include: + +- Incident summary. +- Intended experiment. +- Actual impact. +- Timeline. +- Detection behavior. +- Notification behavior. +- Recovery behavior. +- What worked. +- What did not work. +- Contributing technical factors. +- Preventive improvements. +- Evidence references. + +Focus on system behavior and improvement rather than +assigning personal blame. + +## 13. Follow-Up Gitea Issues + +Create at least two follow-up issues after the experiment. + +Each issue must include: + +- Specific improvement. +- Assigned owner. +- Priority. +- Acceptance criteria. +- Link to the incident review. + +Possible improvements include: + +- Strengthening Jenkins HTTPS monitoring access. +- Improving alert notification delivery. +- Adding monitoring deployment automation. +- Improving restart and recovery documentation. + +Do not claim issues exist until they have been created. + +## 14. Required Evidence + +Capture: + +- Grafana HTTPS login. +- Six-panel dashboard. +- Alert rules and evaluation settings. +- Notification contact point. +- Test notification. +- HTTPS alert Pending and Firing. +- Disk alert Pending and Firing. +- Jenkins outage and recovery. +- Gitea remaining healthy during Jenkins outage. +- Actual notification receipt. +- Prometheus persistence after restart. +- Grafana persistence after restart. +- Jenkins pipeline verification. +- Gitea Actions PDF workflow verification. +- Two follow-up Gitea issues. + +Evidence must reflect actual execution, not planned behavior. + +## Verified exercise: 2026-10-30 UTC + +Both rules reached firing and returned to normal. Sergio confirmed the test message plus both firing/resolved pairs in Discord. Capacity threshold was temporarily 30%, then restored to 15% in a finally block. Jenkins was stopped for approximately three minutes and recovered; build 3 passed and Gitea received its success status. Exact retained evaluation times and receiver-timestamp limitations are in devopsSREMonitoring.tex and evidence/chapter5/. Never substitute evaluation time for destination receipt time. diff --git a/monitoring/ARCHITECTURE.md b/monitoring/ARCHITECTURE.md new file mode 100644 index 0000000..c7ef906 --- /dev/null +++ b/monitoring/ARCHITECTURE.md @@ -0,0 +1,372 @@ +Chapter 5 — Monitoring Architecture and Recovery Plan + +Project: SSW 590 DevOps — Group 10 +Repository: group10-startup/devops-it-manual +Tracking issue: #1 +Preparation branch: chapter5-sre-monitoring +Prepared: October 28, 2026 +Status: Proposed architecture — not deployed or verified + +1. Objective + +Extend the existing Group 10 DevOps infrastructure with a reproducible monitoring system using Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter. + +The system must monitor the Linux host’s CPU, available memory, and root filesystem capacity, as well as the HTTPS availability and response duration of Gitea and Jenkins. + +The implementation must preserve the existing Gitea, Jenkins, Caddy, repositories, Jenkins pipelines, Gitea Actions workflows, and persistent application data. + +2. Verified Infrastructure Baseline + +Baseline recorded on October 28, 2026, at 22:18:12 UTC. + +Component Verified value +Hostname sergio-ssw590-gitea +Primary Droplet IPv4 165.227.90.215 +Operating system Ubuntu 24.04.4 LTS +CPU 1 vCPU +Total RAM 458 MiB +Available RAM 209 MiB +Swap 1 GiB; 633 MiB used +Root filesystem /dev/vda1 +Root filesystem capacity 8.7 GB +Available root disk 3.3 GB +Root disk utilization 63% +Docker 29.8.1 +Docker Compose v5.5.1 + +Existing containers at baseline: + +Container Image Status Observed memory +Gitea gitea/gitea:1.27.3 Running 88.78 MiB +Jenkins jenkins/jenkins:2.528.1-lts-jdk21 Running 51.77 MiB +Caddy caddy:2.10.2 Running 12.29 MiB + +These resource measurements represent one observation, not peak consumption during Jenkins builds. + +Docker storage at baseline: + +* Images: 1.17 GB +* Containers: 245.7 MB +* Local volumes: 12.78 kB +* Build cache: 0 B + +3. Capacity Constraint and Deployment Decision + +The existing Droplet has insufficient memory headroom for a typical deployment of four additional monitoring containers alongside Jenkins, Gitea, and Caddy. + +Deployment is blocked until capacity is assessed and an architecture is approved. + +The team must: + +1. Measure resource consumption during a representative Jenkins build. +2. Inspect the second existing DigitalOcean Droplet (159.223.171.15) without changing its configuration. +3. Compare the cost and operational consequences of resizing the existing Droplet versus using another monitoring host. +4. Confirm adequate memory, disk capacity, and monitoring retention. +5. Record the selected deployment architecture and its justification. + +The preferred design is a single appropriately sized Linux host. If monitoring runs on another host, Node Exporter must still report the intended Gitea/Jenkins Droplet’s resources, and the network architecture must be documented accurately. + +No Droplet resizing, new paid resources, or additional services should be provisioned without team approval. + +4. Proposed Logical Architecture + +The following diagram represents the preferred single-host design. It is not an as-built diagram. + + Internet / Team Browser + | + HTTPS :443 + | + Caddy Reverse Proxy + / | \ + / | \ + Gitea Jenkins Grafana + | | | + Git repositories CI Dashboards + | | and alerts + +-----------+----------+ + | + Private Docker Networks + | + Prometheus + / | \ + / | \ + Prometheus Node Blackbox + self-scrape Exporter Exporter + | | + Host CPU, HTTPS probes + RAM, disk of Gitea and + Jenkins + +Prometheus collects metrics and probe results at a proposed 30-second interval. + +Grafana queries Prometheus for dashboard visualization and evaluates Grafana-managed alert rules. + +Node Exporter collects Linux host metrics. + +Blackbox Exporter probes the externally accessible HTTPS endpoints of Gitea and Jenkins. + +Caddy provides authenticated HTTPS access to Grafana through a dedicated hostname. + +The final diagram must be updated to match the actual deployment, including Docker networks, service ports, storage, and any cross-host communication. + +5. Required Monitoring Components + +Component Image repository Function +Prometheus prom/prometheus Time-series metric collection +Grafana OSS grafana/grafana Dashboards and managed alerts +Node Exporter quay.io/prometheus/node-exporter Linux host metrics +Blackbox Exporter quay.io/prometheus/blackbox-exporter HTTPS availability and latency + +Before deployment, Sergio must select supported, fixed image tags and record the pulled image digests. + +Do not use floating latest tags. + +6. Networking and Access Control + +Public access + +* Caddy: HTTPS port 443 and HTTP port 80 where needed for redirection and certificate management. +* Gitea: HTTPS through Caddy. +* Jenkins: HTTPS through Caddy. +* Grafana: HTTPS through Caddy using a dedicated hostname and authenticated login. + +Private services + +The following monitoring ports must not be publicly accessible: + +* Prometheus: 9090 +* Node Exporter: 9100 +* Blackbox Exporter: 9115 + +Grafana’s internal port 3000 must also remain private. + +Jenkins backend port 8080 and Gitea backend port 3000 must not be exposed directly to the public internet. + +Docker networks and host firewall rules must restrict access appropriately. Validate public exposure from an external machine, including IPv6 where applicable. + +Credentials + +Store Grafana administrator credentials, notification secrets, and other sensitive values outside version-controlled files. + +Do not include passwords, tokens, private webhook URLs, or SSH keys in the repository, screenshots, or final manual. + +7. Persistent Storage and Retention + +Prometheus must use persistent storage for its time-series database. + +Grafana must use persistent storage for its application database and state. + +A seven-day Prometheus retention period is proposed, subject to actual available disk capacity. + +Version-control sanitized configuration, dashboard definitions, data-source provisioning, and alert-rule definitions. + +Persistent Docker volumes must not be deleted during ordinary container restarts or troubleshooting. + +Do not use docker compose down -v as a normal recovery command. + +8. Required Dashboard + +The dashboard must contain exactly six core panels: + +1. Whole-host CPU utilization percentage, averaged across CPUs. +2. Available host memory. +3. Available root filesystem percentage. +4. Gitea HTTPS probe success, displayed as 0 or 1. +5. Jenkins HTTPS probe success, displayed as 0 or 1. +6. HTTPS probe duration for both services in seconds. + +Use appropriate units, legends, thresholds, time zone, and default time range. + +Verify the dashboard against live metrics after deployment. + +9. Required Reliability Objectives + +Define HTTPS probe success as the service availability SLI. + +Use a 99% success objective over a 24-hour window as the exercise SLO. + +Clearly distinguish: + +* SLI: measured reliability indicator. +* SLO: internal reliability target. +* SLA: contractual reliability commitment; none is established by this exercise. + +Complete both the supplied hypothetical calculations and a short actual observation window that includes the controlled Jenkins outage. + +Missing probe samples must not automatically be counted as successful requests. + +10. Required Alerting + +Service availability + +A Grafana-managed alert must detect sustained HTTPS probe failure for Gitea or Jenkins, with a pending duration of at least one minute. + +Host disk capacity + +A Grafana-managed alert must detect root filesystem free space below 15% for five minutes. + +Both alerts require: + +* Rule owner and severity. +* Query and threshold. +* Evaluation interval and pending duration. +* No-data and error handling. +* Notification destination. +* Runbook. +* Evidence of firing, notification delivery, and resolution. + +Test the disk alert by temporarily increasing the threshold above actual free space, then restore the final 15% threshold. + +Never fill the disk intentionally to trigger the alert. + +11. Controlled Incident Plan + +The team must schedule a controlled Jenkins outage of approximately three minutes. + +Before the test: + +1. Confirm no Jenkins build is running. +2. Record the current service status. +3. Confirm the exact Jenkins stop and restart commands. +4. Confirm monitoring and notifications are operational. +5. Agree on a maintenance window. + +During the test: + +1. Record the UTC time when Jenkins is stopped. +2. Record the first unsuccessful HTTPS probe. +3. Record alert firing and notification receipt. +4. Record acknowledgment. +5. Restart Jenkins after approximately three minutes. +6. Record the first successful probe. +7. Record alert resolution. + +After the test: + +1. Verify Jenkins HTTPS access. +2. Run a successful Jenkins pipeline. +3. Verify Gitea remains available. +4. Verify the Gitea Actions manual PDF workflow. +5. Restart Prometheus and Grafana individually without deleting persistent storage. +6. Confirm earlier time-series data, dashboard configuration, and alert rules persist. +7. Complete a blameless incident review. +8. Create two improvement issues with assigned owners. + +The incident must not interrupt Gitea intentionally. + +12. Rollback and Recovery Plan + +Before deployment + +* Record the existing running containers and versions. +* Identify current Compose projects, networks, mounts, and configuration locations. +* Confirm the recovery procedure for Gitea, Jenkins, and Caddy. +* Preserve existing application data and backups. +* Record the monitoring configuration commit. +* Confirm adequate capacity. + +If monitoring deployment fails + +1. Stop or remove only the newly introduced monitoring containers as appropriate. +2. Preserve Prometheus and Grafana persistent volumes. +3. Restore the previously verified monitoring configuration. +4. Confirm Gitea, Jenkins, and Caddy remain operational. +5. Verify external HTTPS access to Gitea and Jenkins. +6. Record the failure, corrective action, and result in the Gitea issue. + +If an existing service is affected + +1. Stop the monitoring rollout. +2. Identify the affected service and its current status. +3. Follow the service-specific recovery procedure. +4. Avoid deleting or recreating existing application data. +5. Verify HTTPS availability and application functionality. +6. Record the recovery timeline. + +Rollback commands must be finalized against the actual Docker deployment before use. + +13. Monitoring Failure Domain + +If monitoring and monitored services run on the same Droplet, a complete Droplet outage may also disable Prometheus, Grafana, and alert delivery. + +This is a shared failure domain. + +The final incident review should recommend an independent external uptime check as a prioritized improvement. + +14. Evidence and Traceability + +The final manual must include: + +* Approved deployment architecture and capacity decision. +* Pinned image versions and digests. +* Configuration validation results. +* Deployment commands and container status. +* Prometheus target and host-metric verification. +* HTTPS/TLS and external exposure checks. +* Six-panel Grafana dashboard. +* Jenkins build correlation. +* SLI/SLO calculations and actual observation results. +* Alert firing, notification, and resolution evidence. +* Controlled incident timeline and recovery verification. +* Persistence test results. +* Two improvement issues with owners. +* Reviewed Gitea commits and successful PDF workflow run. + +Do not describe planned or untested behavior as verified. + +15. Handoff Responsibilities + +Turan — preparation: Architecture, proposed configuration, dashboard definitions, hypothetical calculations, alert and incident procedures, and initial manual documentation. + +Sergio — implementation: Capacity approval, deployment, networking, security, persistence, live verification, alert testing, controlled incident, evidence collection, final manual updates, reviewed merge, and PDF submission. + +Historical preparation checkpoint: Preparation only. Monitoring deployment and operational verification remain pending. + +## Verified deployment checkpoint: October 30, 2026 +The primary droplet (165.227.90.215) was resized with approval to 2 GiB RAM, +1 vCPU, retaining its 10 GB disk. A pre-resize snapshot is available as 252241628. +Current monthly resource prices: primary $12, second existing droplet $4, +5.65 GB retained snapshot approximately $0.34. No disk expansion was approved. + +Monitoring is deployed separately at /opt/ssw590-monitoring. Grafana uses +https://metrics.165.227.90.215.sslip.io and authenticated login; no monitoring +container publishes a host port. Caddy configuration was backed up before reload. +Blackbox Exporter has private address 172.18.0.250 on gitea_default; only this +/32 was added to the existing Jenkins allowlist. It resolves both HTTPS names +to Caddy's inspected private address 172.18.0.3 using CADDY_PRIVATE_IP. +Verify that address after any Caddy recreation and recreate Blackbox if it changes. +This measures a private proxy route with real hostname/TLS verification, not +reachability from every external network. Whole-droplet failure also stops monitoring. + +Pinned images: Prometheus v3.15.1, Grafana 13.3.0-slim, Node Exporter v1.12.1, +Blackbox Exporter v0.29.1. The full Grafana image and its unsolicited optional +plugin downloads consumed too much storage; only those new disposable artifacts +were removed. No application data or named volume was deleted. The slim image +needs only the Prometheus plugin, installed at 13.2.4 with: + docker compose exec grafana grafana cli plugins install prometheus 13.2.4 + docker compose restart grafana +Optional plugin preinstallation and updates are disabled. Provisioning directories +must be mode 755 and non-secret provisioning files mode 644 so UID 472 can read them. +Keep .env mode 600 and outside Git. Preserve its generated Grafana admin credential. +Required local settings: GRAFANA_ADMIN_PASSWORD, GRAFANA_ROOT_URL, +CADDY_PRIVATE_IP. Run docker compose config --quiet; never publish expanded config. +Prometheus retention is seven days or 512 MB of retained blocks, whichever is reached +first; WAL/head storage is additional. Monitor remaining disk and avoid large upgrades +without checking transient extraction space. + +Runtime checks: all five scrape targets up=1, both HTTPS probe_success=1; +Grafana data source, six panels and two provisioned rules loaded. Root labels are +mountpoint=/, device=/dev/vda1, fstype=ext4. Node memory total 2063564800 bytes +matches the host. Dashboard screenshots, notification delivery, incident, pipeline, +persistence and final PDF evidence remain pending. A local preliminary PDF compiled, +but the automated workflow and glossary generation are not yet verified. + + +## Completed exercise evidence, 2026-10-30 + +The measured deployment and incident report is in `devopsSREMonitoring.tex`. Both real alert pairs were received in Discord. Jenkins recovery build 3 passed and published its matching success status to Gitea. The 10-minute exercise recorded 20/20 successful Gitea observations and 13/20 Jenkins observations. Separate Prometheus/Grafana restarts retained history and configuration. Human peer review and main merge remain deferred. Earlier preparation/checkpoint sections describe the rollout sequence, not final evidence status. See `evidence/chapter5/` for sanitized records. + + +## Final audit checkpoint, 2026-10-30 + +Automatic application polling discovered commit b39613b2d2869065cf363bff36a7b54225cb7438 and built/tested it successfully without a manual trigger. Grafana public /metrics was blocked with the validated versioned Caddyfile. The complete eight-section audit is in devopsSREMonitoring.tex; backup procedure in BACKUP-RECOVERY.md; updated runtime evidence under evidence/chapter5/. The user explicitly deferred global IPv4 SSH restriction. Human peer review remains pending and main stays unmerged. Earlier preparation sections are historical, not the final runtime status. diff --git a/monitoring/BACKUP-RECOVERY.md b/monitoring/BACKUP-RECOVERY.md new file mode 100644 index 0000000..8554d3a --- /dev/null +++ b/monitoring/BACKUP-RECOVERY.md @@ -0,0 +1,11 @@ +# Monitoring backup and recovery procedure + +Owner: Sergio (sespinal). This is an operator procedure, not a claim that a new monitoring backup or restore was performed. The retained DigitalOcean snapshot predates monitoring deployment. + +1. Arrange a maintenance window and an approved encrypted backup destination outside this droplet. Check free bytes and estimated archive size first; retain the 15% free-space margin. Do not stage a full volume archive on the retained 10 GB root disk unless space is proven sufficient. A second directory on this droplet is not an off-host backup. +2. Record the source commit, image digests, Grafana plugin 13.2.4, Docker volume names and current UTC time. Stop Grafana before copying its SQLite state, and stop Prometheus before copying its entire data directory. Use a shell trap/finally block to restart both services even if copying fails. Leave Gitea, Caddy and Jenkins running. +3. Preserve `/var/lib/docker/volumes/monitoring_grafana_data/_data` and `/var/lib/docker/volumes/monitoring_prometheus_data/_data`, ownership, permissions and timestamps. Grafana's database is `grafana.db`; Prometheus history includes blocks, WAL and head data. Transfer with an approved binary-safe archive/SSH tool to the off-host destination. Also preserve `/opt/ssw590-monitoring/.env`, `grafana/provisioning/alerting/discord.local.yml`, and `/opt/gitea/Caddyfile` privately. Credentials, the Discord URL, sessions, and state archives must never enter Git, the PDF, screenshots or chat. Use root-only local permissions and encrypted storage/transport. Pin/reinstall the Prometheus plugin if omitting its reconstructible plugin files from the archive. +4. Restart using `docker compose start prometheus grafana` in `/opt/ssw590-monitoring`; check health, old samples, dashboard, datasource, rules, contact point and both probes. Record the collection gap. Generate and verify archive checksums at source and destination. Retain a dated inventory and agreed retention period. Remove temporary local archives only after destination verification and owner approval. +5. Prove recovery in isolated replacement volumes, not by overwriting the live volumes. Use the same source/images/plugin first; restore files with UID 472 for Grafana and the original Prometheus ownership. Restore the protected environment/contact provisioning privately, validate configuration and verify historical query results, HTTPS, alert routing and a test notification. An isolated recovery success is separate evidence from the already completed container restart test. Do not delete the live volumes or revert the droplet without explicit authorization. + +Example checks (read-only): `docker volume inspect monitoring_grafana_data monitoring_prometheus_data`; `df -B1 /`; `du -sb `. Any archive/restore commands must use the inspected paths and the approved backup destination. Review the official Grafana backup guide and Prometheus storage guidance cited in the manual. diff --git a/monitoring/Caddyfile b/monitoring/Caddyfile new file mode 100644 index 0000000..e1c95cc --- /dev/null +++ b/monitoring/Caddyfile @@ -0,0 +1,22 @@ +git.sespinal590.dev { + encode zstd gzip + reverse_proxy gitea:3000 +} + +ci.165.227.90.215.sslip.io { + encode zstd gzip + @approved remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32 + handle @approved { + reverse_proxy jenkins:8080 + } + handle { + respond "Jenkins access requires an approved team source or administrator tunnel." 403 + } +} + +metrics.165.227.90.215.sslip.io { + encode zstd gzip + @rawMetrics path /metrics /metrics/* + respond @rawMetrics "Raw metrics are private." 403 + reverse_proxy grafana:3000 +} diff --git a/monitoring/SLI-SLO.md b/monitoring/SLI-SLO.md new file mode 100644 index 0000000..c0665d0 --- /dev/null +++ b/monitoring/SLI-SLO.md @@ -0,0 +1,179 @@ +# Chapter 5 — SLI, SLO, and Error Budget + +## 1. Service Level Indicator (SLI) + +The availability SLI measures the fraction of successful HTTPS probes. + +SLI = Successful HTTPS probes / Total observed HTTPS probes + +A successful probe requires: +- HTTP 200 response. +- Valid TLS certificate. +- Completion within the configured probe timeout. + +Prometheus collects probe results every 30 seconds. + +The Gitea and Jenkins services are measured independently. + +## 2. Service Level Objective (SLO) + +The laboratory availability objective is: + +SLO >= 99% over a 24-hour observation window. + +At a 30-second sampling interval: + +24 hours * 60 minutes * 2 samples per minute = 2880 scheduled samples. + +The permitted failure fraction is: + +100% - 99% = 1%. + +Error budget: + +2880 * 0.01 = 28.8 failed samples. + +Because samples are discrete, the maximum number of failed samples +that still satisfies the SLO is 28. + +Equivalent scheduled failure time: + +28.8 * 30 seconds = 864 seconds = 14.4 minutes. + +The discrete sample limit is 28 * 30 = 840 seconds = 14 minutes. + +## 3. Mandatory Hypothetical Example + +The following values are hypothetical assignment examples, +not actual measurements from the deployed system. + +Gitea: +- Successful probes: 2880 +- Scheduled probes: 2880 +- Availability: 100% +- Result: PASS + +Jenkins: +- Successful probes: 2850 +- Scheduled probes: 2880 +- Failed probes: 30 +- Availability: 98.9583% +- Result: FAIL + +Jenkins exceeds the permitted error budget by: + +30 - 28.8 = 1.2 failed-sample equivalents. + +The Jenkins example therefore does not meet the 99% SLO. + +## 4. PromQL — Current Probe Status + +Gitea: + +probe_success{job="https",instance="https://git.sespinal590.dev/"} + +Jenkins: + +probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"} + +Interpretation: +- 1 = successful HTTPS probe. +- 0 = unsuccessful HTTPS probe. +- Missing series = no observation; do not automatically classify as success. + +## 5. PromQL — Observed Availability + +Gitea: + +avg_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h]) * 100 + +Jenkins: + +avg_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h]) * 100 + +These queries calculate the percentage of successful observed samples. + +They do not prove that all 2880 scheduled samples were collected. + +## 6. PromQL — Observed Sample Counts + +Gitea: + +count_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h]) + +Jenkins: + +count_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h]) + +Compare observed sample counts with the expected sampling schedule. + +A short observation window must be labeled as a short observation window. + +## 7. PromQL — Observed Failed Probes + +Gitea: + +count_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h]) +- +sum_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h]) + +Jenkins: + +count_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h]) +- +sum_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h]) + +These queries count observed failed probes. + +Missing samples require separate investigation. + +## 8. Controlled Outage Measurement + +During the planned Jenkins-only outage, record: + +- Exact UTC outage start time. +- Exact UTC outage end time. +- First failed HTTPS probe. +- Alert firing time. +- Notification receipt time. +- First successful recovery probe. +- Alert resolution time. + +Calculate the observed availability over the selected test window. + +Record the actual number of observed samples and failed samples. + +Do not substitute the hypothetical 24-hour example for real measurements. + +## 9. Jenkins Monitoring Access Requirement + +Jenkins currently uses a Caddy IP allowlist. + +An unapproved HTTPS request returns HTTP 403. + +The Jenkins backend /login endpoint was independently observed +returning HTTP 200 from inside the Caddy container. + +Before deployment, the team must arrange narrowly scoped monitoring +access that preserves the existing security restriction. + +HTTP 403 must not be counted as a successful Jenkins probe. + +## 10. Evidence Required Before Submission + +Capture evidence of: + +- Prometheus HTTPS probe targets. +- Actual probe_success results. +- Observed sample counts. +- Observed availability calculations. +- Jenkins controlled outage. +- Detection and recovery timestamps. +- SLO and error-budget interpretation. + +The hypothetical example must be clearly distinguished from +the actual deployment measurements. + +## Measured exercise, 2026-10-30 + +Evaluation 20:45:00 UTC, range (20:35:00,20:45:00], interval 30s. avg_over_time(probe_success{job="https"}[10m]), count_over_time and sum_over_time returned: Gitea 20 received/20 expected, 20 successes, 100%; Jenkins 20/20, 13 successes, 7 failures, 65%. Coverage was 100% for this interval. Missing samples in other windows remain unknown, never success. This short window cannot establish the full-day SLO. Raw results: evidence/chapter5/sli-persistence.json. diff --git a/monitoring/blackbox/blackbox.yml b/monitoring/blackbox/blackbox.yml new file mode 100644 index 0000000..d020065 --- /dev/null +++ b/monitoring/blackbox/blackbox.yml @@ -0,0 +1,13 @@ +modules: + http_2xx: + prober: http + timeout: 10s + http: + method: GET + follow_redirects: true + preferred_ip_protocol: ip4 + ip_protocol_fallback: true + valid_status_codes: + - 200 + tls_config: + insecure_skip_verify: false \ No newline at end of file diff --git a/monitoring/compose.yaml b/monitoring/compose.yaml new file mode 100644 index 0000000..4847d7b --- /dev/null +++ b/monitoring/compose.yaml @@ -0,0 +1,86 @@ +name: monitoring + +services: + prometheus: + image: prom/prometheus:${PROMETHEUS_VERSION:-v3.15.1} + restart: unless-stopped + command: + - --config.file=/etc/prometheus/prometheus.yml + - --storage.tsdb.path=/prometheus + - --storage.tsdb.retention.time=7d + - --storage.tsdb.retention.size=512MB + - --web.listen-address=0.0.0.0:9090 + volumes: + - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro + - prometheus_data:/prometheus + networks: + - monitoring_private + security_opt: + - no-new-privileges:true + + grafana: + image: grafana/grafana:${GRAFANA_VERSION:-13.3.0-slim} + restart: unless-stopped + environment: + GF_SECURITY_ADMIN_USER: admin + GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:?Set GRAFANA_ADMIN_PASSWORD} + GF_PLUGINS_PREINSTALL_DISABLED: "true" + GF_PLUGINS_PREINSTALL_AUTO_UPDATE: "false" + GF_AUTH_ANONYMOUS_ENABLED: "false" + GF_USERS_ALLOW_SIGN_UP: "false" + GF_SECURITY_COOKIE_SECURE: "true" + GF_ANALYTICS_REPORTING_ENABLED: "false" + GF_SERVER_ROOT_URL: ${GRAFANA_ROOT_URL:?Set GRAFANA_ROOT_URL} + volumes: + - grafana_data:/var/lib/grafana + - ./grafana/provisioning:/etc/grafana/provisioning:ro + - ./grafana/dashboards:/var/lib/grafana/dashboards:ro + networks: + - monitoring_private + - gitea_proxy + security_opt: + - no-new-privileges:true + + node-exporter: + image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_VERSION:-v1.12.1} + restart: unless-stopped + command: + - --path.rootfs=/host + - --path.procfs=/host/proc + - --path.sysfs=/host/sys + pid: host + volumes: + - /:/host:ro,rslave + networks: + - monitoring_private + security_opt: + - no-new-privileges:true + + blackbox-exporter: + image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_EXPORTER_VERSION:-v0.29.1} + restart: unless-stopped + command: + - --config.file=/etc/blackbox/blackbox.yml + volumes: + - ./blackbox/blackbox.yml:/etc/blackbox/blackbox.yml:ro + extra_hosts: + - "ci.165.227.90.215.sslip.io:${CADDY_PRIVATE_IP:?Set CADDY_PRIVATE_IP}" + - "git.sespinal590.dev:${CADDY_PRIVATE_IP:?Set CADDY_PRIVATE_IP}" + networks: + monitoring_private: + gitea_proxy: + ipv4_address: 172.18.0.250 + security_opt: + - no-new-privileges:true + +networks: + monitoring_private: + driver: bridge + + gitea_proxy: + external: true + name: gitea_default + +volumes: + prometheus_data: + grafana_data: diff --git a/monitoring/grafana/dashboards/sre-overview.json b/monitoring/grafana/dashboards/sre-overview.json new file mode 100644 index 0000000..34baa1d --- /dev/null +++ b/monitoring/grafana/dashboards/sre-overview.json @@ -0,0 +1,257 @@ +{ + "uid": "sre-overview", + "title": "Chapter 5 - SRE Monitoring Overview", + "tags": ["sre", "chapter5", "monitoring"], + "timezone": "utc", + "schemaVersion": 39, + "version": 1, + "refresh": "30s", + "time": { + "from": "now-1h", + "to": "now" + }, + "templating": { + "list": [] + }, + "annotations": { + "list": [] + }, + "panels": [ + { + "id": 1, + "title": "Host CPU Utilization (%)", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "targets": [ + { + "refId": "A", + "expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[5m])))", + "legendFormat": "CPU used" + } + ], + "fieldConfig": { + "defaults": { + "unit": "percent", + "min": 0, + "max": 100 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 2, + "title": "Host Available RAM", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "targets": [ + { + "refId": "A", + "expr": "node_memory_MemAvailable_bytes{job=\"node-exporter\"}", + "legendFormat": "Available RAM" + } + ], + "fieldConfig": { + "defaults": { + "unit": "bytes" + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 3, + "title": "Root Disk Available (%)", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "targets": [ + { + "refId": "A", + "expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}", + "legendFormat": "Root disk available" + } + ], + "fieldConfig": { + "defaults": { + "unit": "percent", + "min": 0, + "max": 100 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 4, + "title": "Gitea HTTPS Availability", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "targets": [ + { + "refId": "A", + "expr": "probe_success{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}", + "legendFormat": "Gitea HTTPS success" + } + ], + "fieldConfig": { + "defaults": { + "min": 0, + "max": 1, + "decimals": 0 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 5, + "title": "Jenkins HTTPS Availability", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "targets": [ + { + "refId": "A", + "expr": "probe_success{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}", + "legendFormat": "Jenkins HTTPS success" + } + ], + "fieldConfig": { + "defaults": { + "min": 0, + "max": 1, + "decimals": 0 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 6, + "title": "HTTPS Response Time (seconds)", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "targets": [ + { + "refId": "A", + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}", + "legendFormat": "Gitea" + }, + { + "refId": "B", + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}", + "legendFormat": "Jenkins" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s", + "min": 0 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + } + ] +} diff --git a/monitoring/grafana/provisioning/alerting/rules.yml b/monitoring/grafana/provisioning/alerting/rules.yml new file mode 100644 index 0000000..7140945 --- /dev/null +++ b/monitoring/grafana/provisioning/alerting/rules.yml @@ -0,0 +1,119 @@ +apiVersion: 1 + +groups: + - orgId: 1 + name: Chapter 5 SRE Alerts + folder: SRE Monitoring + interval: 30s + rules: + - uid: sre-https-unavailable + title: HTTPS Service Unavailable + condition: C + for: 1m + noDataState: NoData + execErrState: Error + annotations: + runbook_url: https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md + summary: "HTTPS probe failure for {{ $labels.instance }}" + description: "The HTTPS probe has failed continuously for at least one minute." + labels: + owner: sespinal + severity: critical + chapter: "5" + data: + - refId: A + relativeTimeRange: + from: 300 + to: 0 + datasourceUid: prometheus + model: + datasource: + type: prometheus + uid: prometheus + editorMode: code + expr: 'probe_success{job="https"} or on(instance,job) (0 * up{job="https"})' + instant: true + intervalMs: 30000 + maxDataPoints: 43200 + refId: A + - refId: B + relativeTimeRange: + from: 0 + to: 0 + datasourceUid: __expr__ + model: + type: reduce + expression: A + reducer: last + refId: B + conditions: [] + - refId: C + relativeTimeRange: + from: 0 + to: 0 + datasourceUid: __expr__ + model: + type: threshold + expression: B + refId: C + conditions: + - evaluator: + type: lt + params: + - 1 + + - uid: sre-root-disk-low + title: Host Root Disk Space Low + condition: C + for: 5m + noDataState: NoData + execErrState: Error + annotations: + runbook_url: https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md + summary: "Host root disk availability below 15%" + description: "Available root filesystem space has remained below 15% for five minutes." + labels: + owner: sespinal + severity: warning + chapter: "5" + data: + - refId: A + relativeTimeRange: + from: 300 + to: 0 + datasourceUid: prometheus + model: + datasource: + type: prometheus + uid: prometheus + editorMode: code + expr: '100 * node_filesystem_avail_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"}' + instant: true + intervalMs: 30000 + maxDataPoints: 43200 + refId: A + - refId: B + relativeTimeRange: + from: 0 + to: 0 + datasourceUid: __expr__ + model: + type: reduce + expression: A + reducer: last + refId: B + conditions: [] + - refId: C + relativeTimeRange: + from: 0 + to: 0 + datasourceUid: __expr__ + model: + type: threshold + expression: B + refId: C + conditions: + - evaluator: + type: lt + params: + - 15 diff --git a/monitoring/grafana/provisioning/dashboards/dashboard.yml b/monitoring/grafana/provisioning/dashboards/dashboard.yml new file mode 100644 index 0000000..c5f8236 --- /dev/null +++ b/monitoring/grafana/provisioning/dashboards/dashboard.yml @@ -0,0 +1,12 @@ +apiVersion: 1 + +providers: + - name: SRE Monitoring + orgId: 1 + folder: SRE Monitoring + type: file + disableDeletion: true + editable: false + updateIntervalSeconds: 30 + options: + path: /var/lib/grafana/dashboards \ No newline at end of file diff --git a/monitoring/grafana/provisioning/datasources/prometheus.yml b/monitoring/grafana/provisioning/datasources/prometheus.yml new file mode 100644 index 0000000..df68a39 --- /dev/null +++ b/monitoring/grafana/provisioning/datasources/prometheus.yml @@ -0,0 +1,12 @@ +apiVersion: 1 + +datasources: + - name: Prometheus + uid: prometheus + type: prometheus + access: proxy + url: http://prometheus:9090 + isDefault: true + editable: false + jsonData: + timeInterval: 30s \ No newline at end of file diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml new file mode 100644 index 0000000..840c88b --- /dev/null +++ b/monitoring/prometheus/prometheus.yml @@ -0,0 +1,40 @@ +global: + scrape_interval: 30s + evaluation_interval: 30s + +scrape_configs: + - job_name: prometheus + static_configs: + - targets: + - prometheus:9090 + + - job_name: node-exporter + static_configs: + - targets: + - node-exporter:9100 + + - job_name: blackbox-exporter + static_configs: + - targets: + - blackbox-exporter:9115 + + - job_name: https + metrics_path: /probe + params: + module: + - http_2xx + static_configs: + - targets: + - https://git.sespinal590.dev/user/login + - https://ci.165.227.90.215.sslip.io/login + relabel_configs: + - source_labels: + - __address__ + target_label: __param_target + + - source_labels: + - __param_target + target_label: instance + + - target_label: __address__ + replacement: blackbox-exporter:9115