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

Note: cAdvisor does not work on RHEL 7.6.

Installing cAdvisor

To install cAdvisor execute the following commands on your Docker host:

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

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

Refer to https://github.com/google/cadvisor/ for full details on the cAdvisor capabilities and install instructions.

Running cAdvisor on RHEL and Centos

On RHEL and Centos systems you’ll need to add these install options to ensure proper operation of cAdvisor:

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

Running cAdvisor on Docker

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

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

In this Article: