From 05fa40ff5db235d89996c28a0648d864ebc08ba2 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Sun, 7 Jun 2026 11:24:29 +0200 Subject: [PATCH] prom targets for wan --- mon-system/monitoring.yaml | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/mon-system/monitoring.yaml b/mon-system/monitoring.yaml index 9beb9a3..7faaaa9 100644 --- a/mon-system/monitoring.yaml +++ b/mon-system/monitoring.yaml @@ -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: