1
0
Fork 0

Add last payments to Flexpool dashboard

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-03-05 09:16:01 +01:00
parent 65c11fc2a1
commit e85c21fe11
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
2 changed files with 128 additions and 5 deletions

View file

@ -43,3 +43,14 @@
tagexclude = ["url"]
[inputs.http.tags]
miner = "${MINER_ADDRESS}"
[[inputs.http]]
name_override = "flexpool_payments"
urls = ["https://flexpool.io/api/v1/miner/${MINER_ADDRESS}/payments/?page=0"]
data_format = "json"
tagexclude = ["url"]
json_query = "result.data"
json_time_format = "unix"
json_time_key = "timestamp"
[inputs.http.tags]
miner = "${MINER_ADDRESS}"