You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my machine, reading some cooling devices cur_state throws a EINVAL error, so none of the thermal or cooling device metrics are gathered at all. I feel like it may need some error handling. I would happily push a PR with that, something similar to #705 or #300. If that sounds reasonable, I need some advice from the maintainers about what is the best way to handle errors — provide a default value for the metric that causes an error, skip the device with such a metric at all, or something else.
Activity
discordianfish commentedon Nov 12, 2025
I'd need to have more details to say for sure, but it sounds reasonable
malcolmr commentedon Feb 21, 2026
Same issue here, fwiw: reading
cur_statereturnsEINVALon one of my devices, and so none of the cooling device stats are available./sys/class/thermal/cooling_device14$ cat type cur_state max_state TFN1 cat: cur_state: Invalid argument 50I assume this is also the root cause for prometheus/node_exporter/issues/3420 (which is how I found this issue).
discordianfish commentedon Feb 23, 2026
Yeah I guess we should just skip these. PRs welcome!
class_cooling_device: ignore EINVAL (etc) when reading files.
class_cooling_device: ignore EINVAL (etc) when reading files. (promet…