Skip to main content

Containers

Container technologies (such as Docker and Kubernetes) are widely used in microservices, DevOps, and other scenarios due to their dynamic and lightweight features. However, they also bring monitoring challenges such as "dense deployment, short lifecycle, and resource sharing". The core goal of container monitoring is to "grasp the real-time running status, resource consumption, and business health of containers and clusters".

Preconditions​

To use the platform’s container monitoring capabilities, you first need to install the platform probes: SmartAgent and SmartGate. For specific installation methods, please refer to Probe Installation.

Usage Scenarios​

  • Container Resource Consumption Monitoring and Optimization: The "resource isolation" of containers relies on technologies like Cgroups. However, when containers are densely deployed on a single node, "resource contention" (such as CPU preemption, memory overflow, and disk I/O bottlenecks) is likely to occur. Monitoring is required to realize dynamic resource allocation and optimization.
  • Container Lifecycle and Fault Troubleshooting: Containers have a short lifecycle (creation, operation, and destruction may take only a few minutes), and faults are characterized by "fast spread and strong concealment". Monitoring is needed to track container status and locate the root cause of faults.
  • Containerized Business and Application Performance Assurance: Containers are the carriers of business applications. It is necessary to associate "container resources" with "business indicators" through monitoring to ensure the stable operation of applications in the container environment.

Get Started​

  1. Navigate to the Infrastructure -> Containers page. Here, you can view the list of containers whose data is collected by the probe, including basic container information and metric data.container1
  2. The container details page displays information about key processes in the container, including PID (Process ID), PPID (Parent Process ID), and key process metrics such as CPU utilization and RSS (Resident Set Size) memory usage. Additionally, it shows the upstream and downstream dependency relationships of the container, allowing you to know the host where the container runs, as well as the process group instances and service instances within the container. This helps you quickly understand the upstream and downstream dependent entities of the current container.container2
  3. The Log Module displays the log data collected from within the container.container3
  4. The Container Insights function provides the health score of the container in the past 7 days and its trend changes. It also allows you to view deployment changes in the past 7 days, such as information about newly deployed process groups. container4

On the container details page, you can add an existing dashboard as a custom view to see the monitoring content you need in one place. The view's effective scope applies only to containers, not other entity types.

  1. Open the target container details page, click + Add View in the tab bar, and enter a View Name.
  2. Select the Effective Scope:
    • Apply to Current Entity: Show the view only on the current container.
    • Apply to Filtered Entities: Set attribute filter conditions. The current container always shows the view, while other containers are matched by those conditions. You can save even if the conditions do not match the current container.
    • Apply Globally: Show the view on all containers. Users still need permission to view each entity.
  3. Select a dashboard you have permission to use, optionally enable Show by Default, and click Save. The new view appears in the details page's tab bar.
  4. Open the new view to see the selected dashboard, and verify that the view appears on the expected container details pages.

You can set the effective scope only when creating the view. Each details page shows at most one custom view by default. If several views have Show by Default enabled, the priority is Apply to Current Entity > Apply to Filtered Entities > Apply Globally; within the same scope, the most recently created view takes priority. Read-only users can view applicable views but do not see + Add View.

To remove a view, administrators or view creators can click ⋮ → Delete on its tab. A view that applies only to the current container can be deleted directly. For a filtered or global view, choose Remove from Current Entity or Delete View Everywhere. The former removes the view from this container and it will not reappear when you revisit the details page. The latter removes the same view from all applicable containers without deleting the original dashboard.

Add a custom view to a container