Skip to content

Commit d745180

Browse files
committed
enable hwmon for sensor collection for bare metal clusters
Enable the hwmon data collection so that hardware telemetry like CPU temperature and fan speeds are available for bare metal clusters. Signed-off-by: Doug Hellmann <[email protected]>
1 parent 10453df commit d745180

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Adjusted NodeClockNotSynchronising, NodeNetworkReceiveErrs, and NodeNetworkTransmitErrs alerts.
88
- [#962](https://github.com/openshift/cluster-monitoring-operator/pull/962) Enable namespace by pod and pod total networking Grafana dashboards.
99
- [#959](https://github.com/openshift/cluster-monitoring-operator/pull/959) Remove memory limits from prometheus-config-reloader in user workload monitoring
10+
- [#971](https://github.com/openshift/cluster-monitoring-operator/pull/971) Enable `hwmon` in node-exporter for hardware sensor data collection
1011

1112
## 4.6
1213

assets/node-exporter/daemonset.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ spec:
2323
- --path.sysfs=/host/sys
2424
- --path.rootfs=/host/root
2525
- --no-collector.wifi
26-
- --no-collector.hwmon
2726
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
2827
- --collector.mountstats
2928
- --collector.cpu.info

jsonnet/node-exporter.jsonnet

+4-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ local tlsVolumeName = 'node-exporter-tls';
123123
}
124124
else
125125
c {
126-
args+: ['--collector.mountstats', '--collector.cpu.info', '--collector.textfile.directory=' + textfileDir],
126+
// Remove the flag to disable hwmon that is set upstream so we
127+
// gather that data (especially for bare metal clusters), and
128+
// add flags to collect data not included by default.
129+
args: [a for a in c.args if a != '--no-collector.hwmon'] + ['--collector.mountstats', '--collector.cpu.info', '--collector.textfile.directory=' + textfileDir],
127130
terminationMessagePolicy: 'FallbackToLogsOnError',
128131
volumeMounts+: [
129132
containerVolumeMount.new(textfileVolumeName, textfileDir, true),

pkg/manifests/bindata.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)