-
New Feature Request
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
Currently various system CPU utilization metrics can be obtained by separate keys, for example system.cpu.util[,idle], system.cpu.util[,user], etc. Because the keys might be polled at different times, the items would have data from different CPU utilization snapshots and summary CPU utilization would not be 100%.
New key must be added to return all available cpu statistics with single request - system.cpu.get[<cpu>] where:
- <cpu> - the cpu to return statistics for:
- all - summary for all cpus (default)
- details - statistics for each cpu and summary for all cpus (the naming still under discussion)
- <cpu num> - statistics for the specified cpu
This key will return json array with statistics for required cpus having format, for example:
[ { "index": "all", "status": "online", "stats": { "avg1": { "system": 0, "user": 0, "idle": 0 }, "avg5": { "system": 0, "user": 0, "idle": 0 }, "avg15": { "system": 0, "user": 0, "idle": 0 } } }, { "index": "0", "status": "online", "stats": { "avg1": { "system": 0, "user": 0, "idle": 0 }, "avg5": { "system": 0, "user": 0, "idle": 0 }, "avg15": { "system": 0, "user": 0, "idle": 0 } } }, { "index": "1", "status": "online", "stats": { "avg1": { "system": 0, "user": 0, "idle": 0 }, "avg5": { "system": 0, "user": 0, "idle": 0 }, "avg15": { "system": 0, "user": 0, "idle": 0 } } } ]