prom targets for wan

This commit is contained in:
2026-06-07 11:24:29 +02:00
parent ef77ab9285
commit 05fa40ff5d
+68
View File
@@ -237,6 +237,74 @@ data:
regex: 'ak-outpost-(.*)-outpost'
replacement: '$1'
# --- end-to-end latency + loss (ICMP) to many destinations ---
- job_name: 'wan-icmp'
metrics_path: /probe
params:
module: [icmp]
scrape_interval: 15s
static_configs:
- targets:
- 8.8.8.8
- 1.1.1.1
- jarrs.eu # Hetzner
- telex.hu
- store.steampowered.com
- 192.168.0.1 # gateway
- 37.191.56.193 # your public IP (update if it changes)
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: wan-monitor.admin-system:9115
# --- HTTP phase breakdown (dns/connect/tls/processing/transfer) ---
- job_name: 'wan-http'
metrics_path: /probe
params:
module: [http_2xx]
scrape_interval: 30s
static_configs:
- targets:
- https://telex.hu
- https://store.steampowered.com
- https://jarrs.eu
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: wan-monitor.admin-system:9115
# --- DNS resolution time per resolver (Pi-hole vs public) ---
- job_name: 'wan-dns'
metrics_path: /probe
params:
module: [dns_udp]
scrape_interval: 30s
static_configs:
- targets:
- 192.168.0.250 # Pi-hole
- 1.1.1.1
- 8.8.8.8
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: wan-monitor.admin-system:9115
# --- irtt (UDP quality) + iperf3 (throughput) textfile metrics ---
- job_name: 'wan-probe'
metrics_path: /metrics
scrape_interval: 30s
static_configs:
- targets: ['wan-monitor.admin-system:9116']
# CloudNativePG - Postgres metrics per instance
- job_name: 'cloudnativepg'
kubernetes_sd_configs: