# Prometheus config for the shithub monitoring host. All scrape # targets are reached over the WireGuard mesh (10.50.0.0/24) — never # the public interface. # # Cardinality budget: per the S36 perf pass, we keep label cardinality # bounded by NOT labelling on user_id, repo_id, or path. Route metrics # bucket by route name (set by the chi router); HTTP status is a # small enum. global: scrape_interval: 15s evaluation_interval: 30s external_labels: cluster: shithub-prod rule_files: - "/etc/prometheus/rules/*.yml" alerting: alertmanagers: - static_configs: - targets: ["10.50.0.10:9093"] scrape_configs: - job_name: shithubd-web metrics_path: /metrics static_configs: - targets: - "10.50.0.20:8080" - "10.50.0.21:8080" labels: service: shithubd tier: web - job_name: shithubd-worker metrics_path: /metrics static_configs: - targets: ["10.50.0.20:8081"] labels: service: shithubd tier: worker - job_name: postgres static_configs: - targets: ["10.50.0.30:9187"] labels: service: postgres - job_name: caddy static_configs: - targets: ["10.50.0.20:2019", "10.50.0.21:2019"] labels: service: caddy - job_name: node static_configs: - targets: - "10.50.0.20:9100" - "10.50.0.21:9100" - "10.50.0.30:9100" labels: service: node-exporter