ALB monitoring and alerting
When you encounter network connection issues with your Application Load Balancer (ALB), such as request timeouts and throttling, or need to understand the load and performance of your ALB, you can use CloudMonitor to view monitoring data and configure alert rules. This topic describes how to view ALB monitoring information, create alert rules for monitoring metrics, and lists the monitoring metrics supported by ALB.
Common parameters for API operations
When you call CloudMonitor APIs, you must set the following parameters for ALB:
Namespace: The data namespace of the cloud service. Set this to
acs_alb.MetricName: The metric name of the cloud service. For metrics supported by ALB, see ALB monitoring and alerting.
Period: The statistical period of the metric. The default value is 60 seconds. You can also set this to any integer multiple of 60.
Dimensions: The dimension map for monitoring data. The value is a JSON string that specifies the resource associated with the metric, for example,
[{"loadBalancerId":"alb-t93aj3yndojot5****"}]. Different metrics support different dimensions. For details, see ALB monitoring and alerting.
View ALB monitoring information
Console
Go to the Instances page in the ALB console, and use either of the following methods to view ALB monitoring information. Monitoring information is displayed in tabs for the ALB Instance, Listener, and VIP (Zone) dimensions. Dual-stack ALB instances support viewing metrics separately for IPv4 and IPv6.
View from the Instances page directly: Find the target instance, and in the Monitoring column, click
to view monitoring data in the Monitoring Information panel.View from the Charts tab: Find the target instance, click the instance ID to go to the Instance Details page, and then click the Charts tab.
ALB upgraded instances support viewing VIP (Zone) metrics by default. For ALB instances that have not been upgraded, only those in fixed IP mode support viewing VIP (Zone) metrics. Dynamic IP mode instances do not support this.
API
The following APIs can be debugged online in the OpenAPI Explorer. To integrate them into your code, go to the API page, select the SDK Sample Code tab, choose your target language (such as Python), and the page will automatically generate the corresponding code based on the parameters you fill in.
Call DescribeMetricLast to query the latest monitoring data for a specified monitoring object.
Call DescribeMetricList to query time-series metric monitoring data for a specified time period.
Create ALB metric alert rules
Console
Go to the Alert Rules page in the CloudMonitor console, and click Create Alert Rule.
In the Create Alert Rule panel, configure the following alert rule parameters, and then click Confirm.
The following lists only the configuration items directly relevant to this operation. For other parameters, see Create an alert rule.
Product: The cloud service that CloudMonitor can manage. Select Application Load Balancer (ALB).
Resource Range: The scope of resources to which the alert rule applies. Valid values:
All Resources: The rule applies to all resources of the specified cloud service, and takes effect for newly added resources.
Application Groups: The rule applies to all resources in a specified application group of the specified cloud service, and takes effect for newly added resources.
Instances: The rule applies to a specified resource of the specified cloud service.
Rule Description: The body of the alert rule. An alert is triggered when monitoring data meets the alert condition. Configure as follows:
Click Add Rule and select a metric type.
In the Configure Rule Description panel, configure Rule Name, Metric Type, Metric, Threshold and Alert Level, and then click OK.
Alert Contact Group: The contact group that receives the alert. For details, see Create an alert contact or an alert contact group.
More operations
On the Alert Rules page, you can perform the following operations as needed.
Modify an alert rule: Click Actions in the row of the target alert rule, and then click Modify. In the Modify Alert Rule panel, modify the parameters.
Enable, disable, or delete an alert rule:
Single operation: In the row of the target alert rule, click the Actions column's
icon, and then click Enable, Disable, or Delete.Batch operation: Select one or more alert rules by checking the checkboxes, and then click Enable, Disable, or Delete at the bottom-left of the page.
In the confirmation dialog box, click OK.
View alert history: In the row of the target alert rule, click Actions and then click Alert History to view More, Alert Contact Group, Alert History, and Alert entity.
API
The following APIs can be debugged online in the OpenAPI Explorer. To integrate them into your code, go to the API page, select the SDK Sample Code tab, choose your target language (such as Python), and the page will automatically generate the corresponding code based on the parameters you fill in.
Call PutContact to create or modify an alert contact.
Call PutContactGroup to create or modify an alert contact group.
Call PutResourceMetricRule to set a threshold alert rule.
Call DescribeMetricRuleList to query the alert rule list.
Alert rules are critical for proper alert triggering. We recommend that you verify the configuration after creation.
ALB monitoring metrics
This section lists the monitoring metrics supported by ALB. To programmatically obtain the metrics currently supported by ALB, call DescribeMetricMetaList with the Namespace parameter set to acs_alb.
Metrics available via Console and API
Whether the MetricName includes the DualStack_ prefix determines how IPv4 and IPv6 metrics are counted.
MetricName | Counting method | IPv4 instance | Dual-stack instance |
Without | Does not distinguish between IPv4 and IPv6 metrics; provides the total metric for the instance | The IPv4 metrics of the instance | The sum of IPv4 and IPv6 metrics of the instance |
With | Reports IPv4 and IPv6 metrics separately | IPv4 metric is the instance metric; IPv6 metric shows | The actual IPv4 and IPv6 metric values of the instance respectively |
Instance metrics
Instance connection metrics
Metric | Description | MetricName | Dimensions | Statistics |
Active instance connections | The number of TCP connections on the ALB instance in the ESTABLISHED state (Unit: Count). | LoadBalancerActiveConnection | userId, loadBalancerId | Value |
DualStack_LoadBalancerActiveConnection | ipv4, ipv6 | |||
Inactive instance connections | The number of TCP connections on the ALB instance that are not in the ESTABLISHED state, plus all UDP connections (Unit: Count). | LoadBalancerInactiveConnection | userId, loadBalancerId | Value |
DualStack_LoadBalancerInactiveConnection | ipv4, ipv6 | |||
Maximum concurrent connections | The total number of TCP and UDP connections that are processed by the ALB instance (Unit: Count). | LoadBalancerMaxConnection | userId, loadBalancerId | Value |
DualStack_LoadBalancerMaxConnection | ipv4, ipv6 | |||
Upstream TLS handshake failures per second | The number of failed TLS handshakes per second between the ALB instance and backend servers (Unit: Count/s). | LoadBalancerUpstreamTLSNegotiationError | userId, loadBalancerId | Value |
DualStack_LoadBalancerUpstreamTLSNegotiationError | ipv4, ipv6 | |||
New connections per second | The number of new connections established per second between clients and the ALB instance (Unit: Count/s). | LoadBalancerNewConnection | userId, loadBalancerId | Value |
DualStack_LoadBalancerNewConnection | ipv4, ipv6 | |||
Rejected connections per second | The number of connection requests rejected by the ALB instance per second (Unit: Count/s). | LoadBalancerRejectedConnection | userId, loadBalancerId | Value |
DualStack_LoadBalancerRejectedConnection | ipv4, ipv6 | |||
Backend connection failures per second | The number of failed connection attempts per second from the ALB instance to backend servers (Unit: Count/s). | LoadBalancerUpstreamConnectionError | userId, loadBalancerId | Value |
DualStack_LoadBalancerUpstreamConnectionError | ipv4, ipv6 | |||
Client TLS handshake failures per second | The number of failed TLS connections per second between an ALB instance and clients. Unit: Count/s | LoadBalancerClientTLSNegotiationError | userId, loadBalancerId | Value |
DualStack_LoadBalancerClientTLSNegotiationError | ipv4, ipv6 |
Instance request metrics
Metric | Description | Metric name | Dimensions | Statistics |
ALB custom responses per second | The number of custom responses an ALB instance returns to clients per second. Unit: Count/s. | LoadBalancerHTTPFixedResponse | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPFixedResponse | ipv4, ipv6 | |||
ALB redirects per second | The number of successful redirects an ALB instance performs per second. Unit: Count/s. | LoadBalancerHTTPRedirect | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPRedirect | ipv4, ipv6 | |||
ALB requests per second | The number of requests an ALB instance processes per second. Unit: Count/s. | LoadBalancerQPS | userId, loadBalancerId | Value |
DualStack_LoadBalancerQPS | ipv4, ipv6 | |||
ALB non-sticky requests per second | The number of new connections per second an ALB instance establishes for non-sticky requests. Unit: Count/s. | LoadBalancerNonStickyRequest | userId, loadBalancerId | Value |
DualStack_LoadBalancerNonStickyRequest | ipv4, ipv6 | |||
ALB backend server response time | The elapsed time from when an ALB instance connects to a backend server until it closes the connection after receiving all data. Unit: ms. | LoadBalancerUpstreamResponseTime | userId, loadBalancerId | Value |
DualStack_LoadBalancerUpstreamResponseTime | ipv4, ipv6 | |||
ALB request latency | The time between an ALB instance receiving the first request packet and returning a response. Unit: ms. | LoadBalancerRequestTime | userId, loadBalancerId | Value |
DualStack_LoadBalancerRequestTime | ipv4, ipv6 |
Bandwidth metrics
Metric | Description | Metric name | Dimensions | Statistics |
ALB outbound bandwidth | Outbound bandwidth of an ALB instance. Unit: bit/s. | LoadBalancerOutBits | userId, loadBalancerId | Value |
DualStack_LoadBalancerOutBits | ipv4, ipv6 | |||
ALB inbound bandwidth | Inbound bandwidth of an ALB instance. Unit: bit/s. | LoadBalancerInBits | userId, loadBalancerId | Value |
DualStack_LoadBalancerInBits | ipv4, ipv6 |
Instance status code metrics
Metric | Description | MetricName | Dimensions | Statistics |
Number of 2XX status codes per second | The number of 2XX status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode2XX | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode2XX | Value | |||
Number of 3XX status codes per second | The number of 3XX status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode3XX | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode3XX | Value | |||
Number of 4XX status codes per second | The number of 4XX status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode4XX | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode4XX | Value | |||
Number of 500 status codes per second | The number of 500 status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode500 | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode500 | Value | |||
Number of 502 status codes per second | The number of 502 status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode502 | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode502 | Value | |||
Number of 503 status codes per second | The number of 503 status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode503 | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode503 | Value | |||
Number of 504 status codes per second | The number of 504 status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode504 | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode504 | Value | |||
Number of 5XX status codes per second | The number of 5XX status codes the ALB instance returns per second. Unit: Count/s. | LoadBalancerHTTPCode5XX | userId, loadBalancerId | Value |
DualStack_LoadBalancerHTTPCode5XX | Value |
Backend status code metrics
Metric | Description | MetricName | Dimensions | Statistics |
Backend server 2XX status codes per second | The number of 2XX status codes returned by backend servers to the ALB instance per second. | LoadBalancerHTTPCodeUpstream2XX | userId, loadBalancerId | Value |
Backend server 3XX status codes per second | The number of 3XX status codes returned by backend servers to the ALB instance per second. | LoadBalancerHTTPCodeUpstream3XX | userId, loadBalancerId | Value |
Backend server 4XX status codes per second | The number of 4XX status codes returned by backend servers to the ALB instance per second. | LoadBalancerHTTPCodeUpstream4XX | userId, loadBalancerId | Value |
Backend server 5XX status codes per second | The number of 5XX status codes returned by backend servers to the ALB instance per second. | LoadBalancerHTTPCodeUpstream5XX | userId, loadBalancerId | Value |
Health check metrics
Metric | Description | MetricName | Dimensions | Statistics |
Healthy backend server count | The number of healthy backend servers in an ALB instance. Unit: Count. | LoadBalancerHealthyHostCount | userId, loadBalancerId | Value |
Unhealthy backend server count | The number of unhealthy backend servers in an ALB instance. Unit: Count. | LoadBalancerUnHealthyHostCount | userId, loadBalancerId | Value |
Instance - LCU usage metrics
Metric | Description | MetricName | Dimensions | Statistics |
LCU usage | The number of LCUs consumed by the ALB instance. If an LCU reservation is active and LCU usage is lower than the reserved LCUs, ConsumedLCUs is 0. If usage exceeds the reserved LCUs, ConsumedLCUs is greater than 0. Unit: Count. | ConsumedLCUs | userId, loadBalancerId | Value |
peak LCUs | The maximum number of LCUs consumed by the ALB instance at a specific point in time. This metric is available only when you use an LCU reservation. Unit: Count. | PeakLCUs | userId, loadBalancerId | Value |
reserved LCUs | The number of LCUs reserved for the ALB instance. Unit: Count. | ReservedLCUs | userId, loadBalancerId | Value |
LCU usage metrics are displayed only after you apply to use resource reservation.
Listener metrics
Listener connection metrics
Metric | Description | MetricName | Dimensions | Statistics |
listener active connections | The number of established TCP connections on the listener. Unit: Count. | ListenerActiveConnection | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerActiveConnection | ipv4, ipv6 | |||
listener inactive connections | The number of non-established TCP connections and all UDP connections on the listener. Unit: Count. | ListenerInactiveConnection | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerInactiveConnection | ipv4, ipv6 | |||
listener maximum concurrent connections | The number of TCP and UDP connections processed by the listener. Unit: Count. | ListenerMaxConnection | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerMaxConnection | ipv4, ipv6 | |||
listener TLS handshake failures per second | The number of TLS handshakes per second that the listener fails to establish with clients. Unit: Count/s. | ListenerClientTLSNegotiationError | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerClientTLSNegotiationError | ipv4, ipv6 | |||
listener new connections per second | The number of new connections established per second between clients and the listener. Unit: Count/s. | ListenerNewConnection | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerNewConnection | ipv4, ipv6 | |||
listener dropped connections per second | The number of connection requests that the listener actively drops per second. Unit: Count/s. | ListenerRejectedConnection | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerRejectedConnection | ipv4, ipv6 | |||
listener backend connection failures per second | The number of connections per second that the listener fails to establish with backend servers. Unit: Count/s. | ListenerUpstreamConnectionError | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerUpstreamConnectionError | ipv4, ipv6 | |||
listener backend TLS handshake failures per second | The number of TLS handshakes per second that the listener fails to establish with backend servers. Unit: Count/s. | ListenerUpstreamTLSNegotiationError | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerUpstreamTLSNegotiationError | ipv4, ipv6 |
Request metrics (listener dimension)
Metric | Description | MetricName | Dimensions | Statistics |
Listener custom responses per second | The number of custom responses the listener returns to clients per second. Unit: Count/s. | ListenerHTTPFixedResponse | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPFixedResponse | ipv4, ipv6 | |||
Listener redirects per second | The number of successful redirections the listener performs per second. Unit: Count/s. | ListenerHTTPRedirect | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPRedirect | ipv4, ipv6 | |||
Listener requests per second | The total number of requests the listener processes per second. Unit: Count/s. | ListenerQPS | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerQPS | ipv4, ipv6 | |||
Listener non-sticky requests per second | The number of new connections the listener establishes per second for requests that do not use sticky sessions. Unit: Count/s. | ListenerNonStickyRequest | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerNonStickyRequest | ipv4, ipv6 | |||
Listener backend server response time | The time from when the listener initiates a connection to a backend server until the connection is closed after receiving all data. Unit: ms. | ListenerUpstreamResponseTime | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerUpstreamResponseTime | ipv4, ipv6 | |||
Listener request latency | The time from when the listener receives the first request message until it returns a response. Unit: ms. | ListenerRequestTime | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerRequestTime | ipv4, ipv6 |
Listener bandwidth metrics
Metric | Description | MetricName | Dimensions | Statistics |
Listener outbound bandwidth | The outbound HTTP data rate of the listener. Unit: bit/s. | ListenerOutBits | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerOutBits | ipv4, ipv6 | |||
Listener inbound bandwidth | The inbound HTTP data rate of the listener. Unit: bit/s. | ListenerInBits | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerInBits | ipv4, ipv6 |
Listener status code metrics
Metric | Description | MetricName | Dimensions | Statistics |
Listener 2XX count per second | The number of 2XX status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode2XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode2XX | ipv4, ipv6 | |||
Listener 3XX count per second | The number of 3XX status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode3XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode3XX | ipv4, ipv6 | |||
Listener 4XX count per second | The number of 4XX status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode4XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode4XX | ipv4, ipv6 | |||
Listener 5XX count per second | The number of 5XX status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode5XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode5XX | ipv4, ipv6 | |||
Listener 500 count per second | The number of 500 status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode500 | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode500 | ipv4, ipv6 | |||
Listener 502 count per second | The number of 502 status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode502 | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode502 | ipv4, ipv6 | |||
Listener 503 count per second | The number of 503 status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode503
| userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode503 | ipv4, ipv6 | |||
Listener 504 count per second | The number of 504 status codes the listener returns per second. Unit: Count/s. | ListenerHTTPCode504 | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
DualStack_ListenerHTTPCode504 | ipv4, ipv6 |
Backend status code metrics: Listener
Metric | Description | MetricName | Dimensions | Statistics |
Number of 2XX backend status codes per second | The number of 2XX status codes returned by a listener's backend servers per second. Unit: Count/s | ListenerHTTPCodeUpstream2XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
Number of 3XX backend status codes per second | The number of 3XX status codes returned by a listener's backend servers per second. Unit: Count/s | ListenerHTTPCodeUpstream3XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
Number of 4XX backend status codes per second | The number of 4XX status codes returned by a listener's backend servers per second. Unit: Count/s | ListenerHTTPCodeUpstream4XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
Number of 5XX backend status codes per second | The number of 5XX status codes returned by a listener's backend servers per second. Unit: Count/s | ListenerHTTPCodeUpstream5XX | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
Listener health check metrics
Metric | Description | MetricName | Dimensions | Statistics |
Number of healthy backend servers | The number of healthy backend servers for this listener. Unit: Count. | ListenerHealthyHostCount | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
Number of unhealthy backend servers | The number of unhealthy backend servers for this listener. Unit: Count. | ListenerUnHealthyHostCount | userId, loadBalancerId, listenerProtocol, listenerPort | Value |
Forwarding rule: Connection metrics
Metric | Description | MetricName | Dimensions | Statistics |
Failed backend connections per second | The number of failed connections to backend servers per second. Unit: Count/s. | RuleUpstreamConnectionError | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
DualStack_RuleUpstreamConnectionError | ipv4, ipv6 | |||
Failed backend TLS handshakes per second | The number of failed TLS handshakes with backend servers per second. Unit: Count/s. | RuleUpstreamTLSNegotiationError | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
DualStack_RuleUpstreamTLSNegotiationError | ipv4, ipv6 |
Forwarding rule metrics
Metric | Description | MetricName | Dimensions | Statistics |
Forwarding Rule Non-sticky Requests Per Second | The number of new connections per second that the forwarding rule establishes without a sticky session. Unit: count/second. | RuleNonStickyRequest | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
DualStack_RuleNonStickyRequest | ipv4, ipv6 | |||
Forwarding Rule Requests Per Second | The total number of requests the forwarding rule processes per second. Unit: count/second. | RuleQPS | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
DualStack_RuleQPS | ipv4, ipv6 | |||
Forwarding Rule Backend Server Response Time | The time between the forwarding rule starting to connect to a backend server and closing the connection after receiving all data. Unit: ms. | RuleUpstreamResponseTime | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
DualStack_RuleUpstreamResponseTime | ipv4, ipv6 | |||
Forwarding Rule Request Latency | The time interval between the forwarding rule receiving the first request message and returning a response. Unit: ms. | RuleRequestTime | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
DualStack_RuleRequestTime | ipv4, ipv6 |
Forwarding rule: Backend status code metrics
Metric | Description | MetricName | Dimensions | Statistics |
Backend 2XX status codes per second | The rate at which backend servers return 2XX status codes for the forwarding rule. Unit: Count/s. | RuleHTTPCodeUpstream2XX | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Backend 3XX status codes per second | The rate at which backend servers return 3XX status codes for the forwarding rule. Unit: Count/s. | RuleHTTPCodeUpstream3XX | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Backend 4XX status codes per second | The rate at which backend servers return 4XX status codes for the forwarding rule. Unit: Count/s. | RuleHTTPCodeUpstream4XX | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Backend 5XX status codes per second | The rate at which backend servers return 5XX status codes for the forwarding rule. Unit: Count/s. | RuleHTTPCodeUpstream5XX | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Forwarding rule health check metrics
Metric | Description | MetricName | Dimensions | Statistics |
Healthy Backend Server Count | Number of healthy backend servers per forwarding rule. Unit: Count | RuleHealthyHostCount | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Unhealthy Backend Server Count | Number of unhealthy backend servers per forwarding rule. Unit: Count | RuleUnHealthyHostCount | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Connection metrics for server groups
Metric | Description | MetricName | Dimensions | Statistics |
Connection failures per second for a backend server group | The number of failed connections per second to backend servers. Unit: Count/s. | ServerGroupUpstreamConnectionError | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
DualStack_ServerGroupUpstreamConnectionError | ipv4, ipv6 | |||
TLS handshake failures per second for a backend server group | The number of failed TLS handshakes per second with backend servers. Unit: Count/s. | ServerGroupUpstreamTLSNegotiationError | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
DualStack_ServerGroupUpstreamTLSNegotiationError | ipv4, ipv6 |
Server group request metrics
Metric | Description | Metric name | Dimensions | Statistics |
Server group non-sticky requests | The number of new connection requests that the server group establishes per second without using sticky sessions. Unit: Count/s. | ServerGroupNonStickyRequest | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
DualStack_ServerGroupNonStickyRequest | ipv4, ipv6 | |||
Server group requests per second | The total number of requests that the server group processes per second. Unit: Count/s. | ServerGroupQPS | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
DualStack_ServerGroupQPS | ipv4, ipv6 | |||
Server group backend response time | The time from when the server group connects to a backend server until the connection closes after all data is received. Unit: ms. | ServerGroupUpstreamResponseTime | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
DualStack_ServerGroupUpstreamResponseTime | ipv4, ipv6 | |||
Server group request latency | The time from when the server group receives the first request message until it returns a response. Unit: ms. | ServerGroupRequestTime | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
DualStack_ServerGroupRequestTime | ipv4, ipv6 |
Server group backend status code metrics
Metric | Description | MetricName | Dimensions | Statistics |
Backend 2XX status codes per second | The number of 2XX status codes returned by backend servers in the server group. Unit: Count/s | ServerGroupHTTPCodeUpstream2XX | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
Backend 3XX status codes per second | The number of 3XX status codes returned by backend servers in the server group. Unit: Count/s | ServerGroupHTTPCodeUpstream3XX | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
Backend 4XX status codes per second | The number of 4XX status codes returned by backend servers in the server group. Unit: Count/s | ServerGroupHTTPCodeUpstream4XX | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
Backend 5XX status codes per second | The number of 5XX status codes returned by backend servers in the server group. Unit: Count/s | ServerGroupHTTPCodeUpstream5XX | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
Health check metrics: Server group
Metric | Description | MetricName | Dimensions | Statistics |
Healthy server count | Number of healthy backend servers in the server group. Unit: Count. | ServerGroupHealthyHostCount | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
Unhealthy server count | Number of unhealthy backend servers in the server group. Unit: Count. | ServerGroupUnHealthyHostCount | userId, loadBalancerId, listenerProtocol, listenerPort, serverGroupId | Value |
VIP (availability zone) metrics
ALB upgraded instances support viewing VIP (Zone) metrics by default. For ALB instances that have not been upgraded, only those in fixed IP mode support viewing VIP (Zone) metrics. Dynamic IP mode instances do not support this.
VIP (availability zone) - connection metrics
Metric | Description | MetricName | Dimensions | Statistics |
VIP active connections | The number of TCP connections in the | VipActiveConnection | userId, loadBalancerId, vip | Value |
VIP inactive connections | The number of TCP connections not in the | VipInactiveConnection | userId, loadBalancerId, vip | Value |
VIP maximum concurrent connections | The maximum number of concurrent connections to a specific VIP (availability zone) of an ALB instance. Unit: Count. | VipMaxConnection | userId, loadBalancerId, vip | Value |
VIP backend TLS handshake failures per second | The number of failed TLS handshakes per second between a specific VIP (availability zone) of an ALB instance and backend servers. Unit: Count/s. | VipUpstreamTLSNegotiationError | userId, loadBalancerId, vip | Value |
VIP new connections per second | The rate at which new connections are established between clients and a specific VIP (availability zone) of an ALB instance. Unit: Count/s. | VipNewConnection | userId, loadBalancerId, vip | Value |
VIP dropped connections per second | The rate at which a specific VIP (availability zone) of an ALB instance actively drops connection requests. Unit: Count/s. | VipRejectedConnection | userId, loadBalancerId, vip | Value |
VIP backend connection failures per second | The number of failed connection attempts per second from a specific VIP (availability zone) of an ALB instance to backend servers. Unit: Count/s. | VipUpstreamConnectionError | userId, loadBalancerId, vip | Value |
VIP client TLS handshake failures per second | The number of failed TLS handshakes per second between clients and a specific VIP (availability zone) of an ALB instance. Unit: Count/s. | VipClientTLSNegotiationError | userId, loadBalancerId, vip | Value |
VIP (availability zone) - request metrics
Metric | Description | MetricName | Dimensions | Statistics |
VIP custom responses per second | The rate at which a specific VIP (availability zone) of an ALB instance returns custom responses to clients. Unit: Count/s. | VipHTTPFixedResponse | userId, loadBalancerId, vip | Value |
VIP redirects per second | The rate at which a specific VIP (availability zone) of an ALB instance performs successful redirection operations. Unit: Count/s. | VipHTTPRedirect | userId, loadBalancerId, vip | Value |
VIP requests per second | The rate at which a specific VIP (availability zone) of an ALB instance processes requests. Unit: Count/s. | VipQPS | userId, loadBalancerId, vip | Value |
VIP non-sticky requests per second | The rate at which new connections are established without using sticky sessions for a specific VIP (availability zone) of an ALB instance. Unit: Count/s. | VipNonStickyRequest | userId, loadBalancerId, vip | Value |
VIP backend response time | The time elapsed from when a specific VIP (availability zone) of an ALB instance establishes a connection with a backend server until the connection is closed after all data has been received. Unit: ms. | VipUpstreamResponseTime | userId, loadBalancerId, vip | Value |
VIP request latency | The time from when a specific VIP (availability zone) of an ALB instance receives the first request packet until it returns a response. Unit: ms. | VipRequestTime | userId, loadBalancerId, vip | Value |
VIP (availability zone) - bandwidth metrics
Metric | Description | MetricName | Dimensions | Statistics |
VIP outbound bandwidth | The rate of outbound HTTP data sent from a specific VIP (availability zone) of an ALB instance. Unit: bit/s. | VipOutBits | userId, loadBalancerId, vip | Value |
VIP inbound bandwidth | The rate of inbound HTTP data received by a specific VIP (availability zone) of an ALB instance. Unit: bit/s. | VipInBits | userId, loadBalancerId, vip | Value |
VIP (availability zone) - status code metrics
Metric | Description | MetricName | Dimensions | Statistics |
VIP HTTP 2xx status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 2xx status codes. Unit: Count/s. | VipHTTPCode2XX | userId, loadBalancerId, vip | Value |
VIP HTTP 3xx status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 3xx status codes. Unit: Count/s. | VipHTTPCode3XX | userId, loadBalancerId, vip | Value |
VIP HTTP 4xx status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 4xx status codes. Unit: Count/s. | VipHTTPCode4XX | userId, loadBalancerId, vip | Value |
VIP HTTP 5xx status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 5xx status codes. Unit: Count/s. | VipHTTPCode5XX | userId, loadBalancerId, vip | Value |
VIP HTTP 500 status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 500 status codes. Unit: Count/s. | VipHTTPCode500 | userId, loadBalancerId, vip | Value |
VIP HTTP 502 status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 502 status codes. Unit: Count/s. | VipHTTPCode502 | userId, loadBalancerId, vip | Value |
VIP HTTP 503 status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 503 status codes. Unit: Count/s. | VipHTTPCode503 | userId, loadBalancerId, vip | Value |
VIP HTTP 504 status codes per second | The rate at which a specific VIP (availability zone) of an ALB instance returns 504 status codes. Unit: Count/s. | VipHTTPCode504 | userId, loadBalancerId, vip | Value |
Metrics available only via API or SDK
The metrics in the following table are not displayed in the ALB console. You can query these metrics only via an API or SDK. Each metric represents the total for an ALB instance and does not provide separate data for IPv4 and IPv6.
Forwarding rule metrics
Metric | Description | MetricName | Dimensions | Statistics |
RuleHTTPCodeUpstream2XXRatio | The per-second percentage of 2XX status codes returned by backend servers for a forwarding rule. Unit: %. | RuleHTTPCodeUpstream2XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
RuleHTTPCodeUpstream3XXRatio | The per-second percentage of 3XX status codes returned by backend servers for a forwarding rule. Unit: %. | RuleHTTPCodeUpstream3XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
RuleHTTPCodeUpstream4XXRatio | The per-second percentage of 4XX status codes returned by backend servers for a forwarding rule. Unit: %. | RuleHTTPCodeUpstream4XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
RuleHTTPCodeUpstream5XXRatio | The per-second percentage of 5XX status codes returned by backend servers for a forwarding rule. Unit: %. | RuleHTTPCodeUpstream5XXRatio | userId, loadBalancerId, listenerProtocol, listenerPort, ruleId | Value |
Billing
For billing details, see CloudMonitor billing overview.
Related documents
For second-level monitoring, enable ALB access logs and then view the second-level monitoring data.