Find a file
dependabot[bot] dfc967ecdd
Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 (#62)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.12.2...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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>
2022-09-10 16:14:39 +02:00
.circleci Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
.github Update common Prometheus files 2022-06-17 19:51:12 +00:00
gentoo/app-metrics/smartctl_exporter Update build for prometheus-community 2022-06-17 12:04:48 +02:00
systemd systemd service 2019-08-15 00:04:32 +03:00
.gitignore Fix Dockerfile (#53) 2022-08-08 17:03:53 +02:00
.promu.yml Update build for prometheus-community 2022-06-17 12:04:48 +02:00
.yamllint Update build for prometheus-community 2022-06-17 12:04:48 +02:00
CHANGELOG.md Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
CODE_OF_CONDUCT.md Update common Prometheus files 2022-06-17 19:51:12 +00:00
collect_fake_json.sh Parsing smartctl error code; parsing resulting json for smartctl errors; docker moved to subfolder 2020-10-30 00:35:49 +03:00
Dockerfile Fix Dockerfile (#53) 2022-08-08 17:03:53 +02:00
EXAMPLE.md right example 2019-08-17 13:26:31 +03:00
gjsonext.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
go.mod Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 (#62) 2022-09-10 16:14:39 +02:00
go.sum Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 (#62) 2022-09-10 16:14:39 +02:00
LICENSE Initial commit 2019-08-14 23:28:21 +03:00
logging.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
main.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
Makefile Remove armv7 container (#54) 2022-08-08 18:10:42 +02:00
Makefile.common Update build for prometheus-community 2022-06-17 12:04:48 +02:00
metrics.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
options.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
readjson.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
README.md Update build for prometheus-community 2022-06-17 12:04:48 +02:00
SECURITY.md Update common Prometheus files 2022-06-17 19:51:12 +00:00
smartctl.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
smartctl_exporter.yaml apply merges 2020-11-14 18:36:34 +03:00
smartctlinfo.go Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00
VERSION Release 0.7.0 (#50) 2022-08-05 03:37:13 +02:00

CircleCI

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.