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

Minor riemann-hwmon improvements #298

Merged
merged 2 commits into from
Jun 29, 2024
Merged

Minor riemann-hwmon improvements #298

merged 2 commits into from
Jun 29, 2024

Conversation

smortex
Copy link
Member

@smortex smortex commented Jun 29, 2024

  • Improve riemann-hwmon reliability
  • Avoid trailing space when sensor has no label

Some old hardware do not report CPU package temperature and the creation
of `temp1_*` (reserved for package temperature) files for the CPU is
skipped.  When this happen, other `temp2_*`, `temp3_*` etc. files are
available as usual for each core temperature.

Because we tried to enumerate the possible device names, we failed to
catpure these sensor values.

Moreover, people report on the internet "holes" in the numbering of the
hwmon files, skipping from 8 to 10.

In order to avoid these issues, rely on globbing to find all appropriate
files rather than on enumerations.
Some sensors do not have a label.  In this case, we do not want to have
a trailing space in the service name.
@smortex smortex added the bug Something isn't working label Jun 29, 2024
Copy link
Member

@jamtur01 jamtur01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jamtur01 jamtur01 merged commit d1a8c74 into main Jun 29, 2024
7 checks passed
@smortex smortex deleted the improve-hwmon branch July 2, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants