1
0
Fork 0

[telegraf] Add Flexpool blocks count

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-03-19 11:42:17 +01:00
parent 9b1857c1cc
commit e790147476
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -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]]
name_override = "flexpool_balance"
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/balance"]
@ -6,7 +13,6 @@
[inputs.http.tags]
miner = "${MINER_ADDRESS}"
[[inputs.http]]
name_override = "flexpool_stats"
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/stats"]