HomeDocker Monitoring
Docker Monitoring

Docker provides a way to run applications securely isolated in a container, packaged with all its dependencies and libraries. Docker is the company driving the container movement and the only container platform provider to address every application across the hybrid cloud. It enables true independence between applications and infrastructure and developers and IT ops to unlock their potential and creates a model for better collaboration and innovation.

Metrics collected by Docker Integration
Metric
– Description
Image Available
– Number of images available
CPUs
– Total CPU cores
Event Listener
– no of Event Listeners
NFd
– Named data network forwarding daemon
Go Routines
– No of Goroutines
Server Version
– Server Version
Total Container Rootfs Size
– Total size of all the files in the container
Total Container Raw Size
– Total size of all the files in the container which have been created or changed by processes running in the container.
Total Image Shared Size
Total Image Size
– Size of all layers of the image on disk
Total Image Virtual Size
– Size of all layers of the image on disk
Containers
– Total Number of containers on this host
Containers Paused
– Total Number of containers paused in this host
Containers Running
– The number of containers running on this host
Containers Stopped
– The number of containers stopped on this host
Total CPU Usage
– The percent of CPU time obtained by this container
Memory Limit
– The memory limit for the container, if set
Total Cache Memory Used
– The amount of memory that is being used to cache data from disk (e.g. memory contents that can be associated precisely with a block on a block device)
Total Memory Used (Excluding Cache)
– Total amount of memory used (excluding cache memory)
Total Network Received Bytes
– Bytes received per second from the network
Total Network Sent Bytes
– Bytes sent per second to the network
Configuring
  1. Installing module: rptmonitor uses docker module as Docker SDK for Python to interact with docker.

    Installing docker :

    • Using pip : pip install docker (python2) & pip3 install docker (python3)
    • Using easy_install : easy_install docker
    • From source :

      git clone https://github.com/docker/docker-py

      cd docker-py/

      sudo python setup.py install

    • ‘pip’ is preferred installer program.

      Note : Installing pip on CentOS / RHEL / Ubuntu / Debian

  2. Edit config.cfg file :

    • Uncomment the lines containing use_docker_default config variables (remove # symbol).
    • Change default values as required.
  3. Restart rptmonitor :

    • For deb/rpm package supported Linux distros :

      sudo /etc/init.d/rptmonitor restart
    • For OpenSUSE(11.4+) with systemd :

      sudo systemctl restart rptmonitor.service
    • For other Linux distro, FreeBSD 8+, Mac OS X+ :

      sudo python /usr/local/bin/rptmonitor/monitor.py restart