From fecbc61e5dd453f08c35e698ecb298ffedc687ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bj=C3=B6rklin?= Date: Mon, 9 Sep 2024 16:06:02 -0700 Subject: [PATCH] feat: allow configuring smartctl's powermode check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Requires: prometheus-community/smartctl_exporter/pull/242 Signed-off-by: Robin Björklin --- charts/prometheus-smartctl-exporter/templates/daemonset.yaml | 1 + charts/prometheus-smartctl-exporter/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/prometheus-smartctl-exporter/templates/daemonset.yaml b/charts/prometheus-smartctl-exporter/templates/daemonset.yaml index dc4c1400cae5..7bceed8f63e7 100644 --- a/charts/prometheus-smartctl-exporter/templates/daemonset.yaml +++ b/charts/prometheus-smartctl-exporter/templates/daemonset.yaml @@ -40,6 +40,7 @@ spec: imagePullPolicy: {{ $global.Values.image.pullPolicy }} args: - '--smartctl.path={{ $config.smartctl_location }}' + - '--smartctl.powermode-check={{ $config.smartctl_powermode_check }}' - '--smartctl.interval={{ $config.collect_not_more_than_period }}' {{ range $config.devices }} - '--smartctl.device={{ . }}' diff --git a/charts/prometheus-smartctl-exporter/values.yaml b/charts/prometheus-smartctl-exporter/values.yaml index 75e180be8a05..75b58c6b0471 100644 --- a/charts/prometheus-smartctl-exporter/values.yaml +++ b/charts/prometheus-smartctl-exporter/values.yaml @@ -14,6 +14,7 @@ common: bind_to: "0.0.0.0:9633" url_path: "/metrics" smartctl_location: /usr/sbin/smartctl + smartctl_powermode_check: standby collect_not_more_than_period: 120s serviceMonitor: