1
0
Fork 0
This repository has been archived on 2024-12-18. You can view files and clone it, but cannot push or open issues or pull requests.
mining-dashboards/telegraf/flexpool-pool.conf
Julien Riou 21754f74d9
[telegraf] Remove duplicate in Flexpool collector
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-03-28 08:10:01 +02:00

54 lines
1.5 KiB
Text

[[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_pool_blocks"
urls = [
"https://flexpool.io/api/v1/pool/blocks/?page=0",
"https://flexpool.io/api/v1/pool/blocks/?page=1",
"https://flexpool.io/api/v1/pool/blocks/?page=2",
"https://flexpool.io/api/v1/pool/blocks/?page=3",
"https://flexpool.io/api/v1/pool/blocks/?page=4"
]
data_format = "json"
tagexclude = ["url"]
json_query = "result.data"
json_time_format = "unix"
json_time_key = "timestamp"
tag_keys = ["miner"]
[[inputs.http]]
name_override = "flexpool_pool_hashrate"
urls = ["https://flexpool.io/api/v1/pool/hashrate"]
data_format = "json"
tagexclude = ["url"]
json_query = "result"
[[inputs.http]]
name_override = "flexpool_pool_miners_online"
urls = ["https://flexpool.io/api/v1/pool/minersOnline"]
data_format = "json"
tagexclude = ["url"]
[[inputs.http]]
name_override = "flexpool_pool_workers_online"
urls = ["https://flexpool.io/api/v1/pool/workersOnline"]
data_format = "json"
tagexclude = ["url"]
[[inputs.http]]
name_override = "flexpool_pool_average_luck_round_time"
urls = ["https://flexpool.io/api/v1/pool/avgLuckRoundtime"]
data_format = "json"
tagexclude = ["url"]
json_query = "result"
[[inputs.http]]
name_override = "flexpool_pool_current_luck"
urls = ["https://flexpool.io/api/v1/pool/currentLuck"]
data_format = "json"
tagexclude = ["url"]