Monitoring and collecting data from Docker

Docker is the world’s leading software containerization platform. Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.

More information on: https://www.docker.com/

How it works

The CoScale agent detects running containers on your system and starts gathering resources without any configuration. To have a more in-depth view on the process within the container you need to active the CoScale incontainer monitoring system.

The in-container system uses CoScale plugins to gather data from the process running in the container. You can find a full list of our plugins on the Agent page. CoScale requires some configuration to be able to detect which containers to monitor. You can find more information on our application monitoring documentation.

The plugin will be started within the namespace of the running container, this has the advantage that you do not have to expose any ports or mount the filesystem for the CoScale in-container monitoring to be able to do its job.

Installation

The plugin needs to be installed together with a CoScale agent, instructions on how to install the CoScale agent can be found here. If you want to monitor your applications inside Docker containers using CoScale, check out the instructions here.

Metrics

Docker

Name Unit Dimensions
Docker active check latency s  
Docker running %  

Docker / CPU

Name Unit Dimensions
Docker container cpu limit cores  
Docker container cpu usage percent from limit %  
Docker container kernel mode cpu usage %  
Docker container total cpu usage %  
Docker container total cpu usage in cores cores  
Docker container user mode cpu usage %  

Docker / Disk

Name Unit Dimensions
Docker container block IO read rate b/s  
Docker container block IO write rate b/s  

Docker / FS

Name Unit Dimensions
Docker container filesystem size b  
Docker container total filesystem size (virtual) b  

Docker / General

Name Unit Dimensions
Docker container number of running processes #  

Docker / Host

Name Unit Dimensions
Docker host kernel mode cpu usage %  
Docker host memory usage bytes b  
Docker host network receive rate b/s  
Docker host network transmit rate b/s  
Docker host user mode cpu usage %  
Docker total host cpu usage %  
Docker total number of containers #  
Docker total number of images #  

Docker / Memory

Name Unit Dimensions
Docker container cache memory bytes b  
Docker container free memory bytes b  
Docker container free memory percentage %  
Docker container memory limit b  
Docker container memory usage bytes b  
Docker container memory usage percentage %  
Docker container pgfault memory failures total #  
Docker container pgmajfault memory failures total #  
Docker container RSS bytes b  
Docker container shm memory free bytes b  
Docker container shm memory free percent %  
Docker container shm memory limit b  
Docker container shm memory used bytes b  
Docker container swap usage bytes b  
Docker container working set b  

Docker / Network

Name Unit Dimensions
Docker container network receive errors total #  
Docker container network receive packets dropped total #  
Docker container network receive rate b/s  
Docker container network transmit errors total #  
Docker container network transmit packets dropped total #  
Docker container network transmit rate b/s  

Docker / Network / TCP States

Name Unit Dimensions
Docker container number of CLOSE_WAIT connections #  
Docker container number of CLOSING connections #  
Docker container number of ESTABLISHED connections #  
Docker container number of FIN_WAIT1 connections #  
Docker container number of FIN_WAIT2 connections #  
Docker container number of LAST_ACK connections #  
Docker container number of LISTEN connections #  
Docker container number of SYN_RECV connections #  
Docker container number of SYN_SENT connections #  
Docker container number of TIME_WAIT connections #