A utility to fetch metrics from [Open Hardware Monitor](https://openhardwaremonitor.org/) instances by using it's web service.
It currently only supports two commands; printing to a console and a prometheus exporter.
## Stability
This package is under development and should not considered stable at this time.
## Install
This package is `go get`able by running:
```bash
$ go get git.buddy.wtf/buddy/open-hardware-monitor-client/cmd/ohwm-client
```
## Usage
```
$ ohwm-client help
NAME:
ohwm-client - A new cli application
USAGE:
ohwm-client [flags] <command> [flags]
DESCRIPTION:
Open Hardware Manager Client
COMMANDS:
print pretty prints api result
export runs http exporter for prometheus
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--host value open hardware monitor host [OSHW_HOST] (default: "127.0.0.1:8085") [$OHWM_HOST]
--scheme value open hardware monitor scheme (http/https) (default: "http") [$OHWM_SCHEME]
--path value open hardware monitor path (ie /data.json) (default: "/data.json") [$OHWM_PATH]
--help, -h show help
```
### Prometheus Exporter
The prometheus exporter converts the JSON format from the Open Hardware Monitor to the [OpenMetrics](https://openmetrics.io/) format used by prometheus.