docs: update proc_stats documentation

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-01-12 19:47:47 -05:00
parent 4c99f99cf0
commit dd6a06e9de
1 changed files with 18 additions and 0 deletions

View File

@ -1091,6 +1091,13 @@ An object in the following format:
"bandwidth": 4455.91 "bandwidth": 4455.91
} }
}, },
"system_cpu_usage": {
"cpu": 2.53,
"cpu0": 3.03,
"cpu1": 5.1,
"cpu2": 1.02,
"cpu3": 1
},
"websocket_connections": 4 "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 If network information is not available then the `network` field will
contain an empty object. 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 The `websocket_connections` field reports the number of active websockets
currently connected to moonraker. currently connected to moonraker.
@ -3710,6 +3721,13 @@ process statistics:
"bandwidth": 3458.77 "bandwidth": 3458.77
} }
}, },
"system_cpu_usage": {
"cpu": 2.53,
"cpu0": 3.03,
"cpu1": 5.1,
"cpu2": 1.02,
"cpu3": 1
},
"websocket_connections": 2 "websocket_connections": 2
}] }]
} }