Exporting Kubernetes pod cpu/memory information

6/19/2017

I am running Kubernetes cluster 1.5.3 on IBM Bluemix, I would like to get the pod's resources utilization (memory and cpu) as raw data points. Is Kubernetes expose such API?

➜ bluemix git:(master) ✗ k cluster-info Kubernetes master is running at https://x:x

Heapster is running at https://x:x/api/v1/proxy/namespaces/kube-system/services/heapster

KubeDNS is running at https://x:x/api/v1/proxy/namespaces/kube-system/services/kube-dns

kubernetes-dashboard is running at https://x:x/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

-- barha
ibm-cloud
kubernetes
metrics

1 Answer

6/19/2017

You can use heapster or kube-state-metrics to achieve this. In many kubernetes deployments heapsteris already installed. Both can be easily deployed in-cluster.

-- Camil
Source: StackOverflow