Initial commit
Add README and flexpool dashboards. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
9fc2d6e300
commit
20f88988fd
9 changed files with 4018 additions and 0 deletions
17
README.md
Normal file
17
README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Mining dashboards
|
||||||
|
|
||||||
|
Grafana dashboards for cryptocurrency miners.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
Dashboards rely on the following softwares:
|
||||||
|
- [Telegraf](https://github.com/influxdata/telegraf) to gather metrics (input) and write to a datastore (output)
|
||||||
|
- [InfluxDB](https://github.com/influxdata/influxdb) to store metrics on the long-term
|
||||||
|
- [Grafana](https://github.com/grafana/grafana) to visualize metrics
|
||||||
|
|
||||||
|
This stack is also known as the **TIG** stack.
|
||||||
|
|
||||||
|
## Disclaimer
|
||||||
|
|
||||||
|
Telegraf is able to make API call on thrid-party services. Please read terms of service before going further. The
|
||||||
|
repository owner cannot be responsible of any abuse.
|
3
grafana/README.md
Normal file
3
grafana/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Grafana dashboards
|
||||||
|
|
||||||
|
Ensure to replace `MINER_ADDRESS` with your Ethereum wallet address.
|
2840
grafana/flexpool-overview.json
Normal file
2840
grafana/flexpool-overview.json
Normal file
File diff suppressed because it is too large
Load diff
1082
grafana/flexpool-workers.json
Normal file
1082
grafana/flexpool-workers.json
Normal file
File diff suppressed because it is too large
Load diff
BIN
images/flexpool-overview.png
Normal file
BIN
images/flexpool-overview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 257 KiB |
BIN
images/flexpool-workers.png
Normal file
BIN
images/flexpool-workers.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 113 KiB |
3
telegraf/README.md
Normal file
3
telegraf/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Telegraf inputs
|
||||||
|
|
||||||
|
Ensure to replace `MINER_ADDRESS` with your Ethereum wallet address.
|
28
telegraf/currencies.conf
Normal file
28
telegraf/currencies.conf
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "currencies"
|
||||||
|
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=eur"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
json_query = "ethereum"
|
||||||
|
[inputs.http.tags]
|
||||||
|
from = "ETH"
|
||||||
|
to = "EUR"
|
||||||
|
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "currencies"
|
||||||
|
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
json_query = "ethereum"
|
||||||
|
[inputs.http.tags]
|
||||||
|
from = "ETH"
|
||||||
|
to = "USD"
|
||||||
|
|
||||||
|
[[processors.rename]]
|
||||||
|
namepass = ["currencies"]
|
||||||
|
[[processors.rename.replace]]
|
||||||
|
field = "eur"
|
||||||
|
dest = "value"
|
||||||
|
[[processors.rename.replace]]
|
||||||
|
field = "usd"
|
||||||
|
dest = "value"
|
45
telegraf/flexpool.conf
Normal file
45
telegraf/flexpool.conf
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "flexpool_balance"
|
||||||
|
urls = ["https://flexpool.io/api/v1/miner/MINER_ADDRESS/balance"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
[inputs.http.tags]
|
||||||
|
miner = "MINER_ADDRESS"
|
||||||
|
|
||||||
|
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "flexpool_stats"
|
||||||
|
urls = ["https://flexpool.io/api/v1/miner/MINER_ADDRESS/stats"]
|
||||||
|
data_format = "json"
|
||||||
|
fieldpass = ["*hashrate", "*shares"]
|
||||||
|
tagexclude = ["url"]
|
||||||
|
json_query = "result"
|
||||||
|
[inputs.http.tags]
|
||||||
|
miner = "MINER_ADDRESS"
|
||||||
|
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "flexpool_workers"
|
||||||
|
urls = ["https://flexpool.io/api/v1/miner/MINER_ADDRESS/workers"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
fieldpass = ["*hashrate", "*shares"]
|
||||||
|
tag_keys = ["name"]
|
||||||
|
json_query = "result"
|
||||||
|
[inputs.http.tags]
|
||||||
|
miner = "MINER_ADDRESS"
|
||||||
|
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "flexpool_paid"
|
||||||
|
urls = ["https://flexpool.io/api/v1/miner/MINER_ADDRESS/totalPaid"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
[inputs.http.tags]
|
||||||
|
miner = "MINER_ADDRESS"
|
||||||
|
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "flexpool_daily_revenue_estimation"
|
||||||
|
urls = ["https://flexpool.io/api/v1/miner/MINER_ADDRESS/estimatedDailyRevenue"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
[inputs.http.tags]
|
||||||
|
miner = "MINER_ADDRESS"
|
Reference in a new issue