Add Prometheus/Grafana monitoring stack and Grafana route (#11)
seat-back-trivia/pipeline/head This commit looks good
seat-back-trivia/pipeline/head This commit looks good
Four pinned containers on a private network with memory caps for the 512 MB droplet; provisioned data source, six-panel dashboard, HTTPS-availability and root-disk alert rules, and the team-alerts Discord contact point. The Discord webhook comes from the untracked grafana.secrets.env. Bring deploy/Caddyfile in line with the droplet (ci route) and add metrics.pollefeys.dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
55ab869735
commit
adb8d5fab1
@@ -0,0 +1,37 @@
|
||||
# Scrape and rule timing: every 30 s. Targets are container names on the
|
||||
# private monitoring network; none of these ports is published.
|
||||
global:
|
||||
scrape_interval: 30s
|
||||
evaluation_interval: 30s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ["prometheus:9090"]
|
||||
|
||||
- job_name: node
|
||||
static_configs:
|
||||
- targets: ["node-exporter:9100"]
|
||||
|
||||
# Blackbox Exporter's own metrics, separate from the probes it runs.
|
||||
- job_name: blackbox
|
||||
static_configs:
|
||||
- targets: ["blackbox-exporter:9115"]
|
||||
|
||||
# HTTPS login-page probes through Caddy. Each URL becomes the probe target
|
||||
# and the instance label; the scrape itself goes to blackbox-exporter:9115.
|
||||
- job_name: https
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://git.pollefeys.dev/user/login
|
||||
- https://ci.pollefeys.dev/login
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: blackbox-exporter:9115
|
||||
Reference in New Issue
Block a user