Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update class_thermal.go (prometheus#634)
Sum-up: ignore invalid thermal zones to avoid discharding of all thermal zone metric Some thermal zones generates errors fs.PathError causing the lost of all metric data also for valid thermal zone. Example of error log: ts=2024-04-10T14:23:57.064Z caller=collector.go:169 level=error msg="collector failed" name=thermal_zone duration_seconds=0.053034792 err="read /sys/class/thermal/thermal_zone24/temp: invalid argument" Signed-off-by: miliacristian <[email protected]>
- Loading branch information