Get usage information of minions in Kubenretes Cluster

6 views
Skip to first unread message

vaibhav kohli

unread,
Dec 1, 2014, 9:01:11 AM12/1/14
to google-c...@googlegroups.com
I wanted to get the usage information of minion resources (CPU,memory, etc.). Are there any API`s or some hack way which can provide me the "usage" details of the minions in the Kubernetes cluster.
Or are their any exposed API`s of cadvisor in Kubernetes codebase which can be used for this purpose ?

rabi mishra

unread,
Dec 1, 2014, 10:51:03 AM12/1/14
to google-c...@googlegroups.com
You can probably look at cAdvisor remote REST API.


On Mon, Dec 1, 2014 at 10:01 PM, vaibhav kohli <vaibhav...@gmail.com> wrote:
I wanted to get the usage information of minion resources (CPU,memory, etc.). Are there any API`s or some hack way which can provide me the "usage" details of the minions in the Kubernetes cluster.
Or are their any exposed API`s of cadvisor in Kubernetes codebase which can be used for this purpose ?

--
You received this message because you are subscribed to the Google Groups "Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-contain...@googlegroups.com.
To post to this group, send email to google-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Rabi Mishra

Joe Beda

unread,
Dec 1, 2014, 12:27:48 PM12/1/14
to google-c...@googlegroups.com

vaibhav kohli

unread,
Dec 2, 2014, 3:34:55 AM12/2/14
to google-c...@googlegroups.com
Thanks for the reply. I have already seen that API`s is there any specific API from cAdvisor which can give me the usage info of minion inspite of containers.

vaibhav kohli

unread,
Dec 2, 2014, 3:35:18 AM12/2/14
to google-c...@googlegroups.com
Thanks for the reply.

Victor Marmol

unread,
Dec 3, 2014, 4:31:01 PM12/3/14
to google-c...@googlegroups.com
Are you looking for the usage of the Kubelet, the whole machine, or a specific container/pod?

For Kubelet: today we won't be able to since it doesn't run in a container (there are plans for this to be the case in the near future).

For the whole machine: You are looking for the root container ("/") in cAdvisor.

For a container/pod: You can query the individual container in cAdvisor.

If you're looking for the usage of all non-containerized things on the machine there is no API for that today but you can do:

usage at root - (sum of usage of all children of root)
Reply all
Reply to author
Forward
0 new messages