The other metric that is particularly useful in assessing general system health is the CPU utilization percentages. Generally an operating system is able to account for the number of cycles spent by the CPU on user activities, operating system activities and interrupt time. These statistics are available to us in the RPC response to <get-route-engine-information>, and so it is possible for us to modify this recipe to:
- Capture <cpu-user>, <cpu-background>, <cpu-system>, <cpu-interrupt>, <cpu-idle> elements from the RPC response,
- Add these to the system-stats event emitted,
- Create a system.html modification that produces a pie-chart showing the percentage of time spent within each state.
The steps are as follows:
- Within the ...