Merge pull request #1299 from kernelkit/statd-add-service-stat

Add service runtime statistics and table formatting framework
This commit is contained in:
Tobias Waldekranz
2025-12-23 10:20:08 +01:00
committed by GitHub
8 changed files with 479 additions and 67 deletions
+6 -1
View File
@@ -189,7 +189,12 @@ def add_services(out):
"pid": d["pid"],
"name": d["identity"],
"status": d["status"],
"description": d["description"]
"description": d["description"],
"statistics": {
"memory-usage": str(d.get("memory", 0)),
"uptime": str(d.get("uptime", 0)),
"restart-count": int(d.get("restarts", 0))
}
}
services.append(entry)