Add Prometheus/Grafana monitoring stack (refs #19)
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/head This commit looks good
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>
This commit is contained in:
@@ -35,6 +35,9 @@ services:
|
||||
# Jenkins resolves git.yebilly.me to Caddy here, so checkout and status
|
||||
# calls stay on the droplet instead of hairpinning through the public IP.
|
||||
aliases: [git.yebilly.me]
|
||||
probe:
|
||||
# Blackbox Exporter (monitoring/compose.yaml) probes both sites through Caddy here.
|
||||
aliases: [git.yebilly.me, ci.yebilly.me]
|
||||
depends_on: [gitea]
|
||||
|
||||
# Jenkins LTS controller (Assignment 6). Builds run on its single executor.
|
||||
@@ -66,3 +69,10 @@ volumes:
|
||||
|
||||
networks:
|
||||
web:
|
||||
# Fixed subnet so Blackbox Exporter can have a fixed address (172.30.90.10), the only
|
||||
# private address the ci.yebilly.me allowlist admits. The web subnet stays denied:
|
||||
# Docker's proxy presents IPv6 and hairpin visitors as its gateway, 172.18.0.1.
|
||||
probe:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.30.90.0/28
|
||||
|
||||
Reference in New Issue
Block a user