From 7c45cd2593f5b1c823bb59d311b93e07707fb5ed Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Thu, 15 Apr 2021 18:03:06 +0200 Subject: [PATCH] Add ETH Gas Station Telegraf configuration (#7) Signed-off-by: Julien Riou --- docker/environment.example | 1 + telegraf/ethgasstation.conf | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 telegraf/ethgasstation.conf diff --git a/docker/environment.example b/docker/environment.example index 11494f6..c69c466 100644 --- a/docker/environment.example +++ b/docker/environment.example @@ -1,6 +1,7 @@ MINER_ADDRESS= HIVEOS_TOKEN= ETHERSCAN_TOKEN= +ETHGASSTATION_TOKEN= GF_SECURITY_ADMIN_USER=admin GF_SECURITY_ADMIN_PASSWORD= GF_USERS_DEFAULT_THEME=light diff --git a/telegraf/ethgasstation.conf b/telegraf/ethgasstation.conf new file mode 100644 index 0000000..2786d4c --- /dev/null +++ b/telegraf/ethgasstation.conf @@ -0,0 +1,5 @@ +[[inputs.http]] + name_override = "ethgasstation_ethgasapi" + urls = ["https://ethgasstation.info/api/ethgasAPI.json?api-key=${ETHGASSTATION_TOKEN}"] + data_format = "json" + tagexclude = ["url"]