All Products
Search
Document Center

Server Load Balancer:Fine-grained monitoring

Last Updated:Dec 03, 2025

Classic Load Balancer (CLB) integrates with Simple Log Service (SLS) to provide fine-grained monitoring. You can use Layer 4 listener monitoring metrics to view information about CLB, such as per-second traffic, New Connections, and Maximum Connections, for more detailed service monitoring and issue troubleshooting.

Supported regions

The following tables describe the regions where fine-grained monitoring is supported.

Area

Region

China

China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Shenzhen), China (Hohhot), China (Heyuan), China (Guangzhou), China (Chengdu), Hong Kong (China)

Asia Pacific

Japan (Tokyo), Malaysia (Kuala Lumpur), Singapore, Indonesia (Jakarta)

Europe and Americas

Germany (Frankfurt), UK (London), US (Virginia), US (Silicon Valley)

Middle East

UAE (Dubai)

Billing

After CLB delivers logs to Simple Log Service, Simple Log Service charges you for storage space, read traffic, requests, data transformation, and data shipping. For more information, see Simple Log Service Pricing.

Prerequisites

Enable fine-grained monitoring

  1. Log on to the CLB console.

  2. In the top menu bar, select the region where the CLB instance is located.

  3. On the Instances page, find the CLB instance that you want to manage, click its ID, and then click the Fine-grained Monitoring tab.

  4. Enable fine-grained monitoring for the current region.

    If fine-grained monitoring is already enabled in the current region, skip this step.

    1. On the Fine-grained Monitoring tab, click Enable Fine-grained Monitoring.

    2. In the Enable Fine-grained Monitoring for SLB dialog box, select or enter a project and a MetricStore, select I understand the above information, and then click OK.

      Important
      • During this operation, the system automatically creates a RAM role named AliyunServiceRoleForSlbLogDelivery. This role authorizes Server Load Balancer to push per-second monitoring metrics to Simple Log Service.

      • Do not revoke the authorization or delete the RAM role. Otherwise, Server Load Balancer cannot push per-second monitoring metrics to Simple Log Service.

  5. Enable fine-grained monitoring for the TCP or UDP listener.

    1. Choose Fine-grained Monitoring > Settings.

    2. On the Settings tab, turn on the Fine-grained Monitoring switch for the TCP or UDP listener.

    Note

    After you enable the fine-grained monitoring feature, Simple Log Service receives monitoring data from CLB after a delay of approximately 5 seconds.

What to do next

After Simple Log Service collects per-second monitoring data from CLB, you can perform operations in the Simple Log Service console, such as querying and analyzing, downloading, delivering, processing, and alerting. For more information, see Common operations for cloud product logs.

Descriptions of metrics

The metrics in this topic use the time series data format. For more information, see Time series data (metric).

You can use Prometheus Query Language (PromQL) or SQL statements to query and analyze data. For more information, see Introduction to time series data query and analysis.

Table 1. Metric descriptions

MetricDescription
actConnsPSThe number of active connections per second.
connsPSThe number of new connections per second.
dropConnPSThe number of dropped connections per second.
failConnPSThe number of failed connections per second.
inActConnPSThe number of inactive connections per second.
inBitsPSThe number of inbound bits per second. Unit: bit/s.
inDropBitsPSThe number of inbound bits that are dropped per second. Unit: bit/s.
inDropPktsPSThe number of inbound packets that are dropped per second.
inPktsPSThe number of inbound packets per second.
aclDropBitsPSThe number of inbound bits that are dropped by access control lists (ACLs) per second. Unit: bit/s.
aclDropPktsPSThe number of inbound packets that are dropped by ACLs per second.
maxConnsPsThe number of concurrent connections per second.
outBitsPSThe number of outbound bits per second. Unit: bit/s
outDropBitsPSThe number of outbound bits that are dropped per second. Unit: bit/s.
outDropPktsPSThe number of outbound packets that are dropped per second.

Table 2. Label descriptions

LabelDescription
lbIdThe ID of an SLB instance.
listenerIdThe ID of a listener.
protocolThe protocol of a listener.
vipThe IP address that is listened on.
vportThe port that is listened on.

References

Layer 4 per-second monitoring metrics for SLB