Prometheus exporter for Bobcat Miner 300 - the Helium Miner.
It uses statistics from following endpoints:
-
/temp.json
-
/status.json
This package is available as container:
- Run Bobcat Exporter, where
http://XXXXXXX
is your Bobcat Miner address.
docker run -e BOBCAT_EXPORTER_MINER_URI="http://XXXXXXX" ghcr.io/pperzyna/bobcat_exporter
-
bobcat.uri
Address of Bobcat Miner. Default ishttp://localhost
. -
bobcat.timeout
Timeout request to Bobcat Miner. Default is5s
. -
web.listen-address
Address to listen on for web interface and telemetry. Default is:9857
. -
web.telemetry-path
Path under which to expose metrics. Default is/metrics
. -
log.level
Set logging level: one ofdebug
,info
,warn
,error
,fatal
Default isinfo
. -
log.format
Set the log output target and format. e.g.logger:syslog?appname=bob&local=7
orlogger:stdout?json=true
Defaults tologger:stderr
.
The following environment variables configure the exporter:
-
BOBCAT_EXPORTER_MINER_URI
Address of Bobcat Miner. Default ishttp://localhost
. -
BOBCAT_EXPORTER_MINER_TIMEOUT
Timeout reqeust to Bobcat Miner. Default is30s
. -
BOBCAT_EXPORTER_WEB_LISTEN_ADDRESS
Address to listen on for web interface and telemetry. Default is:9857
. -
BOBCAT_EXPORTER_WEB_TELEMETRY_PATH
Path under which to expose metrics. Default is/metrics
.
Settings set by environment variables starting with BOBCAT_
will be overwritten by the corresponding CLI flag if given.
The default way to build is:
go get github.com/pperzyna/bobcat_exporter
cd ${GOPATH-$HOME/go}/src/github.com/pperzyna/bobcat_exporter/
go build -o bobcat_exporter
export BOBCAT_EXPORTER_MINER_URI="http://localhost"
./bobcat_exporter <flags>
See CONTRIBUTING