Julien Riou
e8ba07a1b7
Procedure to migrate: Stop telegraf container: ``` docker-compose -f docker-compose.yml stop telegraf ``` Rename all measurements: ``` docker exec -it influxdb influx -unsafeSsl -ssl -database '$INFLUXDB_DB' select * into flexpool_miner_balance from flexpool_balance group by *; drop measurement flexpool_balance; select * into flexpool_miner_stats from flexpool_stats group by *; drop measurement flexpool_stats; select * into flexpool_miner_workers from flexpool_workers group by *; drop measurement flexpool_workers; select * into flexpool_miner_paid from flexpool_paid group by *; drop measurement flexpool_paid; select * into flexpool_miner_daily_revenue_estimation from flexpool_daily_revenue_estimation group by *; drop measurement flexpool_daily_revenue_estimation; select * into flexpool_miner_payments from flexpool_payments group by *; drop measurement flexpool_payments; ``` Update telegraf configuration. Start telegraf: ``` docker-compose -f docker-compose.yml start telegraf ``` Re-import the `grafana/flexpool-overview.json` graph. Signed-off-by: Julien Riou <julien@riou.xyz> |
||
---|---|---|
.. | ||
hiveos | ||
currencies.conf | ||
flexpool-miner.conf | ||
flexpool-pool.conf | ||
README.md |
Telegraf inputs
Ensure to replace MINER_ADDRESS
with your Ethereum wallet address.
HiveOS API
Create token
On your account page, go to Authentication Tokens, search for Personal Tokens and
create one for telegraf
:
Enter your 2FA code if needed:
Clic on Show:
And add this value to the HIVEOS_TOKEN
environment variable (see Quickstart section in the README).
Create Telegraf configuration
cd hiveos
sudo apt install python3-virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
read -s HIVEOS_TOKEN
export HIVEOS_TOKEN
python3 generate.py --verbose
unset HIVEOS_TOKEN
mv hiveos.conf ../