-
Notifications
You must be signed in to change notification settings - Fork 84
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
smartctl JSON keys are all wrong #42
Comments
For example I'm getting This is what's being logged:
|
Hi! I tested your #41 and it's working for me. I have |
That's because it doesn't exist. I'm kind of tempted to rewrite this exporter :/ It makes far too many assumptions about the data it's expecting. I'm getting some data now and I have a working Dashbaord, but all of the counters and gauges the exporter exposes (presumably trying to populate it from I really had to have a Dashboard gogether at all by grokking the actual attribute table (which is exposed directly by the exporter). |
The
You can't rewrite the exporter without making any assumptions on what smartctl returns, since that is not standardized and differs per each disk and/or vendor. Which disk are you testing this with? 😉 |
Btw. the SMART attributes table is also parsed from JSON: Lines 154 to 189 in e27581d
|
As I said, the problem right now is that the top-level exported counters/gaguages are not being populated. I believe this is because as you rightly pointed out, For example the following metric is zero (so are a bunch of other ones):
|
So what? It's zero for your disk, but arguably not for other disks. So far this seems like a complaint that this exporter does not behave well for your disk (and we still have no idea which model/vendor it actually is). Do you actually have a general improvement suggestion? |
Da fuq?! Why the hostility? 😳 I'm actually trying to improve this exporter 🤦♂️ |
So again - what's your improvement suggestion? |
@lahwaacz Jakub, dude, what is your problem? Why are you being so hostile? I've literally spnet 100+hrs this week working in my day job, so I'm quite tired and exhausted. Right now let's focus on getting some outstanding PRs merged. That's probably the most impactful thing we can do here. Who has the ability to review and merge PRs? |
I've fixed this exporter so that at least it runs without crashing in #41 -- But now I'm seeing that the output of the JSOn from
smartctl --json --xall /dev/sdX
is different to the keys the code is using in all of it's JSON queries.What version of smartctl was this tested with?!
The text was updated successfully, but these errors were encountered: