procfs
procfs copied to clipboard
Dont check for temperatures in /thermal_zone where mode=disabled
Relevant issue
Fixes: https://github.com/prometheus/node_exporter/issues/2980
Current behaviour
node_exporterchecks for the contents oftempfile even whenmodeis disabled due to which in the case when temp file contains a non desired value thethermal_zonecollector fails and no longer gives its related metrics
Proposed solution
- Have an early exit and dont check rest if
modeis set to disabled
Testing
- replacing
github.com/prometheus/procfsinnode_exportergo.modto local dev setup ofprocfsand comparing the results in both
cc: @discordianfish