Add tests for audits and flavor utilities, update .gitignore, and enhance CPU data handling

This commit is contained in:
2026-02-06 16:29:34 +03:00
parent 57a2933f28
commit e3a9500352
8 changed files with 344 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ from dashboard.prometheus_utils.query import query_prometheus
def convert_cpu_data(data: list):
metrics = []
if not data:
return pandas.DataFrame(columns=["host", "cpu_usage"])
for entry in data:
for t, val in entry["values"]:
metrics.append({