All Products
Search
Document Center

Server Load Balancer:View ALB monitoring information

Last Updated:Dec 26, 2025

You can use CloudMonitor to view the status and metrics of Application Load Balancer (ALB) resources. This helps you quickly troubleshoot issues, such as request timeouts and traffic throttling, and understand the load and performance of your ALB instance. You can view monitoring information using the console, an Application Programming Interface (API), or a software development kit (SDK).

View monitoring information in the ALB console

  1. Log on to the ALB console.

  2. In the top navigation bar, select the region where the ALB instance is deployed.

  3. Use one of the following methods to view monitoring information.

    • View on the Instance List page

      1. On the Instances page, find the target instance, and in the Monitoring column, click monitor.

      2. In the Monitoring Information panel that appears, click the Instance, Listener, or VIP (Zone) tab to view the monitoring data.

    • View data on the instance details page

      1. On the Instances page, find the target instance and click its ID. On the Instance Details tab, click the Charts tab.

      2. On the Charts tab, click the Instance, Listener, or VIP (Zone) tab to view the monitoring data.

    Note
    • By default, upgraded ALB instances support VIP (zone) metrics. Before the upgrade, this feature was available only for ALB instances in static IP mode and was not supported for ALB instances in dynamic IP mode.

      To set alarm rules for the VIP (zone) metrics of an ALB instance, go to the CloudMonitor console. For more information, see Set alarm rules for ALB metrics.

    • If the instance is a dual-stack ALB instance, select All, IPv4, or IPv6 from the Metric Type drop-down list in the upper-left corner of the Monitoring Information panel to view the corresponding metrics.

    • On the Listener tab, you can select a listener from the Listener drop-down list to view its metrics. From the Dimension drop-down list, you can select Listener, Server Group, or Forwarding Rule. You can also select a specific server group or forwarding rule to view its metrics.

    • You can set Time to specify a time range for the monitoring charts and turn on Auto-refresh to refresh the monitoring data every minute.

View monitoring information using an API

This section describes how to use CloudMonitor APIs to view the metrics and monitoring data of an Application Load Balancer instance.

The following figure shows the process of viewing monitoring data using an API.monitoring

The process is as follows:

  1. Query the data namespace. Call the DescribeProjectMeta operation to query the namespace of ALB in CloudMonitor.

  2. Optional: Query existing metrics. Call the DescribeMetricMetaList operation to query the descriptions of time series metrics supported by CloudMonitor. You can also view the descriptions of the metrics in ALB monitoring metrics.

  3. View the monitoring data of a specific metric.

    • Call the DescribeMetricLast operation to query the latest monitoring data for a specified monitored object in ALB.

    • You can call the DescribeMetricList operation to query the time series monitoring data for a specified ALB monitored object within a specific time period.

DescribeProjectMeta

Call the DescribeProjectMeta operation to query the namespace of ALB in CloudMonitor. For more information, see DescribeProjectMeta.

  1. Log on to OpenAPI Explorer.

  2. Set the Labels parameter, which is used to filter product tags, to [{"name":"product","value":"alb"}]. Keep the default values for the other parameters, and then click Initiate Call.

    Sample request

    http(s)://[Endpoint]/?Action=DescribeProjectMeta
    &Labels=[{"name":"product","value":"alb"}]
    &<Common request parameters>
  3. In the response, the value of Namespace for the ALB data in CloudMonitor is acs_alb.

    Example Responses

    {
      "RequestId": "4B68EC24-DBC8-54FB-8A97-16D9E775503F",
      "PageSize": 30,
      "PageNumber": 1,
      "Total": 1,
      "Resources": {
        "Resource": [
          {
            "Description": "Application Load Balancer",
            "Labels": "[{\"name\":\"product\",\"value\":\"alb\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"groupFlag\",\"value\":\"true\"},{\"name\":\"cnName\",\"value\":\"Application Load Balancer\"},{\"name\":\"enName\",\"value\":\"Application Load Balancer\"}]",
            "Namespace": "acs_alb"
          }
        ]
      },
      "Code": 200,
      "Success": true
    }

DescribeMetricMetaList

Call the DescribeMetricMetaList operation to query the descriptions of time series metrics available in CloudMonitor. For more information, see DescribeMetricMetaList.

  1. Log on to OpenAPI Explorer.

  2. Set the Namespace parameter to acs_alb, keep the default values for the other parameters, and then click Initiate Call.

    Sample request

    http(s)://[Endpoint]/?Action=DescribeMetricMetaList
    &Namespace=acs_alb
    &<Common request parameters>
  3. View the time series metrics for ALB in the response.

    Response examples

    {
      "TotalCount": 106,
      "RequestId": "FB432987-C687-596C-ABEF-F7033D00DEA8",
      "Resources": {
        "Resource": [
          {
            "MetricName": "ListenerActiveConnection",
            "Periods": "60,300",
            "Description": "The number of active connections from clients to the ALB instance.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerClientTLSNegotiationError",
            "Periods": "60,300",
            "Description": "The number of connections per second from clients to the ALB instance that fail due to a TLS handshake error.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode2XX",
            "Periods": "60,300",
            "Description": "The number of 2xx HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode3XX",
            "Periods": "60,300",
            "Description": "The number of 3xx HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode4XX",
            "Periods": "60,300",
            "Description": "The number of 4xx HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode500",
            "Periods": "60,300",
            "Description": "The number of 500 HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode502",
            "Periods": "60,300",
            "Description": "The number of 502 HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode503",
            "Periods": "60,300",
            "Description": "The number of 503 HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode504",
            "Periods": "60,300",
            "Description": "The number of 504 HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCode5XX",
            "Periods": "60,300",
            "Description": "The number of 5xx HTTP status codes returned per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCodeUpstream2XX",
            "Periods": "60,300",
            "Description": "The number of 2xx HTTP status codes returned per second from backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCodeUpstream3XX",
            "Periods": "60,300",
            "Description": "The number of 3xx HTTP status codes returned per second from backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCodeUpstream4XX",
            "Periods": "60,300",
            "Description": "The number of 4xx HTTP status codes returned per second from backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPCodeUpstream5XX",
            "Periods": "60,300",
            "Description": "The number of 5xx HTTP status codes returned per second from backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPFixedResponse",
            "Periods": "60,300",
            "Description": "The number of custom responses per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHTTPRedirect",
            "Periods": "60,300",
            "Description": "The number of redirections per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerHealthyHostCount",
            "Periods": "60,300",
            "Description": "The number of healthy backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerInBits",
            "Periods": "60,300",
            "Description": "The number of bits per second sent to the ALB instance.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"bit/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "bit/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerNewConnection",
            "Periods": "60,300",
            "Description": "The number of new connections established per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerNonStickyRequest",
            "Periods": "60,300",
            "Description": "The number of requests per second that are routed to a new backend server because an existing sticky session cannot be used.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerOutBits",
            "Periods": "60,300",
            "Description": "The number of bits per second sent from the ALB instance.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"bit/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "bit/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerQPS",
            "Periods": "60,300",
            "Description": "The number of requests per second.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerRejectedConnection",
            "Periods": "60,300",
            "Description": "The number of connections per second that are dropped because the instance specifications are exceeded.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerRequestTime",
            "Periods": "60,300",
            "Description": "The request latency of the listener.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"null\"},{\"name\":\"alertUnit\",\"value\":\"ms\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "ms",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerUnHealthyHostCount",
            "Periods": "60,300",
            "Description": "The number of unhealthy backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerUpstreamConnectionError",
            "Periods": "60,300",
            "Description": "The number of unsuccessful connections established per second between the load balancer and the backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerUpstreamResponseTime",
            "Periods": "60,300",
            "Description": "The response time of backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"ms\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "ms",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "ListenerUpstreamTLSNegotiationError",
            "Periods": "60,300",
            "Description": "The number of unsuccessful TLS connections established per second between the load balancer and the backend servers.",
            "Dimensions": "userId,loadBalancerId,listenerProtocol,listenerPort",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"listener\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "LoadBalancerActiveConnection",
            "Periods": "60,300",
            "Description": "The number of active connections from clients to the ALB instance.",
            "Dimensions": "userId,loadBalancerId",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"loadBalancer\"}]",
            "Unit": "count",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          },
          {
            "MetricName": "LoadBalancerClientTLSNegotiationError",
            "Periods": "60,300",
            "Description": "The number of connections per second from clients to the ALB instance that fail due to a TLS handshake error.",
            "Dimensions": "userId,loadBalancerId",
            "Labels": "[{\"name\":\"minAlertPeriod\",\"value\":\"60\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"count/s\"},{\"name\":\"productCategory\",\"value\":\"alb\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"loadBalancer\"}]",
            "Unit": "count/s",
            "Statistics": "Value",
            "Namespace": "acs_alb"
          }
        ]
      },
      "Code": 200,
      "Success": true
    }

DescribeMetricLast

Call the DescribeMetricLast operation to query the latest monitoring data for a specified monitored object of ALB. This topic provides an example of using the ListenerHealthyHostCount metric, which indicates the number of healthy backend servers of a listener. For more information, see DescribeMetricLast.

  1. Log on to OpenAPI Explorer.

  2. In the request parameters, set the following parameters to query ListenerHealthyHostCount, and then click Initiate Call.

    Set the following parameters and keep the default values for the other parameters.

    • MetricName: The name of the metric. In this example, set this parameter to ListenerHealthyHostCount.

    • Dimensions: The dimensions that are used to query the monitoring data of a specified resource. In this example, set this parameter to [{"loadBalancerId":"alb-t93aj3yndojot5****"}].

    • Namespace: The namespace of the service. This parameter is used to differentiate services. In this example, set this parameter to acs_alb.

    Sample request

    http(s)://[Endpoint]/?Action=DescribeMetricLast
    &MetricName=ListenerHealthyHostCount
    &Namespace=acs_alb
    &Dimensions=[{"loadBalancerId":"alb-t93aj3yndojot5****"}]
    &<Common request parameters>
  3. View the latest monitoring data for ListenerHealthyHostCount in the response.

    View example response

    {
      "RequestId": "5CC32511-24DD-58B3-A1D3-D9715DC41F9D",
      "Period": "60",
      "Datapoints": "[{\"timestamp\":1663221840000,\"loadBalancerId\":\"alb-t93aj3yndojot5****\",\"listenerProtocol\":\"https\",\"listenerPort\":\"443\",\"userId\":\"1461700914926653\",\"Value\":1.0}]",
      "Code": "200",
      "Success": true
    }

DescribeMetricList

Call the DescribeMetricList operation to query the time series monitoring data of an ALB instance within a specified time period. This topic uses the number of healthy backend servers for a listener within a specified time period as an example. For more information, see DescribeMetricList.

  1. Log on to OpenAPI Explorer.

  2. In the request parameters, set the parameters to query the monitoring data of RuleHealthyHostCount within a specified time period, and then click Initiate Call.

    Set the following parameters and keep the default values for the other parameters.

    • MetricName: The name of the metric. In this example, set this parameter to RuleHealthyHostCount.

    • Namespace: The namespace of the service. This parameter is used to differentiate services. In this example, set this parameter to acs_alb.

    • Dimensions: The dimensions that are used to query the monitoring data of a specified resource. In this example, set this parameter to [{"loadBalancerId":"alb-2c9oquqqdcgbf8****"}].

    • StartTime: The start of the time range to query. The value of StartTime cannot be the same as or later than the value of EndTime. In this example, set this parameter to 2022-09-14 14:10:00.

      Supported formats:

      • UNIX timestamp: The number of milliseconds that have elapsed since 00:00:00 UTC on January 1, 1970.

      • Format: YYYY-MM-DDThh:mm:ssZ.

    • EndTime: The end of the time range to query. The supported formats are the same as those for StartTime. In this example, set this parameter to 2022-09-14 14:11:00.

    Sample request

    http(s)://[Endpoint]/?Action=DescribeMetricList
    &MetricName=RuleHealthyHostCount
    &Namespace=acs_alb
    &Dimensions=[{"loadBalancerId":"alb-2c9oquqqdcgbf8****"}]
    &StartTime=2022-09-14 14:10:00
    &EndTime=2022-09-14 14:11:00
    &<Common request parameters>
  3. View the monitoring data of RuleHealthyHostCount for the specified time period in the response.

    Sample response

    {
      "RequestId": "FECF5168-616A-584A-B149-A622348A01C3",
      "Period": "60",
      "Datapoints": "[{\"timestamp\":1663135860000,\"loadBalancerId\":\"alb-2c9oquqqdcgbf8****\",\"listenerProtocol\":\"https\",\"listenerPort\":\"443\",\"ruleId\":\"rule-default-lsn-icqehvs7afp600qcj8\",\"userId\":\"1461700914926653\",\"Value\":1.0}]",
      "Code": "200",
      "Success": true
    }

View monitoring information using an SDK

This section describes how to use an SDK to view the metrics and monitoring data of an ALB instance. This topic describes how to use an SDK to call the DescribeMetricList operation to query the number of active connections for an ALB instance.

  1. Log on to OpenAPI Explorer.

  2. In the request parameters, set the following parameters and keep the default values for the other parameters.

    • MetricName: The name of the metric. In this example, set this parameter to LoadBalancerActiveConnection.

    • Namespace: The data namespace for the product, which is used to distinguish between different products. In this topic, this parameter is set to acs_alb.

    • Dimensions: The dimensions that are used to query the monitoring data of a specified resource. In this example, set this parameter to [{"loadBalancerId":"alb-2c9oquqqdcgbf8****"}].

    • StartTime: The start of the time range to query. The value of StartTime cannot be the same as or later than the value of EndTime. In this example, set this parameter to 2022-09-14 14:10:00.

      Supported formats:

      • UNIX timestamp: The number of milliseconds that have elapsed since 00:00:00 UTC on January 1, 1970.

      • Format: YYYY-MM-DDThh:mm:ssZ.

    • EndTime: The end of the time range to query. The supported formats are the same as those for StartTime. In this example, set this parameter to 2022-09-14 14:11:00.

  3. On the SDK Sample > Python tab, click Run.

  4. On the operation call page, view the result in the panel at the bottom.

References

  • For more information about the metrics of ALB instances, see ALB metrics.

  • To set alert rules for ALB metrics, see Set alert rules for ALB metrics.

  • If you require second-level monitoring, you can enable the access log feature to view second-level monitoring information. For more information, see ALB access logs.