If requests to your Application Load Balancer (ALB) instance time out or trigger network issues such as throttling, you can check the monitoring metrics of the ALB instance to troubleshoot errors and check the load and performance of the ALB instance. This topic describes the monitoring metrics of ALB.
Background information
Before you call the CloudMonitor API, you must obtain the values of the Namespace, Period, MetricName, and Dimensions parameters of ALB.
Set the Namespace parameter to
acs_alb
.Set the Period parameter to a multiple of 60. Default value: 60. Unit: seconds.
Set the Dimensions to a JSON string, such as
[{"loadBalancerId":"alb-t93aj3yndojot5****"}]
. Replace loadBalancerId in the Dimensions parameter with the ID of the ALB instance.
ALB monitoring metrics
In the MetricName column of the following table, metrics without the
DualStack_
prefix do not display the IPv4 values and IPv6 values of an ALB instance separately.If the ALB instance uses IPv4, metrics without the
DualStack_
prefix display only IPv4 values.If the ALB instance uses dual stack, metrics without the
DualStack_
prefix display the sum of IPv4 values and IPv6 values.
In the MetricName column of the following table, metrics with the
DualStack_
prefix display IPv4 values and IPv6 values separately.If the ALB instance uses IPv4, the IPv6 value of a metric with the
DualStack_
prefix is 0.0, and the IPv4 value of the metric is the actual value.If the ALB instance uses dual stack, a metric with the
DualStack_
prefix displays both the IPv4 value and IPv6 value.
In the following table, a hyphen (-) indicates a metric without the DualStack_
prefix, which does not display the IPv4 value and IPv6 value separately.
Instance metrics
Metric | Unit | Metric name | Dimension | Statistics | |
Number of active connections on an ALB instance | Count | LoadBalancerActiveConnection | DualStack_LoadBalancerActiveConnection | userId and loadBalancerId | Value |
Number of inactive connections on an ALB instance | Count | LoadBalancerInactiveConnection | DualStack_LoadBalancerInactiveConnection | userId and loadBalancerId | Value |
Maximum number of concurrent connections on an ALB instance | Count | LoadBalancerMaxConnection | DualStack_LoadBalancerMaxConnection | userId and loadBalancerId | Value |
Number of backend TLS handshake failures per second | Count/s | LoadBalancerUpstreamTLSNegotiationError | DualStack_LoadBalancerUpstreamTLSNegotiationError | userId and loadBalancerId | Value |
Number of new connections per second on an ALB instance | Count/s | LoadBalancerNewConnection | DualStack_LoadBalancerNewConnection | userId and loadBalancerId | Value |
Number of connections dropped per second on an ALB instance | Count/s | LoadBalancerRejectedConnection | DualStack_LoadBalancerRejectedConnection | userId and loadBalancerId | Value |
Number of backend connection failures per second on an ALB instance | Count/s | LoadBalancerUpstreamConnectionError | DualStack_LoadBalancerUpstreamConnectionError | userId and loadBalancerId | Value |
Number of connections that fail TLS handshakes per second on an ALB instance | Count/s | LoadBalancerClientTLSNegotiationError | DualStack_LoadBalancerClientTLSNegotiationError | userId and loadBalancerId | Value |
Number of custom responses per second on an ALB instance | Count/s | LoadBalancerHTTPFixedResponse | DualStack_LoadBalancerHTTPFixedResponse | userId and loadBalancerId | Value |
Number of redirects per second on an ALB instance | Count/s | LoadBalancerHTTPRedirect | DualStack_LoadBalancerHTTPRedirect | userId and loadBalancerId | Value |
Number of queries per second on an ALB instance | Count/s | LoadBalancerQPS | DualStack_LoadBalancerQPS | userId and loadBalancerId | Value |
Number of nonsticky requests per second on an ALB instance | Count/s | LoadBalancerNonStickyRequest | DualStack_LoadBalancerNonStickyRequest | userId and loadBalancerId | Value |
The backend response time on an ALB instance | ms | LoadBalancerUpstreamResponseTime | DualStack_LoadBalancerUpstreamResponseTime | userId and loadBalancerId | Value |
The request latency on an ALB instance | ms | LoadBalancerRequestTime | DualStack_LoadBalancerRequestTime | userId and loadBalancerId | Value |
The outbound bandwidth of an ALB instance | bit/s | LoadBalancerOutBits | DualStack_LoadBalancerOutBits | userId and loadBalancerId | Value |
The inbound bandwidth of an ALB instance | bit/s | LoadBalancerInBits | DualStack_LoadBalancerInBits | userId and loadBalancerId | Value |
Number of 2XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode2XX | DualStack_LoadBalancerHTTPCode2XX | userId and loadBalancerId | Value |
Number of 3XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode3XX | DualStack_LoadBalancerHTTPCode3XX | userId and loadBalancerId | Value |
Number of 4XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode4XX | DualStack_LoadBalancerHTTPCode4XX | userId and loadBalancerId | Value |
Number of 500 status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode500 | DualStack_LoadBalancerHTTPCode500 | userId and loadBalancerId | Value |
Number of 502 status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode502 | DualStack_LoadBalancerHTTPCode502 | userId and loadBalancerId | Value |
Number of 503 status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode503 | DualStack_LoadBalancerHTTPCode503 | userId and loadBalancerId | Value |
Number of 504 status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode504 | DualStack_LoadBalancerHTTPCode504 | userId and loadBalancerId | Value |
Number of 5XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCode5XX | DualStack_LoadBalancerHTTPCode5XX | userId and loadBalancerId | Value |
Number of backend 2XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCodeUpstream2XX | - | userId and loadBalancerId | Value |
Number of backend 3XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCodeUpstream3XX | - | userId and loadBalancerId | Value |
Number of backend 4XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCodeUpstream4XX | - | userId and loadBalancerId | Value |
Number of backend 5XX status codes per second on an ALB instance | Count/s | LoadBalancerHTTPCodeUpstream5XX | - | userId and loadBalancerId | Value |
Number of healthy backend servers of an ALB instance | Count | LoadBalancerHealthyHostCount | - | userId and loadBalancerId | Value |
Number of unhealthy backend servers of an ALB instance | Count | LoadBalancerUnHealthyHostCount | - | userId and loadBalancerId | Value |
Listener metrics
Metric | Unit | Metric name | Dimension | Statistics | |
Number of active connections on a listener | Count | ListenerActiveConnection | DualStack_ListenerActiveConnection | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of inactive connections on a listener | Count | ListenerInactiveConnection | DualStack_ListenerInactiveConnection | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Maximum number of concurrent connections on a listener | Count | ListenerMaxConnection | DualStack_ListenerMaxConnection | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of connections that fail TLS handshakes per second on a listener | Count/s | ListenerClientTLSNegotiationError | DualStack_ListenerClientTLSNegotiationError | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of new connections per second on a listener | Count/s | ListenerNewConnection | DualStack_ListenerNewConnection | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of connections dropped per second on an listener | Count/s | ListenerRejectedConnection | DualStack_ListenerRejectedConnection | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of backend connection failures per second on a listener | Count/s | ListenerUpstreamConnectionError | DualStack_ListenerUpstreamConnectionError | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of backend TLS handshake failures per second on a listener | Count/s | ListenerUpstreamTLSNegotiationError | DualStack_ListenerUpstreamTLSNegotiationError | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of custom responses per second on a listener | Count/s | ListenerHTTPFixedResponse | DualStack_ListenerHTTPFixedResponse | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of redirects per second on a listener | Count/s | ListenerHTTPRedirect | DualStack_ListenerHTTPRedirect | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of queries per second on a listener | Count/s | ListenerQPS | DualStack_ListenerQPS | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of nonsticky requests per second on a listener | Count/s | ListenerNonStickyRequest | DualStack_ListenerNonStickyRequest | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
The backend response time on a listener | ms | ListenerUpstreamResponseTime | DualStack_ListenerUpstreamResponseTime | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
The request latency on a listener | ms | ListenerRequestTime | DualStack_ListenerRequestTime | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
The outbound bandwidth of a listener | bit/s | ListenerOutBits | DualStack_ListenerOutBits | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
The inbound bandwidth of a listener | bit/s | ListenerInBits | DualStack_ListenerInBits | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 2XX status codes per second on a listener | Count/s | ListenerHTTPCode2XX | DualStack_ListenerHTTPCode2XX | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 3XX status codes per second on a listener | Count/s | ListenerHTTPCode3XX | DualStack_ListenerHTTPCode3XX | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 4XX status codes per second on a listener | Count/s | ListenerHTTPCode4XX | DualStack_ListenerHTTPCode4XX | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 5XX status codes per second on a listener | Count/s | ListenerHTTPCode5XX | DualStack_ListenerHTTPCode5XX | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 500 status codes per second on a listener | Count/s | ListenerHTTPCode500 | DualStack_ListenerHTTPCode500 | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 502 status codes per second on a listener | Count/s | ListenerHTTPCode502 | DualStack_ListenerHTTPCode502 | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 503 status codes per second on a listener | Count/s | ListenerHTTPCode503 | DualStack_ListenerHTTPCode503 | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of 504 status codes per second on a listener | Count/s | ListenerHTTPCode504 | DualStack_ListenerHTTPCode504 | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of backend 2XX status codes per second on a listener | Count/s | ListenerHTTPCodeUpstream2XX | - | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of backend 3XX status codes per second on a listener | Count/s | ListenerHTTPCodeUpstream3XX | - | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of backend 4XX status codes per second on a listener | Count/s | ListenerHTTPCodeUpstream4XX | - | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of backend 5XX status codes per second on a listener | Count/s | ListenerHTTPCodeUpstream5XX | - | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of healthy backend servers associated with a listener | Count | ListenerHealthyHostCount | - | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Number of unhealthy backend servers associated with a listener | Count | ListenerUnHealthyHostCount | - | userId, loadBalancerId, listenerProtocol, and listenerPort | Value |
Forwarding rule metrics
Metric | Unit | Metric name | Dimension | Statistics | |
Number of backend connection failures per second for a forwarding rule | Count/s | RuleUpstreamConnectionError | DualStack_RuleUpstreamConnectionError | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of backend TLS handshake failures per second for a forwarding rule | Count/s | RuleUpstreamTLSNegotiationError | DualStack_RuleUpstreamTLSNegotiationError | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of nonsticky requests per second for a forwarding rule | Count/s | RuleNonStickyRequest | DualStack_RuleNonStickyRequest | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of queries per second for a forwarding rule | Count/s | RuleQPS | DualStack_RuleQPS | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The backend response time for a forwarding rule | ms | RuleUpstreamResponseTime | DualStack_RuleUpstreamResponseTime | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The request latency for a forwarding rule | ms | RuleRequestTime | DualStack_RuleRequestTime | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of backend 2XX status codes per second for a forwarding rule | Count/s | RuleHTTPCodeUpstream2XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of backend 3XX status codes per second for a forwarding rule | Count/s | RuleHTTPCodeUpstream3XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of backend 4XX status codes per second for a forwarding rule | Count/s | RuleHTTPCodeUpstream4XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of backend 5XX status codes per second for a forwarding rule | Count/s | RuleHTTPCodeUpstream5XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of healthy backend servers for a forwarding rule | Count | RuleHealthyHostCount | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Number of unhealthy backend servers for a forwarding rule | Count | RuleUnHealthyHostCount | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 2XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream2XXRatio | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 3XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream3XXRatio | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 4XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream4XXRatio | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 5XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream5XXRatio | - | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
Server group metrics
Metric | Unit | Metric name | Dimension | Statistics | |
Number of backend connection failures per second for a server group | Count/s | ServerGroupUpstreamConnectionError | DualStack_ServerGroupUpstreamConnectionError | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of backend TLS handshake failures per second for a server group | Count/s | ServerGroupUpstreamTLSNegotiationError | DualStack_ServerGroupUpstreamTLSNegotiationError | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of nonsticky requests for a server group | Count/s | ServerGroupNonStickyRequest | DualStack_ServerGroupNonStickyRequest | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of queries per second for a server group | Count/s | ServerGroupQPS | DualStack_ServerGroupQPS | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
The backend response time of a server group | ms | ServerGroupUpstreamResponseTime | DualStack_ServerGroupUpstreamResponseTime | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
The request latency of a server group | ms | ServerGroupRequestTime | DualStack_ServerGroupRequestTime | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of backend 2XX status codes per second for a server group | Count/s | ServerGroupHTTPCodeUpstream2XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of backend 3XX status codes per second for a server group | Count/s | ServerGroupHTTPCodeUpstream3XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of backend 4XX status codes per second for a server group | Count/s | ServerGroupHTTPCodeUpstream4XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of backend 5XX status codes per second for a server group | Count/s | ServerGroupHTTPCodeUpstream5XX | - | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of healthy backend servers in a server group | Count | ServerGroupHealthyHostCount | - | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Number of unhealthy backend servers in a server group | Count | ServerGroupUnHealthyHostCount | - | userId, loadBalancerId, listenerProtocol, listenerPort, and serverGroupId | Value |
Virtual IP address (VIP) metrics (Zone metrics)
You can view the metrics on the VIP (Zone) tab only if your ALB instance is assigned a static IP address. To create alert rules for the metrics on the VIP (Zone) tab, log on to the CloudMonitor console. For more information, see Configure alert rules for ALB metrics.
Metric | Unit | Metric name | Dimension | Statistics |
Number of active connections of a VIP | Count | VipActiveConnection | userId and loadBalancerId vip | Value |
Number of inactive connections of a VIP | Count | VipInactiveConnection | userId, loadBalancerId, and vip | Value |
Maximum number of concurrent connections of the VIP | Count | VipMaxConnection | userId, loadBalancerId, and vip | Value |
Number of backend TLS handshake failures per second of a VIP | Count/s | VipUpstreamTLSNegotiationError | userId and loadBalancerId vip | Value |
Number of new connections per second of a VIP | Count/s | VipNewConnection | userId and loadBalancerId vip | Value |
Number of connections dropped by a VIP per second | Count/s | VipRejectedConnection | userId and loadBalancerId vip | Value |
Number of backend connection failures per second of a VIP | Count/s | VipUpstreamConnectionError | userId and loadBalancerId vip | Value |
Number of connections that fail TLS handshakes per second of a VIP | Count/s | VipClientTLSNegotiationError | userId and loadBalancerId vip | Value |
Number of custom responses per second of a VIP | Count/s) | VipHTTPFixedResponse | userId and loadBalancerId vip | Value |
Number of redirects per second of a VIP | Count/s | VipHTTPRedirect | userId and loadBalancerId vip | Value |
Number of queries per second of a VIP | Count/s | VipQPS | userId and loadBalancerId vip | Value |
Number of nonsticky requests per second of a VIP | Count/s | VipNonStickyRequest | userId and loadBalancerId vip | Value |
The backend response time of a VIP | ms | VipUpstreamResponseTime | userId and loadBalancerId vip | Value |
The request latency of a VIP | ms | VipRequestTime | userId and loadBalancerId vip | Value |
The outbound bandwidth of a VIP | bit/s | VipOutBits | userId and loadBalancerId vip | Value |
The inbound bandwidth of a VIP | bit/s | VipInBits | userId and loadBalancerId vip | Value |
Number of 2XX status codes per second of a VIP | Count/s | VipHTTPCode2XX | userId and loadBalancerId vip | Value |
Number of 3XX status codes per second of a VIP | Count/s | VipHTTPCode3XX | userId and loadBalancerId vip | Value |
Number of 4XX status codes per second of a VIP | Count/s | VipHTTPCode4XX | userId and loadBalancerId vip | Value |
Number of 5XX status codes per second of a VIP | Count/s | VipHTTPCode5XX | userId and loadBalancerId vip | Value |
Number of 500 status codes per second of a VIP | Count/s | VipHTTPCode500 | userId and loadBalancerId vip | Value |
Number of 502 status codes per second of a VIP | Count/s | VipHTTPCode502 | userId and loadBalancerId vip | Value |
Number of 503 status codes per second of a VIP | Count/s | VipHTTPCode503 | userId and loadBalancerId vip | Value |
Number of 504 status codes per second of a VIP | Count/s | VipHTTPCode504 | userId and loadBalancerId vip | Value |
Metrics that can be viewed by using the API or SDK
The metrics in the following table are not displayed in the ALB console. You can query the metrics only by using the API or SDK. Each metric indicates the overall metric of an ALB instance. IPv4 and IPv6 values are not displayed separately.
Table 5. Forwarding rule metrics
Metric (console) | Unit | MetricName | Dimensions | Statistics |
The percentage of backend 2XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream2XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 3XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream3XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 4XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream4XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
The percentage of backend 5XX status codes per second for a forwarding rule | % | RuleHTTPCodeUpstream5XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, and ruleId | Value |
References
For more information about how to query and analyze monitoring data, see View the monitoring information about an ALB instance.