-
Notifications
You must be signed in to change notification settings - Fork 103
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
fix: allow configuring powermode check to work better with SSDs #242
base: master
Are you sure you want to change the base?
fix: allow configuring powermode check to work better with SSDs #242
Conversation
e80b26f
to
b442301
Compare
Requires: prometheus-community/smartctl_exporter/pull/242 Signed-off-by: Robin Björklin <[email protected]>
Requires: prometheus-community/smartctl_exporter/pull/242 Signed-off-by: Robin Björklin <[email protected]>
Requires: prometheus-community/smartctl_exporter#242 Signed-off-by: Robin Björklin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to avoid invalid string injection, would you please add a switch
statement in main.go to validate input of the flag?
I hope one would fix & merge this pr. 🙏 I've got the same issue with a USB drive. Fixed it by adding a UDEV rule:
|
7abdde5
to
34b085a
Compare
fixes prometheus-community#91 Signed-off-by: Robin Björklin <[email protected]>
34b085a
to
9bf4ec8
Compare
@SuperQ I'm not sure what you had in mind but does this work for you? |
By setting
--nocheck=never
I can correctly scrape SMART metrics from SSDs that report astandby
power state:# hdparm -C /dev/sda /dev/sda: drive state is: standby
fixes #91