Monitoring

Docker

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 \
  google/cadvisor:latest

on your docker host. Note that on RHEL and Centos systems you'll nee 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 specfy the root volume access option as:

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

Once running, LogicMonitor will discover the cAdvisor service and begin gathering data on your containers.

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