https://github.com/alexdzyoba/smart_exporter
Prometheus exporter for critical S.M.A.R.T. metrics
https://github.com/alexdzyoba/smart_exporter
metrics prometheus-exporter smart system
Last synced: 5 months ago
JSON representation
Prometheus exporter for critical S.M.A.R.T. metrics
- Host: GitHub
- URL: https://github.com/alexdzyoba/smart_exporter
- Owner: alexdzyoba
- License: mit
- Created: 2019-09-11T09:57:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T13:00:27.000Z (about 5 years ago)
- Last Synced: 2024-06-19T06:49:09.270Z (about 2 years ago)
- Topics: metrics, prometheus-exporter, smart, system
- Language: Go
- Size: 28.3 KB
- Stars: 13
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smart_exporter
[](https://github.com/alexdzyoba/smart_exporter/releases/latest)
[](LICENSE)
[](https://github.com/alexdzyoba/smart_exporter/actions)
[](https://hub.docker.com/r/ontrif/smart_exporter)
Prometheus exporter for critical S.M.A.R.T. metrics. It works by parsing
smartctl output for every device. Parsing is performed independent of metrics
HTTP handler (not on every scrape).
Example scrape output with metrics:
# HELP smart_read_uncorrected_errors_total Number of uncorrected read errors
# TYPE smart_read_uncorrected_errors_total gauge
smart_read_uncorrected_errors_total{device="/dev/sda"} 0
# HELP smart_write_uncorrected_errors_total Number of uncorrected write errors
# TYPE smart_write_uncorrected_errors_total gauge
smart_write_uncorrected_errors_total{device="/dev/sda"} 0
# HELP smart_grown_defect_list_total Number of elements in grown defect list
# TYPE smart_grown_defect_list_total gauge
smart_grown_defect_list_total{device="/dev/sda"} 0
# HELP smart_reallocated_sectors_total Number of reallocated sectors
# TYPE smart_reallocated_sectors_total gauge
smart_reallocated_sectors_total{device="/dev/sda"} 0
Docker image can be started with command:
```
docker run --privileged -p 8000:8000 ontrif/smart_exporter
```