If your Network Load Balancer (NLB) instance encounters network issues, such as request timeouts and throttling, or you need to check the load and performance of your NLB instance, you can query the monitoring metrics of your NLB instance to perform analysis and troubleshooting. This topic describes the monitoring metrics of NLB.
If you want to call the CloudMonitor API, you need to set the following parameters for your NLB instance: Namespace, Period, MetricName, and Dimensions.
Set the Namespace parameter to
acs_nlb
.Set the Period parameter to a multiple of 60. Default value: 60. Unit: seconds.
Set the Dimensions parameter to a JSON string. Example:
[{"instanceId":"nlb-defs3vztfty3nm****"}]
. Set the instanceId field in Dimensions to the ID of your NLB instance.
Metrics that can be queried in the console and by calling the API or SDK
Item | Metric (console) | Unit | MetricName | Dimensions | Statistics |
Instance | Number of new connections to the instance per second | Count/s | InstanceNewConnection | userId and instanceId | Average |
Number of connections dropped on the instance per second | Count/s | InstanceDropConnection | userId and instanceId | Average | |
Number of active connections on the instance. | Count | InstanceActiveConnection | userId and instanceId | Average | |
Number of inactive connections on the instance | Count | InstanceInactiveConnection | userId and instanceId | Average | |
Maximum number of concurrent connections on an instance | Count | InstanceMaxConnection | userId and instanceId | Average | |
Number of inbound packets to the instance per second | Count/s | InstancePacketRX | userId and instanceId | Average | |
Number of outbound packets from the instance per second | Count/s | InstancePacketTX | userId and instanceId | Average | |
Number of inbound bits to the instance per second | bit/s | InstanceTrafficRX | userId and instanceId | Average | |
Number of outbound bits from the instance per second | bit/s | InstanceTrafficTX | userId and instanceId | Average | |
Number of inbound packets dropped per second on an instance | Count/s | InstanceDropPacketRX | userId and instanceId | Average | |
Number of outbound packets dropped per second on an instance | Count/s | InstanceDropPacketTX | userId and instanceId | Average | |
Number of inbound bits dropped on the instance per second | bit/s | InstanceDropTrafficRX | userId and instanceId | Average | |
Number of outbound bits dropped on the instance per second | bit/s | InstanceDropTrafficTX | userId and instanceId | Average | |
Listener | Number of action connections on the listener | Count | ActiveConnection | userId, instanceId, listenerPort, and listenerProtocol | Average |
Number of inactive connections on the listener | Count | InactiveConnection | userId, instanceId, listenerPort, and listenerProtocol | Sum | |
Maximum number of connections supported by the listener | Count | MaxConnection | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of connections dropped on the listener per second | Count/s | DropConnection | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of new connections on the listener per second | Count/s | NewConnection | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of outbound packets from the listener per second | Count/s | ListenerPacketTX | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of inbound packets to the listener per second | Count/s | ListenerPacketRX | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Outbound bandwidth of the listener | bps | TrafficTXNew | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Inbound bandwidth of the listener | bps | TrafficRXNew | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of inbound packets dropped on the listener per second | Count/s | DropPacketRX | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of outbound packets dropped on the listener per second | Count/s | DropPacketTX | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of outbound bits dropped on the listener per second | bit/s | DropTrafficTX | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of inbound bits dropped on the listener per second | bit/s | DropTrafficRX | userId, instanceId, listenerPort, and listenerProtocol | Average | |
Number of unhealthy backend Elastic Compute Service (ECS) instances | Count | ListenerUnhealthyServerCount | userId, instanceId, listenerPort, and listenerProtocol | Maximum | |
Virtual private IP address (VIP) (Zone) | Number of active connections on the VIP | Count | VipActiveConnection | userId, instanceId, port, and vip | Average |
Number of inactive connections on the VIP | Count | VipInactiveConnection | userId, instanceId, port, and vip | Average | |
Maximum number of concurrent connections on the VIP | Count | VipMaxConnection | userId, instanceId, port, and vip | Average | |
Number of connections dropped on the VIP per second | Count/s | VipDropConnection | userId, instanceId, port, and vip | Average | |
Number of new connections on the VIP per second | Count/s | VipNewConnection | userId, instanceId, port, and vip | Average | |
Number of outbound bits on the VIP per second | bit/s | VipTrafficTX | userId, instanceId, port, and vip | Average | |
Number of inbound bits on the VIP per second | bit/s | VipTrafficRX | userId, instanceId, port, and vip | Average | |
Number of outbound packets on the VIP per second | Count/s | VipPacketTX | userId, instanceId, port, and vip | Average | |
Number of inbound packets to the VIP per second | Count/s | VipPacketRX | userId, instanceId, port, and vip | Average | |
Number of outbound bits from the VIP per second | bit/s | VipDropTrafficTX | userId, instanceId, port, and vip | Average | |
Number of bits dropped on the VIP per second | bit/s | VipDropTrafficRX | userId, instanceId, port, and vip | Average | |
Number of inbound packets dropped on the VIP per second | Count/s | VipDropPacketRX | userId, instanceId, port, and vip | Average | |
Number of outbound packets dropped on the VIP per second | Count/s | VipDropPacketTX | userId, instanceId, port, and vip | Average |
Metrics that can be queried by calling the API or SDK
Item | Metric | Unit | MetricName | Dimensions | Statistics |
Listener | Number of healthy backend ECS instances | Count | ListenerHeathyServerCount | userId, instanceId, listenerPort, and listenerProtocol | Minimum |