Files
garage-s3-cluster/templates/prometheus-garage-scrape.yml
2026-09-06 13:50:54 +00:00

23 lines
756 B
YAML

# Scrape config for the Garage cluster (3 nodes over WireGuard).
# Copy into prometheus.yml scrape_configs. Replace <metrics_token> with the
# metrics_token from [admin] in garage.toml (all nodes share one in this cluster).
- job_name: 'garage'
metrics_path: /metrics
scheme: http
authorization:
type: Bearer
credentials: '<metrics_token>'
static_configs:
- targets: ['10.8.0.1:3903', '10.8.0.2:3903', '10.8.0.4:3903']
labels:
cluster: garage
# Health probe (200 = quorum ok, 503 = lost quorum)
- job_name: 'garage_health'
metrics_path: /health
scheme: http
static_configs:
- targets: ['10.8.0.1:3903', '10.8.0.2:3903', '10.8.0.4:3903']
labels:
cluster: garage