nicehash-exporter

command module
v0.0.0-...-6f359ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 11 Imported by: 0

README

nicehash-exporter

Nicehash API exporter with prometheus

Docker usage

nicehashexporter:
    image: thomaslacaze/nicehash-exporter
    container_name: nicehash_exporter
    restart: unless-stopped
    environment:
    - APIUrl=https://api2.nicehash.com
    - APIKey=****
    - APISecret=****
    - XOrganizationId=****
    - ENVIRONMENT=prod
    ports: 
    - 9159:9159

Exporter metrics

# HELP nicehash_miningSpeed Mining speed in MH
# TYPE nicehash_miningSpeed gauge
nicehash_miningSpeed{algo="****",device="****",localisation="****"} 0
nicehash_miningSpeed{algo="****",device="****",localisation="****"} 0
# HELP nicehash_nextpayouttimestamp next payout timestamp
# TYPE nicehash_nextpayouttimestamp gauge
nicehash_nextpayouttimestamp 0
# HELP nicehash_temperatureDevice Temperature in °C
# TYPE nicehash_temperatureDevice gauge
nicehash_temperatureDevice{device="****",localisation="****"} 0
nicehash_temperatureDevice{device="****",localisation="****"} 0
# HELP nicehash_temperatureVRAM Temperature in °C
# TYPE nicehash_temperatureVRAM gauge
nicehash_temperatureVRAM{device="****",localisation="****"} 0
# HELP nicehash_unpaidAmount unpaid in BTC
# TYPE nicehash_unpaidAmount gauge
nicehash_unpaidAmount 0
# HELP nicehash_walletbalance Balance in BTC
# TYPE nicehash_walletbalance gauge
nicehash_walletbalance 0

API call to interaction with your rig or device

If you want to specify a device use 'deviceId' instead of 'rigId'

Start mining :

$ curl --location --request POST 'http://****:9159/api/mining?rigId=****&action=START'

Stop mining :

$ curl --location --request POST 'http://****:9159/api/mining?rigId=****&action=STOP'

Status mining (Mining=1, Not mininig = 0)

$ curl --location --request POST 'http://****:9159/api/status?rigId=****'

Change GPU optimisation :

curl -X POST -G 'http://****:9159/api/mining' -d rigId=**** -d action=NHQM_SET -d 'options=V=1%3BOP=2%3B'

V=1%3BOP=2%3B equal to V=1;OP=2;

See more for actions options

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL