If your Classic Load Balancer (CLB) instance encounters network issues, such as request timeouts and throttling, or you need to check the load and performance of your CLB instance, you can query the monitoring metrics of your CLB instance to perform analysis and troubleshooting. This topic describes the monitoring metrics of CLB.
Usage notes
You can call API operations to query monitoring data within the last 31 days.
Set Project to acs_slb_dashboard, and set the data sampling period to 60 seconds. The Period parameter can be set only to a multiple of 60.
Set the Dimensions parameter to a JSON string. Example: [{"instanceId":"lb-bp1r92vzpemy099f******"}].
Set the instanceId field in Dimensions to the ID of your CLB instance, the port field to the port of your CLB instance, and the vip field to the service address of your CLB instance.
Layer 4 monitoring metrics
Metric | Description | Unit | Dimensions | Statistics |
HeathyServerCount | The number of healthy Elastic Compute Service (ECS) instances. | Count | instanceId | Average, Minimum, and Maximum |
UnhealthyServerCount | The number of unhealthy ECS instances. | Count | instanceId | Average, Minimum, and Maximum |
PacketTX | The number of outbound packets per second on a port. | Count/s | instanceId, port, and vip | Average, Minimum, and Maximum |
PacketRX | The number of inbound packets per second on a port. | Count/s | instanceId, port, and vip | Average, Minimum, and Maximum |
TrafficRXNew | The amount of inbound data per second on a port. | bit/s | instanceId, port, and vip | Average, Minimum, and Maximum |
TrafficTXNew | The amount of outbound data per second on a port. | bit/s | instanceId, port, and vip | Average, Minimum, and Maximum |
ActiveConnection | The number of active connections on a port, which is the number of connections that are currently in use. This metric includes all TCP and UDP connections that are in the ESTABLISHED state. A persistent connection can simultaneously transfer multiple file requests. | Count | instanceId, port, and vip | Average, Minimum, and Maximum |
InactiveConnection | The number of inactive connections on a port. This metric includes all TCP and UDP connections that are not in the ESTABLISHED state. | Count | instanceId, port, and vip | Average, Minimum, and Maximum |
NewConnection | The number of new TCP connections established between clients and a CLB instance within a statistical period. | Count | instanceId, port, and vip | Average, Minimum, and Maximum |
MaxConnection | The number of all established TCP and UDP connections. | Count | instanceId, port, and vip | Average, Minimum, and Maximum |
DropConnection | The number of connections dropped per second on a listener. | Count/s | instanceId, port, and vip | Average, Minimum, and Maximum |
DropPacketRX | The number of inbound packets dropped per second on a listener. | Count/s | instanceId, port, and vip | Average, Minimum, and Maximum |
DropPacketTX | The number of outbound packets dropped per second on a listener. | Count/s | instanceId, port, and vip | Average, Minimum, and Maximum |
DropTrafficRX | The amount of inbound traffic dropped per second. | bit/s | instanceId, port, and vip | Average, Minimum, and Maximum |
DropTrafficTX | The amount of outbound traffic dropped per second. | bit/s | instanceId, port, and vip | Average, Minimum, and Maximum |
InstanceActiveConnection | The number of active connections per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceDropConnection | The number of connections dropped per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceDropPacketRX | The number of inbound packets dropped per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceDropPacketTX | The number of outbound packets dropped per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceDropTrafficRX | The amount of inbound traffic dropped per second on an instance. | bit/s | instanceId | Average, Minimum, and Maximum |
InstanceDropTrafficTX | The amount of outbound traffic dropped per second on an instance. | bit/s | instanceId | Average, Minimum, and Maximum |
InstanceInactiveConnection | The number of inactive connections per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceMaxConnection | The maximum number of concurrent connections per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceNewConnection | The number of new connections per second on an instance. | Count/s | instanceId | Average, Minimum, and Maximum |
InstancePacketRX | The number of packets received by a CLB instance per second. | Count/s | instanceId | Average, Minimum, and Maximum |
InstancePacketTX | The number of packets sent by a CLB instance per second. | Count/s | instanceId | Average, Minimum, and Maximum |
InstanceTrafficRX | The amount of traffic consumed to access a CLB instance from the Internet. | bit/s | instanceId | Average, Minimum, and Maximum |
InstanceTrafficTX | The amount of traffic consumed by a CLB instance to access the Internet. | bit/s | instanceId | Average, Minimum, and Maximum |
InstanceMaxConnectionUtilization | The utilization of maximum connections. | % | instanceId | Average, Maximum, and Minimum |
InstanceNewConnectionUtilization | The utilization of new connections. | % | instanceId | Average, Maximum, and Minimum |
Layer 7 monitoring metrics
Metric | Description | Unit | Dimensions | Statistics |
Qps | The number of queries per second (QPS) on a port, which indicates the number of HTTP and HTTPS requests processed per second. | Count/s | instanceId, port, and vip | Average |
Rt | The average latency of requests on a port, which indicates the average response time of a CLB instance. | ms | instanceId, port, and vip | Average |
StatusCode2xx | The number of 2xx status codes returned by a CLB instance to clients through a port. | Count/s | instanceId, port, and vip | Average |
StatusCode3xx | The number of 3xx status codes returned by a CLB instance to clients through a port. | Count/s | instanceId, port, and vip | Average |
StatusCode4xx | The number of 4xx status codes returned by a CLB instance to clients through a port. | Count/s | instanceId, port, and vip | Average |
StatusCode5xx | The number of 5xx status codes returned by a CLB instance to clients through a port. | Count/s | instanceId, port, and vip | Average |
StatusCodeOther | The number of other status codes returned by a CLB instance to clients through a port. | Count/s | instanceId, port, and vip | Average |
UpstreamCode4xx | The number of 4xx status codes returned by backend servers to a CLB instance through a port. | Count/s | instanceId, port, and vip | Average |
UpstreamCode5xx | The number of 5xx status codes returned by backend servers to clients through a port. | Count/s | instanceId, port, and vip | Average |
UpstreamRt | The average latency of requests sent by backend servers to the proxy server through a port. | ms | instanceId, port, and vip | Average |
InstanceQps | The QPS on an instance, which indicates the number of HTTP and HTTPS requests processed per second. | Count/s | instanceId | Average |
InstanceRt | The average response latency of an instance. | ms | instanceId | Average |
InstanceStatusCode2xx | The number of 2xx status codes returned by a CLB instance to clients. | Count/s | instanceId | Average |
InstanceStatusCode3xx | The number of 3xx status codes returned by a CLB instance to clients. | Count/s | instanceId | Average |
InstanceStatusCode4xx | The number of 4xx status codes returned by a CLB instance to clients. | Count/s | instanceId | Average |
InstanceStatusCode5xx | The number of 5xx status codes returned by a CLB instance to clients. | Count/s | instanceId | Average |
InstanceStatusCodeOther | The number of other status codes returned by a CLB instance to clients. | Count/s | instanceId | Average |
InstanceUpstreamCode4xx | The number of 4xx status codes returned by backend servers to a CLB instance. | Count/s | instanceId | Average |
InstanceUpstreamCode5xx | The number of 5xx status codes returned by backend servers to a CLB instance. | Count/s | instanceId | Average |
InstanceUpstreamRt | The average latency of requests sent by backend servers to the proxy server. | ms | instanceId | Average |
InstanceQpsUtilization | The QPS usage. | % | instanceId | Average, Maximum, and Minimum |
References
The monitoring data may be different from the billing data. For more information, see Monitoring data and billing data.
For more information about how to view CLB monitoring data, see View monitoring data of CLB.
For more information about how to configure alert rules for CLB instances, see Configure alert rules.