Monitoring Containers in Docker Engine with Swarm

21

Monitoring Containers in Docker Engine with Swarm

When moving to containerization, the normal infrastructure for logging is not as we are used to with “normal” servers. Logging is important in all production systems both to be up front in solving problems and for auditing. But when moving to a distributed setup with multiple nodes and many containers logging gets nontrivial.

I will introduce how the logging subsystem works with Docker Engine using Swarm. We will take a look at what happens when a container emits a log and it is passed into the Docker Engine logging system. What is the purpose of a logging driver, should we run the log collector as a container, how/why? We will also look into how the log messages can be collected in a centralized place for further processing.