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>
31 lines
896 B
YAML
31 lines
896 B
YAML
global:
|
|
scrape_interval: 30s
|
|
|
|
scrape_configs:
|
|
- job_name: prometheus
|
|
static_configs:
|
|
- targets: ["prometheus:9090"]
|
|
- job_name: node
|
|
static_configs:
|
|
- targets: ["node-exporter:9100"]
|
|
- job_name: blackbox
|
|
static_configs:
|
|
- targets: ["blackbox-exporter:9115"]
|
|
# Multi-target pattern: each URL becomes the probe target and the instance label;
|
|
# the scrape itself goes to Blackbox Exporter's /probe endpoint.
|
|
- job_name: https
|
|
metrics_path: /probe
|
|
params:
|
|
module: [http_2xx]
|
|
static_configs:
|
|
- targets:
|
|
- https://git.yebilly.me/user/login
|
|
- https://ci.yebilly.me/login
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
target_label: __param_target
|
|
- source_labels: [__param_target]
|
|
target_label: instance
|
|
- target_label: __address__
|
|
replacement: blackbox-exporter:9115
|