All Products
Search
Document Center

Application Real-Time Monitoring Service:Python application instance monitoring

Last Updated:Feb 26, 2025

After you install an Application Real-Time Monitoring Service (ARMS) agent for a Python application, ARMS starts to monitor the application. You can view information about application instances, such as basic metrics, garbage collection (GC), and heap memory on the Instance Monitoring tab of the application details page.

Prerequisite

An ARMS agent is installed for the application. For more information, see Application Monitoring overview.

Go to the Instance Monitoring tab

  1. Log on to the ARMS console. In the left-side navigation pane, choose Application Monitoring > Application List.

  2. On the Application List page, select a region in the top navigation bar and click the name of the application that you want to manage.

    Note

    Icons displayed in the Language column indicate languages in which applications are written.

    Java图标: Java application

    image: Go application

    image: Python application

    Hyphen (-): application monitored in Managed Service for OpenTelemetry.

  3. In the top navigation bar, click the Instance Monitoring tab.

Instance Monitoring tab

Instance monitoring is available only for Python applications deployed in a Container Service for Kubernetes (ACK) cluster. You need to integrate the Python applications with Managed Service for Prometheus. For more information, see Monitor an ACK cluster.

2024-09-11_16-00-53

  • In the Quick Filter section (icon 1), you can query charts and instances by cluster or instance ID.

  • In the trend charts section (icon 2), you can view the trend charts of CPU/memory usage and GCs for the application in a specified time period.

    • Instance base monitoring: shows the trend chart of CPU and memory usage in the specified time period.

    • Instance GC: shows the trend chart of GCs in the specified time period.

    Click the image.png icon. In the dialog box that appears, you can view the metric data in a specific time period or compare the metric data in the same time period on different dates. You can switch between the image.png icons to display the data in a column chart or a trend chart.

  • In the instance list section (icon 3), you can view instance information, such as the following:

    • IP address

    • Used CPU, memory, and disk

    • Number of CPU and memory requests

    • CPU, memory, and disk limits and usage rates (if the limits are not set, the CPU utilization column displays -)

    • Number of GCs

    • Key metrics of each instance defined by the RED Method, including rate, errors, and duration

    In the instance list, you can perform the following operations:

    • Click an instance IP address or click Details in the Actions column to view the instance details. For more information, see the Instance Details section.

    • Click Traces in the Actions column to view the trace details of an instance. For more information, see Trace Explorer.

Instance details

Overview

On the Overview tab, you can view the number of requests, number of errors, and average duration.

2024-09-11_16-49-48

Runtime Monitoring

On the Runtime Monitoring tab, you can view the following metrics of the instance:

  • Number of threads

  • Number of context switches

  • Number of GC objects, including allocated and released objects, which are respectively displayed as positive and negative numbers

  • Generation 2 GC count: The number of times the Python garbage collector collects garbage in generation 2.

  • Generation 2 GC time: The total time spent by the Python garbage collector collecting garbage in generation 2.

Note

You can learn more about the Python GC mechanism and collection by generation in the official Python website.

2024-09-11_16-50-59

Container monitoring

On the Container monitoring tab, you can view the time series of CPU, memory, and disk usage, load, traffic, and packets.

image

Trace Explorer

Trace Explorer allows you to combine filter conditions and aggregation dimensions for real-time analysis based on the stored full trace data. This can meet the custom diagnostics requirements in various scenarios. For more information, see Trace Explorer.Span数据信息

Reference

For information about Application Monitoring, see Application monitoring metrics.