Skip to content

joshpearce/openseachest_exporter

Repository files navigation

Intro

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.

Grafana dashboard included

Seagate drive S.M.A.R.T. warranty metrics Seagate drive S.M.A.R.T. physical property metrics

Setup

Build from source

  1. You need Rust installed.

  2. You need openSeaChest tools installed.

  3. Clone the repository with

    git clone https://github.com/joshpearce/openseachest_exporter.git
    cd openseachest_exporter
  4. Compile the program with

    cargo install --path .
  5. 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]
    -h, --help
            Print help
  6. Check it's up by visiting http://127.0.0.1:10988/metrics

About

Prometheus exporter for openSeaChest data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors