-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add device type support #107
Conversation
Allow passing a custom `-d` / `--device=` flag to smartctl. The default is the same (`auto`) as upstream smartctl. Fixes: #26 Signed-off-by: SuperQ <[email protected]>
I think it can (and in some cases, must?) be passed multiple times. sometimes one per drive? |
According to the docs, it can only set once per device. But, given that we loop over the devices, it does make sense that we allow setting it differently per device. We could do something like parse the device like |
@SuperQ As already suggested by you, this change should be adapted so that it is possible to set the device type per Example:
The part where the result of Example:
|
@darxriggs thank you for good explanation! |
Example outputs from NVMe RAID |
Looking at the currently generated metrics and this change, it becomes apparent that a third detail should be adapted too - the labels. Example
Now that Example
|
Is that really true? I thought device still needed to be something under /dev, so should be unique still? |
@kfox1111 Let me refer you to the man page of smartctl's A clear distinction must be made between the positional |
Cool. thanks for the info. :) |
Followup to @darxriggs ' notes above: It is entirely possible and not that uncommon for a given system to present both LSI HBA virtual devices and passed-through individual drives. Eg. the first two drives are mirrored with the HBA and need On at least some HBAs with some personality / mode settings, any physical drives that aren't part of a VD are passed through. While I personally am not a fan of HBA RAID or RoC HBAs in general, we're still stuck with legacies, and some organizations embrace HBA RAID. Ideally the exporter would iterate To the note about adding a Notes:
|
Also, to be clear, the positional |
Can we figure out how to make this more scalable & managable? Example: a 36-disk supermicro chassis or a 60-disk BackBlaze pod. Concerns:
|
@SuperQ Do you mind if I make this a feature branch so others can work on it and iron out the details? I don't have any devices for testing. |
Any updates? |
At this point I'm just going to have my protege write a SMART collector from scratch in Python. This is a pretty glaring omission on the part of smartctl_exporter. |
@anthonyeleven Could your protege update this pr instead? It seems like the pr is close, but the original developer ran out of time to finish it? |
He's not a strong golang coder. |
I made changes for fix this. #205 |
This PR was promising, it seemed like a simple solution to a big problem with |
We've given up on smartctl_exporter for now and have instead been forking storcli.py |
Superseded by #257 |
Allow passing a custom
-d
/--device=
flag to smartctl. The default is the same (auto
) as upstream smartctl.Fixes: #26
Signed-off-by: SuperQ [email protected]