summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-10 10:46:35 +0300
committerPaul Buetow <paul@buetow.org>2026-05-10 10:46:35 +0300
commitd330a0b34a53417a2350014660806e7dc65e3843 (patch)
treedc06eb0f0785c917f2c00c254a537d9096103d5f
parentf8179f12afd53f3ce7f8a9f13155ecdef7c7382b (diff)
nfs-monitor: fix node_exporter textfile_collector Helm chart key
Use extraHostVolumeMounts (prometheus-node-exporter sub-chart key for host path mounts) instead of extraVolumes/extraVolumeMounts, which are for general volumes. This correctly wires /var/lib/node_exporter/ textfile_collector into the container so the textfile arg takes effect. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--f3s/argocd-apps/monitoring/prometheus.yaml15
-rw-r--r--f3s/prometheus/persistence-values.yaml12
2 files changed, 12 insertions, 15 deletions
diff --git a/f3s/argocd-apps/monitoring/prometheus.yaml b/f3s/argocd-apps/monitoring/prometheus.yaml
index f59be60..ecd3f5c 100644
--- a/f3s/argocd-apps/monitoring/prometheus.yaml
+++ b/f3s/argocd-apps/monitoring/prometheus.yaml
@@ -61,21 +61,18 @@ spec:
# Enable the textfile collector in the node_exporter DaemonSet so
# check-nfs-mount.sh can expose nfs_mount_monitor_consecutive_failures
# as a Prometheus metric without needing a separate exporter.
- # The hostPath mount maps /var/lib/node_exporter/textfile_collector
- # on the node into the container; the extra arg tells node_exporter
- # to scan that directory for .prom files.
+ # extraHostVolumeMounts is the prometheus-node-exporter sub-chart key
+ # for mounting host paths into the container; extraArgs adds the
+ # --collector.textfile.directory flag to enable the textfile scraper.
prometheus-node-exporter:
extraArgs:
- --collector.textfile.directory=/host/textfile_collector
- extraVolumes:
- - name: textfile-collector
- hostPath:
- path: /var/lib/node_exporter/textfile_collector
- type: DirectoryOrCreate
- extraVolumeMounts:
+ extraHostVolumeMounts:
- name: textfile-collector
+ hostPath: /var/lib/node_exporter/textfile_collector
mountPath: /host/textfile_collector
readOnly: true
+ mountPropagation: None
prometheus:
prometheusSpec:
diff --git a/f3s/prometheus/persistence-values.yaml b/f3s/prometheus/persistence-values.yaml
index e00f6d1..0841ff7 100644
--- a/f3s/prometheus/persistence-values.yaml
+++ b/f3s/prometheus/persistence-values.yaml
@@ -27,18 +27,18 @@ kubeControllerManager:
# Enable the textfile collector in the node_exporter DaemonSet so
# check-nfs-mount.sh can expose nfs_mount_monitor_consecutive_failures
# as a Prometheus metric without needing a separate exporter.
+# extraHostVolumeMounts is the prometheus-node-exporter sub-chart key
+# for mounting host paths into the container; extraArgs adds the
+# --collector.textfile.directory flag to enable the textfile scraper.
prometheus-node-exporter:
extraArgs:
- --collector.textfile.directory=/host/textfile_collector
- extraVolumes:
- - name: textfile-collector
- hostPath:
- path: /var/lib/node_exporter/textfile_collector
- type: DirectoryOrCreate
- extraVolumeMounts:
+ extraHostVolumeMounts:
- name: textfile-collector
+ hostPath: /var/lib/node_exporter/textfile_collector
mountPath: /host/textfile_collector
readOnly: true
+ mountPropagation: None
prometheus:
prometheusSpec: