Add Prometheus/Grafana monitoring and SRE manual chapter (Assignment 7) #22

Merged
bill merged 5 commits from feature/issue-19-monitoring into main 2026-10-28 18:18:36 +00:00
Owner

Closes #19. Assignment 7 (instructor manual v1.42, Chapter 5).

What changes

  • monitoring/ — Prometheus 3.15.1, Grafana OSS 13.2.5, Node Exporter 1.12.1,
    Blackbox Exporter 0.29.1, pinned by tag + digest and memory-capped for the
    1 GiB droplet; no host ports. Grafana provisioning (data source, "Group 1 SRE"
    dashboard, two alert rules, Discord contact point via env var), README with
    deploy/backup/rollback and runbooks, EVIDENCE.md with timestamped results.
  • deploy/ — private probe network gitea_probe (172.30.90.0/28); the ci
    allowlist admits only the probe address 172.30.90.10; new
    metrics.yebilly.me route behind the same allowlist. Already live on The-Ocean.
  • manual v5.0 — new chapter "Introduction to SRE: Monitoring and
    Reliability", Document History, Hosts/Passwords tables, glossary, AI prompt
    log; title page set to Assignment 7.

Verified on the droplet (28 Oct 2026)

  • All scrape targets up; both HTTPS probes 200; host metrics match free/df.
  • Exposure: ports 3000/8080/9090/9100/9115 closed on IPv4 and IPv6; Grafana
    API 401 without login; IPv6 visitors get 403 at ci/metrics.
  • Alerts to Discord: contact-point test; disk rule fired/resolved (threshold
    temporarily 70%, restored to 15%); Jenkins outage drill — firing ~2 min after
    stop, resolved ~1.5 min after restart.
  • Prometheus/Grafana restarts keep history, dashboard, and rules.
  • Jenkins pipeline/head passed on d3a5e6b (#1) and b6cf080 (#2, post-recovery).

For the reviewer (@vsun1)

  • Grafana: https://metrics.yebilly.me (account vsun1, Viewer — change the
    temporary password at first login).
  • Check the manual chapter (Chapter 8) and that no secret appears anywhere;
    secrets live only in ~/monitoring/.env.secret on the droplet.
  • Follow-ups: #20 (off-droplet uptime check, owner Vincent), #21 (swap churn,
    owner Billy).
  • Merging to main runs the Automated Manual Build on the latex-local runner —
    please have it online.
Closes #19. Assignment 7 (instructor manual v1.42, Chapter 5). ## What changes - **monitoring/** — Prometheus 3.15.1, Grafana OSS 13.2.5, Node Exporter 1.12.1, Blackbox Exporter 0.29.1, pinned by tag + digest and memory-capped for the 1 GiB droplet; no host ports. Grafana provisioning (data source, "Group 1 SRE" dashboard, two alert rules, Discord contact point via env var), README with deploy/backup/rollback and runbooks, EVIDENCE.md with timestamped results. - **deploy/** — private probe network `gitea_probe` (172.30.90.0/28); the ci allowlist admits only the probe address 172.30.90.10; new `metrics.yebilly.me` route behind the same allowlist. Already live on The-Ocean. - **manual v5.0** — new chapter "Introduction to SRE: Monitoring and Reliability", Document History, Hosts/Passwords tables, glossary, AI prompt log; title page set to Assignment 7. ## Verified on the droplet (28 Oct 2026) - All scrape targets up; both HTTPS probes 200; host metrics match `free`/`df`. - Exposure: ports 3000/8080/9090/9100/9115 closed on IPv4 and IPv6; Grafana API 401 without login; IPv6 visitors get 403 at ci/metrics. - Alerts to Discord: contact-point test; disk rule fired/resolved (threshold temporarily 70%, restored to 15%); Jenkins outage drill — firing ~2 min after stop, resolved ~1.5 min after restart. - Prometheus/Grafana restarts keep history, dashboard, and rules. - Jenkins `pipeline/head` passed on d3a5e6b (#1) and b6cf080 (#2, post-recovery). ## For the reviewer (@vsun1) - Grafana: https://metrics.yebilly.me (account `vsun1`, Viewer — change the temporary password at first login). - Check the manual chapter (Chapter 8) and that no secret appears anywhere; secrets live only in `~/monitoring/.env.secret` on the droplet. - Follow-ups: #20 (off-droplet uptime check, owner Vincent), #21 (swap churn, owner Billy). - Merging to main runs the Automated Manual Build on the `latex-local` runner — please have it online.
bill added 2 commits 2026-10-28 17:07:54 +00:00
Add Prometheus/Grafana monitoring stack (refs #19)
vpn-dns-gateway/pipeline/head This commit looks good
d3a5e6bc73
Assignment 7 (instructor manual v1.42, Chapter 5): Prometheus, Grafana OSS,
Node Exporter and Blackbox Exporter beside Gitea/Jenkins on The-Ocean, pinned
by tag and digest, memory-capped for the 1 GiB droplet, no host ports.

- monitoring/: compose, scrape and probe config, Grafana provisioning
  (data source, Group 1 SRE dashboard, two alert rules, Discord contact
  point via env var), README with deploy/backup/rollback and runbooks,
  EVIDENCE.md with the deploy, capacity and exposure test records.
- deploy/: private probe network (172.30.90.0/28) with Caddy aliases;
  ci allowlist admits only the Blackbox address 172.30.90.10; new
  metrics.yebilly.me route behind the same allowlist.
- manual images: DNS record, Discord webhook, contact-point test, dashboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record alert tests, Jenkins outage drill, and restart persistence (refs #19)
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
b6cf080618
- Dashboard: CPU panel adds an I/O wait series; the background CPU on
  the 1 GiB droplet is mostly swap-in wait, not computation.
- EVIDENCE.md: normal Jenkins build #1 vs host metrics (no attributable
  change), Discord contact-point test, capacity alert test (threshold
  raised to 70% on the droplet, fired after 5 m, restored to 15%),
  controlled Jenkins outage timeline (firing ~2 m after injection,
  recovery ~1 m after restart), and Prometheus/Grafana restart
  persistence with no collection gap.
- Screenshots: build window, disk alert firing/resolved, Jenkins alert
  firing/resolved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bill requested review from vsun1 2026-10-28 17:07:54 +00:00
vsun1 approved these changes 2026-10-28 17:09:21 +00:00
Dismissed
vsun1 left a comment
Owner

Approved

Approved
bill added 1 commit 2026-10-28 17:12:05 +00:00
Add SRE monitoring chapter and manual v5.0 (refs #19)
vpn-dns-gateway/pipeline/pr-main This commit looks good
336eaaefa7
New chapter "Introduction to SRE: Monitoring and Reliability" covering the
eight Assignment 7 rubric rows: deployment and capacity trial, metrics and
probes, HTTPS and exposure tests, dashboard and build comparison, SLI/SLO
worked example and measured window, alert rules and tests, the Jenkins
outage exercise with blameless review (#20, #21), and controls.

- Title page and abstract for Assignment 7 "Grafana and Prometheus SRE --
  Group", version 5.0; Document History entry.
- Hosts table: monitoring containers, ports, volumes, metrics DNS, swap,
  disabled host services, monitoring and backup status.
- Passwords table: Grafana billy and vsun1, monitoring secrets file,
  Discord webhook (hints only).
- Glossary: SLI, SLA, SRE, error budget, exporter, scrape, contact point,
  blameless review. AI prompt log record.
- EVIDENCE.md: SLO window, post-recovery build, probe status codes,
  improvement issues, Grafana accounts. Outage dashboard figure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bill dismissed vsun1's review 2026-10-28 17:12:05 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

vsun1 approved these changes 2026-10-28 17:13:53 +00:00
Dismissed
vsun1 left a comment
Owner

Approved

Approved
bill added 1 commit 2026-10-28 17:53:10 +00:00
An independent review of the SRE chapter against the instructor's rubric
found gaps; each was fixed and, where operational, tested on the droplet.

Monitoring:
- New Grafana rule "Monitoring target down" (up < 1 for 1 m, no data ->
  Alerting). Tested by stopping Blackbox Exporter 17:34:44-17:37:52 UTC:
  it fired and resolved, and "HTTPS service down" fired on NoData when
  every probe series disappeared.
- Blackbox Exporter runs as nobody (65534) instead of the image's root.
- README: runbook for the new rule; contact-point test prompts for the
  password; secrets section reflects the replaced admin password.

Manual (v5.0):
- Alert table with all three rules and their summaries; runbooks in the
  PDF; accurate no-data description; collection-test figure.
- Diagram shows networks per container and the existing volumes.
- Targets table, CPU counters vs /proc/stat, probe module excerpt,
  container identities and mounts, backup command, exposure commands,
  replaced Grafana admin credential, PR #22 and review gate.
- Bibliography enabled with SRE Workbook and tool documentation.
- Corrected baseline memory figures, Jenkins start-up length, dashboard
  version wording, and start-up order; links point to main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bill dismissed vsun1's review 2026-10-28 17:53:10 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

bill added 1 commit 2026-10-28 18:15:48 +00:00
Address second chapter audit: accuracy and presentation (refs #19)
vpn-dns-gateway/pipeline/pr-main This commit looks good
11270cfced
A second independent, grader-style review of the built PDF found smaller
gaps; all fixed except template-wide items left unchanged.

- Build comparison: phase labels match the 1-minute rate windows
  (15:17:30 is before the build), 15:19:30 row added, Phase header,
  2-minute vs 1-minute rate difference explained, no-annotation reason,
  and the baseline-build deviation from Step 1 stated.
- Full image digests listed; metric inventory gains a labels column;
  collection-test figure adds the HTTPS resolved capture.
- Corrections: network membership of the exporters, dashboard version
  wording, "two and a half minutes", diagram network name, "A SLO/SLA",
  -- rendering in retention flags, dashboard capture predating the
  I/O-wait line.
- Presentation: login URLs as a list, floats for DNS/dashboard figures,
  split wrapped queries, unbroken restart policy, Grafana OSS casing in
  the bibliography, Windows taskbar cropped from Grafana screenshots.
- Starting commit linked; backup pins alpine:3.22 and documents restore;
  MFA recorded for Billy's Discord and GitHub; EVIDENCE.md records the
  PR #22 approvals, pr-main checks, and the live verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vsun1 approved these changes 2026-10-28 18:18:11 +00:00
vsun1 left a comment
Owner

Approved

Approved
bill merged commit 34c4c7488a into main 2026-10-28 18:18:36 +00:00
bill deleted branch feature/issue-19-monitoring 2026-10-28 18:19:34 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ssw590-group1/vpn-dns-gateway#22