below is the metrics returned by the kubelet summary endpoint
"node":{
"nodeName":"shayeeb-virtualbox",
"systemContainers":[ ],
"startTime":"2018-03-05T04:52:39Z",
"cpu":{
"time":"2018-03-05T05:06:00Z",
"usageNanoCores":989865279,
"usageCoreNanoSeconds":861395314766
},
"memory":{
"time":"2018-03-05T05:06:00Z",
"availableBytes":697614336,
"usageBytes":1809657856,
"workingSetBytes":1378811904,
"rssBytes":935657472,
"pageFaults":56928,
"majorPageFaults":70
},
...
the cpu metric is returned in ns but i need to calculate the cpu usage from the above metric and further more I need to calculate the memory usage from the above memory metrics.I am stuck here I couldnt find any details about the above metrics .