Come join our live training webinar every other Wednesday at 11am PST and hear LogicMonitor experts explain best practices and answer common questions. We understand these are uncertain times, and we are here to help!
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.
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.
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 \
On older versions of Docker (< 1.2) you may need to specify the root volume access option as:
--volume=//:/rootfs:ro \
In This Article