Docker stats for docker containers in kubernetes returning empty values
I resolved this one. I used the kubelet API to get the metrics for the node and well as for individual containers. The following API will return the metrics for a pod container.
http://<nodeIP>:10255/stats/<podName>/<containerName> - POST
This post that was suggested in the comments was much helpful.
This document has some more APIs to collect the metrics.