Skip to content

Enable SMART metrics for IH #252

@yakimant

Description

@yakimant

Setup manually with:

--smartctl.device="/dev/sda;cciss,0"

Input from:

❯ lsblk --json -O | jq -c '.blockdevices[] | { path, hctl, subsystems }'
{"path":"/dev/sda","hctl":"2:1:0:0","subsystems":"block:scsi:pci"}
{"path":"/dev/sdb","hctl":"2:1:0:1","subsystems":"block:scsi:pci"}
{"path":"/dev/sdc","hctl":"2:1:0:2","subsystems":"block:scsi:pci"}

Or wait for auto configuration PR: prometheus-community/smartctl_exporter#274

Curtently adding --smartctl.scan-device-type=scsi will scan like that:

❯ sudo smartctl --scan -d scsi
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/sdc -d scsi # /dev/sdc, SCSI device

But scraping wil fail due to

/dev/sda: requires option '-d cciss,N'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions