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.
This commit is contained in:
DongHyeonka
2026-11-12 07:29:48 +09:00
parent 4551a2ece6
commit d92dc5d163
@@ -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