From 72f63c8d83b39d9205280e37fdf1f14e3cd337ca Mon Sep 17 00:00:00 2001 From: Grant Fleming Date: Sun, 10 Nov 2024 10:01:57 +0100 Subject: [PATCH] node-exporter: use correct procfs location this sets the procfs location in node-exporter to /host/root/proc since the host fs is mounted at /host/root Fixes #2548 --- jsonnet/kube-prometheus/components/node-exporter.libsonnet | 1 + manifests/nodeExporter-daemonset.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/jsonnet/kube-prometheus/components/node-exporter.libsonnet b/jsonnet/kube-prometheus/components/node-exporter.libsonnet index 21aa9e2859..7b03368e20 100644 --- a/jsonnet/kube-prometheus/components/node-exporter.libsonnet +++ b/jsonnet/kube-prometheus/components/node-exporter.libsonnet @@ -213,6 +213,7 @@ function(params) { '--web.listen-address=' + std.join(':', [ne._config.listenAddress, std.toString(ne._config.port)]), '--path.sysfs=/host/sys', '--path.rootfs=/host/root', + '--path.procfs=/host/root/proc', '--path.udev.data=/host/root/run/udev/data', '--no-collector.wifi', '--no-collector.hwmon', diff --git a/manifests/nodeExporter-daemonset.yaml b/manifests/nodeExporter-daemonset.yaml index 1a91ebbbc7..06168fce12 100644 --- a/manifests/nodeExporter-daemonset.yaml +++ b/manifests/nodeExporter-daemonset.yaml @@ -30,6 +30,7 @@ spec: - --web.listen-address=127.0.0.1:9100 - --path.sysfs=/host/sys - --path.rootfs=/host/root + - --path.procfs=/host/root/proc - --path.udev.data=/host/root/run/udev/data - --no-collector.wifi - --no-collector.hwmon