Skip to content

Commit a872330

Browse files
Merge pull request #971 from dhellmann/enable-hwmon
enable hwmon for sensor collection for bare metal clusters
2 parents 7ae3675 + 00db9df commit a872330

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
@@ -9,6 +9,7 @@
99
- [#959](https://github.com/openshift/cluster-monitoring-operator/pull/959) Remove memory limits from prometheus-config-reloader in user workload monitoring
1010
- [#969](https://github.com/openshift/cluster-monitoring-operator/pull/969) Bump Thanos v0.16.0
1111
- [#970](https://github.com/openshift/cluster-monitoring-operator/pull/970) Bump prometheus-operator v0.43.0.
12+
- [#971](https://github.com/openshift/cluster-monitoring-operator/pull/971) Enable `hwmon` in node-exporter for hardware sensor data collection
1213

1314
## 4.6
1415

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)