- Update Telegraf to 1.19.2
- Use Flexpool API v2
- Update Flexpool miner, pool and worker dashboards accordingly
- Add COIN environment variable for Telegraf ("eth" or "xch" supported)
- Add coin variable in Grafana dashboards
BREAKING CHANGE: measurement names change between API v1 and v2 so the
Grafana dashboards must be updated accordingly to use new names.
Values in the past will not be shown by the updated dashboards.
Signed-off-by: Julien Riou <julien@riou.xyz>
On Flexpool miners, workers and Etherscan dashboards, min, max and last
computations where based on multiple small time intervals instead of the big
time interval. Removing "group by" solved the computations.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Add a "Gas prices" row
- Rename "safe" to "low"
- Rename "propose" to "average"
- Rename "fast" to "high"
- Colorize low to green, average to orange, high to red
- Add min, average and max statistics
Signed-off-by: Julien Riou <julien@riou.xyz>
Grafana displays single statistics by grouping 3 values together. If we group
currency and fiat currency (2 values) together, the output is broken. This
commit groups all crypto currency (daily, weekly and monthly) on a single row,
then fiat currencies on a second row.
Signed-off-by: Julien Riou <julien@riou.xyz>
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>
On Flexpool dashboards, some values were printed in black. They were hard to
read on a dark theme. Revert back to default "green" value for improved
visibility on light and dark themes.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Remove fixed time ("last 1 month", "last 1 year") from daily and monthly revenue
dashboards.
- Add daily and monthly blocks counters next to revenue
Signed-off-by: Julien Riou <julien@riou.xyz>
When Flexpool pays you out, the spread function considers the payment as
balance earnings. Using non_negative_derivative instead to flatten the curve.
Signed-off-by: Julien Riou <julien@riou.xyz>
Estimated and reported hashrates where grouped by worker. Now the graph shows
the sum of all workers, because this is an overview dashboard after all. To show
graphs per workers, we should use the Flexpool workers dashboard.
Signed-off-by: Julien Riou <julien@riou.xyz>