The Management Pack for Docker uses cAdvisor as the collection method for Docker container environment resources and performance data. See the references and example below to configure cAdvisor for Docker.

Note: cAdvisor only supports HTTP at this time.

Your primary reference for getting up-and-running with cAdvisor is the cAdvisor github repository.

The cAdvisor repo contains a Quick Start section, which shows you how to run cAdvisor in a Docker container. Make sure you're referencing the instructions specific to your OS. (See: Running cAdvisor.)

Note: You must run the provided commands on each Docker host you want to monitor. The commands also should be adjusted for your particular orchestration system (e.g., Rancher, Kubernetes, Docker Swarm, etc.)

The following example command is referenced in the cAdvisor documentation. It should be run as root or via sudo, and we also recommend adding the --restart=always line as shown below:

docker run \
--restart=always  \
--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=8080:8080 \
--detach=true \
--name=cadvisor \
google/cadvisor:latest
Note: For advanced runtime options for cAdvisor, see the cAdvisor Runtime Options documentation.