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/currencies.conf
Julien Riou 20f88988fd
Initial commit
Add README and flexpool dashboards.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-01-31 09:43:54 +01:00

28 lines
714 B
Text

[[inputs.http]]
name_override = "currencies"
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=eur"]
data_format = "json"
tagexclude = ["url"]
json_query = "ethereum"
[inputs.http.tags]
from = "ETH"
to = "EUR"
[[inputs.http]]
name_override = "currencies"
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd"]
data_format = "json"
tagexclude = ["url"]
json_query = "ethereum"
[inputs.http.tags]
from = "ETH"
to = "USD"
[[processors.rename]]
namepass = ["currencies"]
[[processors.rename.replace]]
field = "eur"
dest = "value"
[[processors.rename.replace]]
field = "usd"
dest = "value"