summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-12-25 22:13:08 +0200
committerPaul Buetow <paul@buetow.org>2025-12-25 22:13:08 +0200
commit52782f8b1eceb9ba13f2ad322eec8ab8daa83dea (patch)
tree8fae73e9b3fdc6f996e8b16cbe890cfe8dbf877b
parent30e13e6a34989bf9eb3cfebea3c667e962c5f586 (diff)
use hosts not IPs
-rw-r--r--f3s/prometheus/additional-scrape-configs.yaml21
-rw-r--r--f3s/prometheus/persistence-values.yaml7
2 files changed, 28 insertions, 0 deletions
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: