`
sillycat
  • 浏览: 2552948 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Monitor Docker Application CAdvisor

 
阅读更多
Monitor Docker Application CAdvisor

CAdvisor (Container Advisor)
Set Up a simple Single Cadvisor
Here is my Makefile
PORT = 6080
IMAGE=google/cadvisor
TAG=latest
NAME=cadvisor-service-$(PORT)
run:
    docker run \
     --volume=/:/rootfs:ro \
     --volume=/var/run:/var/run:rw \
     --volume=/sys:/sys:ro \
     --volume=/var/lib/docker/:/var/lib/docker:ro \
     --privileged=true \
     -p $(PORT):8080 \
     --detach=true \
     --name $(NAME) $(IMAGE):$(TAG)
clean:
    docker stop ${NAME}
    docker rm ${NAME}
Here is my README.md
### How to Start the Service
>make run PORT=6080
Monitor all the docker applications
http://localhost:6080/containers/docker
Monitor the host Machine
http://localhost:6080/containers/

REST API
https://github.com/google/cadvisor/blob/master/docs/api.md
GO Client
https://github.com/google/cadvisor/tree/master/client

References:
https://github.com/google/cadvisor
https://blog.csdn.net/felix_yujing/article/details/71680290
https://blog.einverne.info/post/2018/03/cadvisor.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics