mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-23 01:43:07 +01:00
c0e4746c80
Use standard Prometheus Community build infra. * Update Go modules for new location * Update references to github URLs * Update for Go 1.17+ Signed-off-by: SuperQ <superq@gmail.com>
39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
[![CircleCI](https://circleci.com/gh/prometheus-community/smartctl_exporter.svg?style=svg)](https://circleci.com/gh/prometheus-community/smartctl_exporter)
|
|
|
|
# smartctl_exporter
|
|
Export smartctl statistics to prometheus
|
|
|
|
Example output you can show in [EXAMPLE.md](EXAMPLE.md)
|
|
|
|
## 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**
|
|
|
|
# Requirements
|
|
smartmontools >= 7.0, because export to json [released in 7.0](https://www.smartmontools.org/browser/tags/RELEASE_7_0/smartmontools/NEWS#L11)
|
|
|
|
# Configuration
|
|
## Command line options
|
|
* `--config=/path/to/file.yaml`: Path to configuration file, default `/etc/smartctl_exporter.yaml`
|
|
* `--verbose`: verbosed log, default no
|
|
* `--debug`: Debug logging, default no
|
|
* `--version`: Show version and exit
|
|
|
|
## Configuration file
|
|
Example content:
|
|
```
|
|
smartctl_exporter:
|
|
bind_to: "[::1]:9633"
|
|
url_path: "/metrics"
|
|
fake_json: no
|
|
smartctl_location: /usr/sbin/smartctl
|
|
collect_not_more_than_period: 120s
|
|
devices:
|
|
- /dev/sda
|
|
- /dev/sdb
|
|
- /dev/sdc
|
|
- /dev/sdd
|
|
- /dev/sde
|
|
- /dev/sdf
|
|
```
|
|
`fake_json` used for debugging.
|