Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/io-developer/disk-exporter
Prometheus Disk Exporter to expose S.M.A.R.T. health metrics.
https://github.com/io-developer/disk-exporter
disk hdd-health prometheus prometheus-exporter smart temp temperature
Last synced: 3 months ago
JSON representation
Prometheus Disk Exporter to expose S.M.A.R.T. health metrics.
- Host: GitHub
- URL: https://github.com/io-developer/disk-exporter
- Owner: io-developer
- Created: 2019-01-19T00:37:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T20:24:19.000Z (over 1 year ago)
- Last Synced: 2024-10-05T06:39:23.799Z (3 months ago)
- Topics: disk, hdd-health, prometheus, prometheus-exporter, smart, temp, temperature
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 (node_md_* metrics)## Installation
Docker hub - https://hub.docker.com/r/iodeveloper/prom_diskexporter
Example for **docker-compose.yml**
```yaml
version: '3.4'
services:
diskexporter:
image: iodeveloper/prom_diskexporter:latest
user: root
privileged: true
restart: unless-stopped
ports:
- "9009:9009"
```