From 52782f8b1eceb9ba13f2ad322eec8ab8daa83dea Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 25 Dec 2025 22:13:08 +0200 Subject: use hosts not IPs --- f3s/prometheus/additional-scrape-configs.yaml | 21 +++++++++++++++++++++ f3s/prometheus/persistence-values.yaml | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/f3s/prometheus/additional-scrape-configs.yaml b/f3s/prometheus/additional-scrape-configs.yaml index 93035d8..b8fc9fa 100644 --- a/f3s/prometheus/additional-scrape-configs.yaml +++ b/f3s/prometheus/additional-scrape-configs.yaml @@ -11,3 +11,24 @@ - '192.168.2.111:9100' # fishfinger via WireGuard labels: os: openbsd + relabel_configs: + - source_labels: [__address__] + regex: '192\.168\.2\.130:9100' + target_label: instance + replacement: 'f0.lan.buetow.org' + - source_labels: [__address__] + regex: '192\.168\.2\.131:9100' + target_label: instance + replacement: 'f1.lan.buetow.org' + - source_labels: [__address__] + regex: '192\.168\.2\.132:9100' + target_label: instance + replacement: 'f2.lan.buetow.org' + - source_labels: [__address__] + regex: '192\.168\.2\.110:9100' + target_label: instance + replacement: 'blowfish.buetow.org' + - source_labels: [__address__] + regex: '192\.168\.2\.111:9100' + target_label: instance + replacement: 'fishfinger.buetow.org' diff --git a/f3s/prometheus/persistence-values.yaml b/f3s/prometheus/persistence-values.yaml index c7f3a2b..a0a782d 100644 --- a/f3s/prometheus/persistence-values.yaml +++ b/f3s/prometheus/persistence-values.yaml @@ -1,3 +1,10 @@ +prometheus-node-exporter: + prometheus: + monitor: + relabelings: + - sourceLabels: [__meta_kubernetes_pod_node_name] + targetLabel: instance + prometheus: prometheusSpec: additionalScrapeConfigsSecret: -- cgit v1.2.3