项目作者: io-developer

项目描述 :
Prometheus Disk Exporter to expose S.M.A.R.T. health metrics.
高级语言: Python
项目地址: git://github.com/io-developer/disk-exporter.git
创建时间: 2019-01-19T00:37:56Z
项目社区:https://github.com/io-developer/disk-exporter

开源协议:

下载


Disk-Exporter

Disk-Exporter exports Prometheus metrics about the health of your system’s
physical disks. It uses smartctl to do this.

This was written for a specific environment and therefore makes some assumptions.

Disk metrics

The exporter detects disks using ‘lsblk’. It assumes they follow the pattern
^sd([a-z])\s. The following key metrics are exported, but the script allows
for adding more if required, with relative ease.

Some may not be available depending on your drive.

  • Overall disk health (Smartctl self-check “Passed” or not)
  • Disk reallocated sector count
  • Disk temperature
  • Disk reallocated event count
  • Disk offline uncorrectable count

RAID metrics

Previous code was removed. Use prom/node-exporter for this purpose (nodemd* metrics)

Installation

Docker hub - https://hub.docker.com/r/iodeveloper/prom_diskexporter

Example for docker-compose.yml

  1. version: '3.4'
  2. services:
  3. diskexporter:
  4. image: iodeveloper/prom_diskexporter:latest
  5. user: root
  6. privileged: true
  7. restart: unless-stopped
  8. ports:
  9. - "9009:9009"