Skip to content

Alibaba Cloud ALB

Collect monitoring data from Alibaba Cloud Application Load Balancer ALB

Configuration

Install Func

It is recommended to activate the Guance integration - extension - DataFlux Func (Automata)

If you need to deploy Func yourself, refer to Self-deploy Func

Install Script

Note: Please prepare the required Alibaba Cloud AK in advance (for simplicity, you can directly grant the global read-only permission ReadOnlyAccess)

  1. Log in to the Func console, click 【Script Market】, enter the Guance script market, and search for: integration_alibabacloud_alb

  2. Click 【Install】, then input the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.

  3. Click 【Deploy Startup Script】, the system will automatically create the Startup script set and configure the corresponding startup script.

  4. After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. Wait for a moment, then you can check the execution task records and corresponding logs.

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration, and you can also check the corresponding task records and logs for any exceptions.
  2. In Guance, check if asset information exists in 「Infrastructure / Custom」.
  3. In Guance, check if there is corresponding monitoring data in 「Metrics」.

Metrics

The metrics of Application Load Balancer ALB are under the aliyun_acs_alb Measurement. Below are the details of the metrics.

MetricName MetricDescribe Dimensions Unit
ConsumedLCUs LCU usage userId,loadBalancerId count
ListenerActiveConnection Listener active connections userId,loadBalancerId,listenerProtocol,listenerPort count
ListenerClientTLSNegotiationError Listener TLS handshake failed connections per second userId,loadBalancerId,listenerProtocol,listenerPort count
ListenerHTTPCode2XX Listener 2XX count per second userId,loadBalancerId,listenerProtocol,listenerPort count
ListenerHTTPCode3XX Listener 3XX count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCode4XX Listener 4XX count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCode500 Listener 500 count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCode502 Listener 502 count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCode503 Listener 503 count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCode504 Listener 504 count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCode5XX Listener 5XX count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCodeUpstream2XX Listener backend 2XX status code count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCodeUpstream3XX Listener backend 3XX status code count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCodeUpstream4XX Listener backend 4XX status code count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPCodeUpstream5XX Listener backend 5XX status code count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPFixedResponse Listener custom response count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHTTPRedirect Listener redirect count per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerHealthyHostCount Listener healthy server count userId,loadBalancerId,listenerProtocol,listenerPort count
ListenerInBits Listener inbound bandwidth userId,loadBalancerId,listenerProtocol,listenerPort bit/s
ListenerInactiveConnection Listener inactive connections userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerMaxConnection Listener maximum concurrent connections per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerNewConnection Listener new connections per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerNonStickyRequest Listener non-sticky requests per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerOutBits Listener outbound bandwidth userId,loadBalancerId,listenerProtocol,listenerPort bit/s
ListenerQPS Listener requests per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerRejectedConnection Listener dropped connections per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerRequestTime Listener request latency userId,loadBalancerId,listenerProtocol,listenerPort ms
ListenerUnHealthyHostCount Listener unhealthy server count userId,loadBalancerId,listenerProtocol,listenerPort count
ListenerUpstreamConnectionError Listener backend connection failures per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerUpstreamResponseTime Listener backend response time userId,loadBalancerId,listenerProtocol,listenerPort ms
ListenerUpstreamTLSNegotiationError Listener backend TLS handshake failures per second userId,loadBalancerId,listenerProtocol,listenerPort count/s
ListenerUnHealthyHostCount Listener unhealthy server count userId,loadBalancerId,listenerProtocol,listenerPort count

Object

The collected data structure of Alibaba Cloud Application Load Balancer ALB can be viewed in 「Infrastructure - Custom」

{
  "measurement": "aliyun_alb",
  "tags": {
    "LoadBalancerId"               : "s1xsasd2212313",
    "LoadBalancerName"             : "xxxx-test",
    "LoadBalancerStatus"           : "Running",
    "RegionId"                     : "cn-hangzhou",
    "LoadBalancerEdition"          : "Standard",
    "LoadBalancerBussinessStatus"  : "Normal",
    "DNSName"                      : "alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com",
    "AddressType"                  : "Internetxx",
    "Ipv6AddressType"              : "Internetxx",
    "VpcId"                        : "IDxxxxxxx",
    "AddressIpVersion"             : "IPv4",
    "PayType"                      : "PostPay"
  },
  "fields": {
    "CreateTime"                   : "2025-10-18T014:49:05Z"
  }
}

Note: The fields in tags and fields may change with subsequent updates.

Feedback

Is this page helpful? ×