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
Simple Log Service is activated. For more information, see Activate Simple Log Service.
A TCP listener or a UDP listener is configured for the CLB instance. For more information, see Add a TCP listener or Add a UDP listener.
You have created a Simple Log Service Project and a MetricStore in the region where the CLB instance is located. For more information, see Manage a Project and Create a MetricStore.
NoteA MetricStore and a Logstore in the same project cannot have the same name.
Enable fine-grained monitoring
Log on to the CLB console.
In the top menu bar, select the region where the CLB instance is located.
On the Instances page, find the CLB instance that you want to manage, click its ID, and then click the Fine-grained Monitoring tab.
Enable fine-grained monitoring for the current region.
If fine-grained monitoring is already enabled in the current region, skip this step.
On the Fine-grained Monitoring tab, click Enable Fine-grained Monitoring.
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.
ImportantDuring 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.
Enable fine-grained monitoring for the TCP or UDP listener.
Choose .
On the Settings tab, turn on the Fine-grained Monitoring switch for the TCP or UDP listener.
NoteAfter 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
| Metric | Description |
| actConnsPS | The number of active connections per second. |
| connsPS | The number of new connections per second. |
| dropConnPS | The number of dropped connections per second. |
| failConnPS | The number of failed connections per second. |
| inActConnPS | The number of inactive connections per second. |
| inBitsPS | The number of inbound bits per second. Unit: bit/s. |
| inDropBitsPS | The number of inbound bits that are dropped per second. Unit: bit/s. |
| inDropPktsPS | The number of inbound packets that are dropped per second. |
| inPktsPS | The number of inbound packets per second. |
| aclDropBitsPS | The number of inbound bits that are dropped by access control lists (ACLs) per second. Unit: bit/s. |
| aclDropPktsPS | The number of inbound packets that are dropped by ACLs per second. |
| maxConnsPs | The number of concurrent connections per second. |
| outBitsPS | The number of outbound bits per second. Unit: bit/s |
| outDropBitsPS | The number of outbound bits that are dropped per second. Unit: bit/s. |
| outDropPktsPS | The number of outbound packets that are dropped per second. |
Table 2. Label descriptions
| Label | Description |
| lbId | The ID of an SLB instance. |
| listenerId | The ID of a listener. |
| protocol | The protocol of a listener. |
| vip | The IP address that is listened on. |
| vport | The port that is listened on. |