Skip to content

Commit 03a6f95

Browse files
authored
Merge pull request gardener#3053 from wyb1/fix/node-exporter-config
Fix node-exporter configuration
2 parents eed8d2b + d303e7b commit 03a6f95

File tree

1 file changed

+5
-19
lines changed
  • charts/shoot-core/components/charts/monitoring/charts/node-exporter/templates

1 file changed

+5
-19
lines changed

charts/shoot-core/components/charts/monitoring/charts/node-exporter/templates/node-exporter.yaml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ spec:
7373
- /bin/node_exporter
7474
- --path.procfs=/host/proc
7575
- --path.sysfs=/host/sys
76-
- --collector.filesystem.ignored-fs-types=^(tmpfs|cgroup|nsfs|fuse\.lxcfs|rpc_pipefs)$
77-
- --collector.filesystem.ignored-mount-points=^/(rootfs/|host/)?(sys|proc|dev|host|etc|var/lib/docker)($|/)
76+
- --collector.filesystem.ignored-mount-points=^/.+$
7877
- --web.listen-address=:{{ .Values.ports.metrics }}
78+
- --path.rootfs=/host
7979
- --log.level=error
8080
- --no-collector.netclass
8181
ports:
@@ -108,24 +108,10 @@ spec:
108108
memory: 100Mi
109109
{{- end }}
110110
volumeMounts:
111-
- name: proc
112-
readOnly: true
113-
mountPath: /host/proc
114-
- name: sys
111+
- name: host
115112
readOnly: true
116-
mountPath: /host/sys
117-
# TODO(mvladev): Remove this once 0.17.X version of node exporter is released
118-
- name: rootfs
119-
readOnly: true
120-
mountPath: /rootfs
113+
mountPath: /host
121114
volumes:
122-
- name: proc
123-
hostPath:
124-
path: /proc
125-
- name: sys
126-
hostPath:
127-
path: /sys
128-
# TODO(mvladev): Remove this once 0.17.X version of node exporter is released
129-
- name: rootfs
115+
- name: host
130116
hostPath:
131117
path: /

0 commit comments

Comments
 (0)