Skip to content

Commit

Permalink
node-exporter: use correct procfs location
Browse files Browse the repository at this point in the history
this sets the procfs location in node-exporter to /host/root/proc
since the host fs is mounted at /host/root

Fixes prometheus-operator#2548
  • Loading branch information
Grant Fleming committed Nov 10, 2024
1 parent 69d9636 commit 72f63c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jsonnet/kube-prometheus/components/node-exporter.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions manifests/nodeExporter-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72f63c8

Please sign in to comment.