I want to calculate and show node specific processor utilization as a percentage in my own web application using the Kubernetes API.
I need the same information as the Kube UI and Cadvisor mappings, but I want to use the Kubernetes API.
I found some cpu metrics in the node -ip: 10255 / stats section, which contains the timestamp, CPU usage: total, user and system in large weird numbers that I don't understand. In addition, the CPU Limit is reported as 1024.
How does the Kube user interface calculate processor utilization and is it possible to do this through the API?
source share