[[inputs.http]]
name_override = "flexpool_pool_blocks_chart"
urls = ["https://api.flexpool.io/v2/pool/blocksChart?coin=${COIN}"]
data_format = "json"
tagexclude = ["url"]
json_query = "result"
json_time_format = "unix"
json_time_key = "timestamp"
[inputs.http.tags]
coin = "${COIN}"
name_override = "flexpool_pool_blocks"
urls = [
"https://api.flexpool.io/v2/pool/blocks?coin=${COIN}&page=0",
"https://api.flexpool.io/v2/pool/blocks?coin=${COIN}&page=1",
"https://api.flexpool.io/v2/pool/blocks?coin=${COIN}&page=2",
"https://api.flexpool.io/v2/pool/blocks?coin=${COIN}&page=3",
"https://api.flexpool.io/v2/pool/blocks?coin=${COIN}&page=4"
]
json_query = "result.data"
tag_keys = ["miner"]
name_override = "flexpool_pool_hashrate"
urls = ["https://api.flexpool.io/v2/pool/hashrate?coin=${COIN}"]
name_override = "flexpool_pool_miners_count"
urls = ["https://api.flexpool.io/v2/pool/minerCount?coin=${COIN}"]
name_override = "flexpool_pool_workers_count"
urls = ["https://api.flexpool.io/v2/pool/workerCount?coin=${COIN}"]
name_override = "flexpool_pool_current_luck"
urls = ["https://api.flexpool.io/v2/pool/currentLuck?coin=${COIN}"]