From ddc35266c94f67d01166765983d660bf933dcb22 Mon Sep 17 00:00:00 2001 From: Steven Fitzpatrick Date: Mon, 6 Jul 2020 12:40:57 -0500 Subject: [PATCH] Node Exporter: Add rootfs mount argument Change-Id: I0a144e2a05b9617d2cb46bcb56c746ca05743c1b --- prometheus-node-exporter/templates/bin/_node-exporter.sh.tpl | 3 +++ prometheus-node-exporter/values.yaml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/prometheus-node-exporter/templates/bin/_node-exporter.sh.tpl b/prometheus-node-exporter/templates/bin/_node-exporter.sh.tpl index 2827d5a46..7b268d690 100644 --- a/prometheus-node-exporter/templates/bin/_node-exporter.sh.tpl +++ b/prometheus-node-exporter/templates/bin/_node-exporter.sh.tpl @@ -28,4 +28,7 @@ exec /bin/node_exporter \ {{- if .Values.conf.collectors.filesystem.ignored_mount_points }} --collector.filesystem.ignored-mount-points={{ .Values.conf.collectors.filesystem.ignored_mount_points }} \ {{- end }} + {{- if .Values.conf.collectors.filesystem.rootfs_mount_point }} + --path.rootfs={{ .Values.conf.collectors.filesystem.rootfs_mount_point }} \ + {{- end }} --collector.ntp.server={{ .Values.conf.ntp_server_ip }} diff --git a/prometheus-node-exporter/values.yaml b/prometheus-node-exporter/values.yaml index dfeeb0f99..9acac03e5 100644 --- a/prometheus-node-exporter/values.yaml +++ b/prometheus-node-exporter/values.yaml @@ -17,7 +17,7 @@ --- images: tags: - node_exporter: docker.io/prom/node-exporter:v0.15.0 + node_exporter: docker.io/prom/node-exporter:v0.18.1 dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0 image_repo_sync: docker.io/docker:17.07.0 pull_policy: IfNotPresent @@ -160,4 +160,5 @@ conf: directory: /var/log/node-exporter-vfstats filesystem: ignored_mount_points: + rootfs_mount_point: ...