Open aieri opened 1 month ago
I have a server in which smartctl_exporter reports an incorrect number of devices:
Add exclude regex --smartctl.device-exclude=^/dev/bus/[0-9]+$
for avoid scanning megaraid devices
thanks, this would indeed work given the specifics of this one server. I am however working on mass deployments of smartctl_exporter in which manual configuration is not feasible. While our automation could provide an autoconfiguration layer, it'd effectively duplicate what the exporter is already doing. I think solving this at the lowest layer would be preferable.
thanks, this would indeed work given the specifics of this one server. I am however working on mass deployments of smartctl_exporter in which manual configuration is not feasible. While our automation could provide an autoconfiguration layer, it'd effectively duplicate what the exporter is already doing. I think solving this at the lowest layer would be preferable.
Solutions, at the lowest level, by magic, unfortunately, are impossible. The administrator will still have to choose which polling protocol (sata
or megaraid
) to consider as a priority. I offered you an option that you can put in your IaC. This is not a solution for a specific server, this is a solution for the megaraid
controller. I do not think that you will be able to find any other controllers in your device park, if you still can - share the regular expression
P.S.: see #205
I quite disagree that deduplicating via a unique key and applying some heuristic to choose the polling protocol is magic, and I also don't appreciate the bitterness. But sure, if this suggestion is unwelcome I'll figure something out in a higher layer
I have a server in which smartctl_exporter reports an incorrect number of devices:
iirc the exporter uses
smartctl --scan
in thereadSMARTctlDevices
function taking to collect the list of devices. Indeed smartctl returns some duplicates:The exporter should probably have some extra logic to deduplicate devices that can be accessed in multiple ways. This should be possible by using either the serial or the WWN as unique identifier, e.g.: