From dd6a06e9de7987e04ea1f07c5d0bb5b871f762a0 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 12 Jan 2022 19:47:47 -0500 Subject: [PATCH] docs: update proc_stats documentation Signed-off-by: Eric Callahan --- docs/web_api.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/web_api.md b/docs/web_api.md index 9ff2cad..8ada20d 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -1091,6 +1091,13 @@ An object in the following format: "bandwidth": 4455.91 } }, + "system_cpu_usage": { + "cpu": 2.53, + "cpu0": 3.03, + "cpu1": 5.1, + "cpu2": 1.02, + "cpu3": 1 + }, "websocket_connections": 4 } ``` @@ -1143,6 +1150,10 @@ will be tracked. Each interface reports the following fields: If network information is not available then the `network` field will contain an empty object. +If the system reports cpu usage at `/proc/stat` then the `system_cpu_usage` +field will contain an object with cpu usage data. The `cpu` field of this +object reports total cpu usage, while each `cpuX` field is usage per core. + The `websocket_connections` field reports the number of active websockets currently connected to moonraker. @@ -3710,6 +3721,13 @@ process statistics: "bandwidth": 3458.77 } }, + "system_cpu_usage": { + "cpu": 2.53, + "cpu0": 3.03, + "cpu1": 5.1, + "cpu2": 1.02, + "cpu3": 1 + }, "websocket_connections": 2 }] }