smartctl_exporter/docker-entrypoint.sh
Zoltan Langi 965204547a I've added support for NVMe drives and also created a docker file so a container can be built.
I've added the following metrics for the NVMe drives:
smart_status, critical_warning, available_spare, media_errors
2019-12-19 11:17:35 +01:00

6 lines
191 B
Bash
Executable file

#!/bin/sh
DISKS="$(lsblk -l|egrep -oe '(sd[a-z]|nvme[0-9])'|sed -e 's/^/ - \/dev\//'| uniq)"
echo "$DISKS" >> smartctl_exporter.yaml
/bin/smartctl_exporter -config=/smartctl_exporter.yaml