summaryrefslogtreecommitdiff
path: root/f3s/prometheus
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-12-25 22:37:59 +0200
committerPaul Buetow <paul@buetow.org>2025-12-25 22:37:59 +0200
commit45a571efe65e05e8f8b1f9f11f1ecaa6969abd76 (patch)
tree2a24111cf76dcffffe9343d8aacd7f50afcb76f6 /f3s/prometheus
parent52782f8b1eceb9ba13f2ad322eec8ab8daa83dea (diff)
observability: display hostnames instead of IPs, enable etcd metrics
- Add relabel_configs to additional-scrape-configs.yaml for FreeBSD/OpenBSD hosts - Add node name relabeling for node-exporter on k3s nodes - Enable etcd metrics scraping with hostname relabeling - Add DRAFT blog post documenting the changes Amp-Thread-ID: https://ampcode.com/threads/T-019b571c-4afc-7789-becf-bc8a3c4e1e1f Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'f3s/prometheus')
-rw-r--r--f3s/prometheus/persistence-values.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/f3s/prometheus/persistence-values.yaml b/f3s/prometheus/persistence-values.yaml
index a0a782d..d3b8ae0 100644
--- a/f3s/prometheus/persistence-values.yaml
+++ b/f3s/prometheus/persistence-values.yaml
@@ -5,6 +5,31 @@ prometheus-node-exporter:
- sourceLabels: [__meta_kubernetes_pod_node_name]
targetLabel: instance
+kubeEtcd:
+ enabled: true
+ endpoints:
+ - 192.168.1.120
+ - 192.168.1.121
+ - 192.168.1.122
+ service:
+ enabled: true
+ port: 2381
+ targetPort: 2381
+ serviceMonitor:
+ relabelings:
+ - sourceLabels: [__address__]
+ regex: '192\.168\.1\.120:2381'
+ targetLabel: instance
+ replacement: 'r0.lan.buetow.org'
+ - sourceLabels: [__address__]
+ regex: '192\.168\.1\.121:2381'
+ targetLabel: instance
+ replacement: 'r1.lan.buetow.org'
+ - sourceLabels: [__address__]
+ regex: '192\.168\.1\.122:2381'
+ targetLabel: instance
+ replacement: 'r2.lan.buetow.org'
+
prometheus:
prometheusSpec:
additionalScrapeConfigsSecret: