From e79014747646148f4ac1605d933f4de639d5d9ca Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Fri, 19 Mar 2021 11:42:17 +0100 Subject: [PATCH] [telegraf] Add Flexpool blocks count Signed-off-by: Julien Riou --- telegraf/flexpool.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"]