15 lines
490 B
Django/Jinja
15 lines
490 B
Django/Jinja
[[inputs.http]]
|
|
name_override = "hiveos_gpu"
|
|
urls = ["https://api2.hiveos.farm/api/v2/farms/{{farm_id}}/workers/{{worker_id}}"]
|
|
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 = "{{farm_id}}"
|
|
farm_name = "{{farm_name}}"
|
|
worker_id = "{{worker_id}}"
|
|
worker_name = "{{worker_name}}"
|
|
|