Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update class_thermal.go to ignore only invalid thermal zones which raise fs.PathError #634

Merged

Commits on Apr 16, 2024

  1. Update class_thermal.go

    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 <miliacristian4@gmail.com>
    miliacristian committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    ff53256 View commit details
    Browse the repository at this point in the history