2022-06-16 10:08:20 +02:00
[![CircleCI ](https://circleci.com/gh/prometheus-community/smartctl_exporter.svg?style=svg )](https://circleci.com/gh/prometheus-community/smartctl_exporter)
2022-09-20 19:50:29 +02:00
[![Container Repository on Quay ](https://quay.io/repository/prometheuscommunity/smartctl-exporter/status "Container Repository on Quay" )](https://quay.io/repository/prometheuscommunity/smartctl-exporter)
2019-08-16 10:05:30 +02:00
2019-08-14 22:28:21 +02:00
# smartctl_exporter
Export smartctl statistics to prometheus
2019-08-14 22:34:49 +02:00
2019-08-17 12:24:28 +02:00
Example output you can show in [EXAMPLE.md ](EXAMPLE.md )
2019-08-17 12:18:48 +02:00
2019-08-14 22:34:49 +02:00
## Need more?
**If you need additional metrics - contact me :)**
**Create a feature request, describe the metric that you would like to have and attach exported from smartctl json file**
2019-08-26 10:27:28 +02:00
# Requirements
smartmontools >= 7.0, because export to json [released in 7.0 ](https://www.smartmontools.org/browser/tags/RELEASE_7_0/smartmontools/NEWS#L11 )
2019-08-14 22:34:49 +02:00
# Configuration
## Command line options
2022-06-16 10:08:20 +02:00
* `--config=/path/to/file.yaml` : Path to configuration file, default `/etc/smartctl_exporter.yaml`
2019-08-14 22:34:49 +02:00
* `--verbose` : verbosed log, default no
* `--debug` : Debug logging, default no
* `--version` : Show version and exit
## Configuration file
Example content:
```
smartctl_exporter:
2019-08-14 22:38:48 +02:00
bind_to: "[::1]:9633"
2019-08-14 22:34:49 +02:00
url_path: "/metrics"
fake_json: no
smartctl_location: /usr/sbin/smartctl
2019-08-15 23:02:44 +02:00
collect_not_more_than_period: 120s
2019-08-14 22:34:49 +02:00
devices:
- /dev/sda
- /dev/sdb
- /dev/sdc
- /dev/sdd
- /dev/sde
- /dev/sdf
```
`fake_json` used for debugging.