From d92dc5d16367c73558357b910ee45d50a9943a30 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 07:29:48 +0900 Subject: [PATCH] feat(observability): read node-exporter textfile metrics The host timers from the k3s maturity work (last Gitea dump and k3s datastore backup, live drift count, API server and kubelet certificate expiry) write their results as *.prom files. node-exporter does not read any textfile directory, so Prometheus never sees them. Pass --collector.textfile.directory pointing at /var/lib/node_exporter/textfile_collector under the read-only host root mount the chart already has. No volume is added. The host installer creates the directory; until then the collector only reports an error metric. Verification: helm template of prometheus-node-exporter 4.56.1 with these values renders the argument next to --path.rootfs=/host/root. --- services/observability/node-exporter/values/home.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/observability/node-exporter/values/home.yaml b/services/observability/node-exporter/values/home.yaml index c6df077..a7a6adc 100644 --- a/services/observability/node-exporter/values/home.yaml +++ b/services/observability/node-exporter/values/home.yaml @@ -66,6 +66,14 @@ hostNetwork: false hostPID: false hostIPC: false +# Host timers (infrastructure/host/backup, owned by the k3s maturity work) +# write *.prom files here: last successful Gitea dump and k3s datastore +# backup, live drift count, API server and kubelet certificate expiry. The +# host root is already mounted read-only at /host/root. A missing directory +# only produces an error metric. +extraArgs: + - --collector.textfile.directory=/host/root/var/lib/node_exporter/textfile_collector + hostRootFsMount: enabled: true mountPropagation: None