This commit is contained in:
BennyThink 2022-02-11 19:06:26 +08:00
parent 922b0a08b8
commit ee9dfd8a41
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

View File

@ -237,6 +237,7 @@ class InfluxDB:
return requests.get("https://celery.dmesg.app/dashboard?json=1", headers=headers).json() return requests.get("https://celery.dmesg.app/dashboard?json=1", headers=headers).json()
def extract_dashboard_data(self): def extract_dashboard_data(self):
self.data = self.get_worker_data()
json_body = [] json_body = []
for worker in self.data["data"]: for worker in self.data["data"]:
load1, load5, load15 = worker["loadavg"] load1, load5, load15 = worker["loadavg"]