diff --git a/telegraf/flexpool.conf b/telegraf/flexpool.conf index de0a4bc..6e1958f 100644 --- a/telegraf/flexpool.conf +++ b/telegraf/flexpool.conf @@ -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"]