A Prometheus exporter for Seagate drive S.M.A.R.T. metrics that parses openSeaChest tool output.
Built with the rust Prometheus exporter framework, prometheus_exporter_base.
-
You need Rust installed.
-
You need openSeaChest tools installed.
-
Clone the repository with
git clone https://github.com/joshpearce/openseachest_exporter.git cd openseachest_exporter
-
Compile the program with
cargo install --path .
-
Location where cargo installed the program and run it with the
-h
flag to see all options.$ /home/josh/.cargo/bin/openseachest_exporter -h Usage: openseachest_exporter [OPTIONS] --opensea-smart-bin <OPENSEA_SMART_BIN> Options: --opensea-smart-bin <OPENSEA_SMART_BIN> Path to openSeaChest_SMART binary [env: OPENSEA_SMART_BIN=] --listen <LISTEN> IPv4/6 socket+port address for HTTP listener [env: OPENSEA_SMART_LISTEN=] [default: 0.0.0.0:10988] --log-level <LOG_LEVEL> Path to openSeaChest_SMART binary [env: OPENSEA_SMART_LOG_LEVEL=] [default: error] [possible values: trace, debug, info, warn, error] --host-name <HOST_NAME> Hostname for metrics [env: HOST=] [default: no_host_name] --map-file <MAP_FILE> JSON file for renaming metrics [env: OPENSEA_SMART_MAP_FILE=] -h, --help Print help
-
Check it's up by visiting http://127.0.0.1:10988/metrics