Skip to content

Conversation

@ccastiglione-reply
Copy link

Sum-up: ignore invalid thermal zones to avoid discharding of all thermal zone metric.

Reading sysfs entries in the thermal zone may return EINVAL if the underlying data is not yet available or is in an inconsistent state. Continue on EINVAL allows metrics collection to continue successfully for other valid thermal zones.

Example of error log: time=2025-11-05T15:26:06.536+01:00 level=ERROR source=collector.go:168 msg="collector failed" name=thermal_zone duration_seconds=0.171564844 err="invalid argument"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant