Langsung ke konten

Monitoring Docker with cAdvisor

cAdvisor is a monitoring tool which is built and open sourced by Google for monitoring resource usage and performance characteristics of running containers.

Advertisement

In this tutorial we will install cAdvisor and use it for monitoring Docker container.

What is cAdvisor? 

cAdvisor (Container Advisor) is a monitoring tool which is built and open sourced by Google for monitoring resource usage and performance characteristics of running containers. cAdvisor runs a daemon that collects, aggregates, processes, and exports information about running containers.

Install and Run cAdvisor

Pull latest google/cadvisor image from Docker Hub:

sudo su
docker pull google/cadvisor

Run cAdvisor container:

docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor

cAdvisor container runs on port 8080. You can access it on http://localhost:8080.

Reference: