mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
statd: populate service runtime statistic
Populate operational runtime statistics for services. Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user