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/hiveos/hiveos.conf
Julien Riou 8cfb8fabf8
Add HiveOS Telegraf configuration
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-12 17:58:40 +01:00

20 lines
686 B
Text

[[inputs.http]]
name_override = "hiveos_farm"
urls = ["https://api2.hiveos.farm/api/v2/farms/418240"]
headers = {"Content-Type" = "application/json"}
headers = {"Authorization" = "Bearer ${HIVEOS_TOKEN}"}
data_format = "json"
tagexclude = ["url"]
tag_keys = ["name", "id"]
[[inputs.http]]
name_override = "hiveos_gpu"
urls = ["https://api2.hiveos.farm/api/v2/farms/418240/workers/1150566"]
headers = {"Content-Type" = "application/json"}
headers = {"Authorization" = "Bearer ${HIVEOS_TOKEN}"}
data_format = "json"
tagexclude = ["url"]
tag_keys = ["bus_number"]
json_query = "gpu_stats"
[inputs.http.tags]
farm_id = "418240"
worker_id = "1150566"