mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-12-21 02:21:55 +01:00
78a47cd2c2
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.14.1 to 1.14.3. - [Release notes](https://github.com/tidwall/gjson/releases) - [Commits](https://github.com/tidwall/gjson/compare/v1.14.1...v1.14.3) --- updated-dependencies: - dependency-name: github.com/tidwall/gjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.circleci | ||
.github | ||
gentoo/app-metrics/smartctl_exporter | ||
systemd | ||
.gitignore | ||
.promu.yml | ||
.yamllint | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
collect_fake_json.sh | ||
Dockerfile | ||
EXAMPLE.md | ||
gjsonext.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
logging.go | ||
main.go | ||
Makefile | ||
Makefile.common | ||
metrics.go | ||
options.go | ||
readjson.go | ||
README.md | ||
SECURITY.md | ||
smartctl.go | ||
smartctl_exporter.yaml | ||
smartctlinfo.go | ||
VERSION |
smartctl_exporter
Export smartctl statistics to prometheus
Example output you can show in 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
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.