YAML · 1495 bytes Raw Blame History
1 # Prometheus config for the shithub monitoring host. All scrape
2 # targets are reached over the WireGuard mesh (10.50.0.0/24) — never
3 # the public interface.
4 #
5 # Cardinality budget: per the S36 perf pass, we keep label cardinality
6 # bounded by NOT labelling on user_id, repo_id, or path. Route metrics
7 # bucket by route name (set by the chi router); HTTP status is a
8 # small enum.
9
10 global:
11 scrape_interval: 15s
12 evaluation_interval: 30s
13 external_labels:
14 cluster: shithub-prod
15
16 rule_files:
17 - "/etc/prometheus/rules/*.yml"
18
19 alerting:
20 alertmanagers:
21 - static_configs:
22 - targets: ["10.50.0.10:9093"]
23
24 scrape_configs:
25 - job_name: shithubd-web
26 metrics_path: /metrics
27 static_configs:
28 - targets:
29 - "10.50.0.20:8080"
30 - "10.50.0.21:8080"
31 labels:
32 service: shithubd
33 tier: web
34
35 - job_name: shithubd-worker
36 metrics_path: /metrics
37 static_configs:
38 - targets: ["10.50.0.20:8081"]
39 labels:
40 service: shithubd
41 tier: worker
42
43 - job_name: postgres
44 static_configs:
45 - targets: ["10.50.0.30:9187"]
46 labels:
47 service: postgres
48
49 - job_name: caddy
50 static_configs:
51 - targets: ["10.50.0.20:2019", "10.50.0.21:2019"]
52 labels:
53 service: caddy
54
55 - job_name: node
56 static_configs:
57 - targets:
58 - "10.50.0.20:9100"
59 - "10.50.0.21:9100"
60 - "10.50.0.30:9100"
61 labels:
62 service: node-exporter
63