GPU Usage statistics (on Linux) for Nvidia Video Cards
Forked from: https://github.com/ts-sz/gpu_stats (Last updated 2018)
18th April 2021 - Added support for InfluxData Cloud, just signup for a free account and can monitor miners with 30 days of retention. https://www.influxdata.com/influxdb-cloud-pricing/
Just comment out the local IP curl lines if not required.
Collect your workers mining stats, scrape live Ethereum price and profitability, then send this to InfluxDB 2.0 to graph and monitor.
All stats grab with nvidia-smi
nvidia-smi -L
nvidia-smi -i 0 --query-gpu=power.draw,clocks.sm,clocks.mem,clocks.gr,temperature.gpu,utilization.gpu,fan.speed,pstate --format=csv,noheader
nvidia-smi -i 0 --query-gpu=fan.speed --format=csv,noheader
Hashrate is ONLY if you use HiveOS [https://hiveos.farm]
Linux Install - https://docs.influxdata.com/influxdb/v2.0/get-started/?t=Linux
Docker Install - https://docs.influxdata.com/influxdb/v2.0/get-started/?t=Docker
(No need to run Telegraf agent steps, template JSON included in repo for dashboards, import these as a starting point)
One template of a worker dashboard and Farm Overview included, with different worker names and bucker/org names the cells will break, edit the .json files in Notepad do a find replace and this will work.
Create or Copy gpu_stats.sh
from repo into /usr/local/bin/
Run chmod +x /usr/local/bin/gpu_stats.sh
Push gpu_stats.cron
into your crontab with sudo cp gpu_stats.cron /etc/cron.d/gpu_stats
for execution every minute
souces: