[telegraf] Add Flexpool blocks count
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
9b1857c1cc
commit
e790147476
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
[[inputs.http]]
|
||||||
|
name_override = "flexpool_pool_block_count"
|
||||||
|
urls = ["https://flexpool.io/api/v1/pool/blockCount"]
|
||||||
|
data_format = "json"
|
||||||
|
tagexclude = ["url"]
|
||||||
|
json_query = "result"
|
||||||
|
|
||||||
[[inputs.http]]
|
[[inputs.http]]
|
||||||
name_override = "flexpool_balance"
|
name_override = "flexpool_balance"
|
||||||
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/balance"]
|
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/balance"]
|
||||||
|
@ -6,7 +13,6 @@
|
||||||
[inputs.http.tags]
|
[inputs.http.tags]
|
||||||
miner = "${MINER_ADDRESS}"
|
miner = "${MINER_ADDRESS}"
|
||||||
|
|
||||||
|
|
||||||
[[inputs.http]]
|
[[inputs.http]]
|
||||||
name_override = "flexpool_stats"
|
name_override = "flexpool_stats"
|
||||||
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/stats"]
|
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/stats"]
|
||||||
|
|
Reference in a new issue