This commit is contained in:
yohan 2024-02-05 01:05:19 +01:00
parent cf803404c6
commit 76b7895e11

View File

@ -126,7 +126,11 @@ def sensors_polling(poller_conf):
stop.wait(timeout=time_to_sleep) stop.wait(timeout=time_to_sleep)
def metric_list(): def metric_list():
return([metric['name'] for metric in poller_conf['metrics']]) metrics = []
for poller_conf in polling_conf:
for metric in poller_conf['metrics']:
metrics.append(metric['name'])
return metrics
class MyHandler(BaseHTTPRequestHandler): class MyHandler(BaseHTTPRequestHandler):
def do_GET(self): def do_GET(self):