Skip to content

Update sysfs/class_thermal: continue on EINVAL in parseClassThermalZone to ignore only invalid thermal zones which raise "invalid argument"#763

Open
ccastiglione-reply wants to merge 1 commit intoprometheus:masterfrom
Gridspertise:master

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"

@discordianfish
Copy link
Member

@ccastiglione-reply Needs DCO sign off

Signed-off-by: ccastiglione-reply <c.castiglione@reply.it>
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.

2 participants