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/farm.conf.j2
Julien Riou c4a4b6f787
Add farm and worker names to HiveOS configuration
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-13 09:34:35 +01:00

9 lines
293 B
Django/Jinja

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