Skip to content
May 29, 2015 / windperson

cAdvisor-Docker Container的視覺化效能檢視工具

概要

cAdvisor是Google開發的開源Docker Container圖形化監視器軟體,GitHub網址為:

http://github.com/google/cadvisor

執行方法

直接執行Docker image,在CentOS上需要增加一個–privileged=true的參數
(在此範例Docker Host裝載Docker程式本身的根目錄是/var/lib/docker):

docker run –privileged=true –volume=/cgroup:/cgroup:ro –volume=/:/rootfs:ro –volume=/var/run:/var/run:rw –volume=/sys:/sys:ro –volume=/var/lib/docker/:/var/lib/docker:ro –publish=8090:8080 -d –name=cadvisor google/cadvisor:latest

然後開瀏覽器到網址 http://執行Docker_Host的IP位址:8090 即可觀看。

Reference:
https://github.com/google/cadvisor/blob/master/docs/running.md

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: