As Containers run in their own namespaces, traditional Linux monitoring tools such as top, ps, tcpdump, and lsof from the host system do not help monitor the activity happening within a Container or between Containers. This makes it complex to troubleshoot Containers. Before we discuss tools available for Container monitoring, let's see the major items that we need to monitor:
- The CPU usage by a Container and processes running inside a Container
- The memory usage by a Container and processes running inside a Container
- Network access for both incoming and outgoing connections
- File I/O performed by Containers
The following are some approaches to monitor Containers:
- Install monitoring software in the Container: This defeats the Container ...