Our Docker LogicModule monitors resource use within Docker containers. To do so it requires the installation of the “cAdvisor” monitoring container within your docker service.

Getting cAdvisor to run is simple – just run:

sudo docker run \
  --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 \

on your docker host. Note that on RHEL and Centos systems you’ll need to add these options to ensure proper operation of cAdvisor:

  --privileged=true \
  --volume=/cgroup:/cgroup:ro \

and on older versions of Docker (< 1.2) you may need to specify the root volume access option as:

  --volume=//:/rootfs:ro \

Once running, LogicMonitor will discover containers as instances and begin gathering data.

See https://github.com/google/cadvisor/blob/master/README.md for full details on the cAdvisor capabilities.

In this Article: