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/etherscan.conf
Julien Riou 3db323ce25
[telegraf] Add etherscan input
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-03-29 17:23:09 +02:00

11 lines
439 B
Text

[[inputs.http]]
name_override = "etherscan_gastracker_gasoracle"
urls = ["https://api.etherscan.io/api?module=gastracker&action=gasoracle&apikey=${ETHERSCAN_TOKEN}"]
data_format = "json"
tagexclude = ["url"]
json_query = "result"
json_string_fields = ["SafeGasPrice", "ProposeGasPrice", "FastGasPrice"]
[[processors.converter]]
[processors.converter.fields]
integer = ["SafeGasPrice", "ProposeGasPrice", "FastGasPrice"]