Skip to content

Alibaba Cloud SLB

Alibaba Cloud SLB Metrics display, including backend ECS instance status, port connection count, QPS, network traffic, status codes, etc.

Configuration

Install Func

It is recommended to enable Guance integration - extension - hosted Func.

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

Enable Script

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

Hosted Version Enable Script

  1. Log in to the Guance console.
  2. Click on the 【Integration】 menu and select 【Cloud Account Management】.
  3. Click 【Add Cloud Account】, choose 【Alibaba Cloud】, fill in the required information on the interface; if you have already configured cloud account information, skip this step.
  4. Click 【Test】, after a successful test click 【Save】; if the test fails, check whether the related configuration information is correct and retest.
  5. In the 【Cloud Account Management】 list, you can see the added cloud account, click the corresponding cloud account to enter the details page.
  6. Click the 【Integration】 button on the cloud account detail page, under the Not Installed list, find Alibaba Cloud SLB, click the 【Install】 button, and install it via the installation interface.

Manual Enable Script

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

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

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

  4. After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】, which will immediately execute once without waiting for the scheduled time. After a short wait, you can view the execution task records and corresponding logs.

We default to collecting some configurations, for more details see the metrics section.

Configure Custom Cloud Object Metrics

We default to collecting some configurations, for more details see the metrics section.

Metrics

After configuring Alibaba Cloud - Cloud Monitoring, the default metric set is as follows, and more metrics can be collected through configuration. Alibaba Cloud Cloud Monitoring Metric Details

Metric Description Dimensions Statistics Unit
ActiveConnection Number of active TCP connections per second userId,instanceId,port,protocol Average,Minimum,Maximum Count
DropConnection Number of lost connections per second for listener userId,instanceId,port,protocol Average,Minimum,Maximum Count/s
DropPacketRX Number of lost inbound packets per second for listener userId,instanceId,port,protocol Average,Minimum,Maximum Count/s
DropPacketTX Number of lost outbound packets per second for listener userId,instanceId,port,protocol Average,Minimum,Maximum Count/s
DropTrafficRX Number of lost inbound bits per second for listener userId,instanceId,port,protocol Average,Minimum,Maximum bits/s
DropTrafficTX Number of lost outbound bits per second for listener userId,instanceId,port,protocol Average,Minimum,Maximum bits/s
GroupActiveConnection (Group dimension) Number of active TCP connections per second groupId Average,Maximum,Minimum,Sum Count
GroupNewConnection (Group dimension) Number of new TCP connections groupId Average,Maximum,Minimum,Sum Count
GroupTotalTrafficRX TotalTrafficRX groupId Value bits/s
GroupTotalTrafficTX TotalTrafficTX groupId Value bits/s
GroupTrafficRX (Group dimension) Inbound bandwidth groupId Average,Minimum,Maximum,Sum bits/s
GroupTrafficTX (Group dimension) Outbound bandwidth groupId Average,Minimum,Maximum,Sum bits/s
GroupUnhealthyServerCount (Group dimension) Number of unhealthy backend ECS instances groupId Average,Maximum,Minimum,Sum Count
HealthyServerCountWithRule Number of healthy backend ECS instances with layer-seven forwarding rules userId,instanceId,port,vip,domain,url Average,Maximum,Minimum Count
HeathyServerCount Number of healthy backend ECS instances after health checks userId,instanceId,port,vip Average,Minimum,Maximum Count
InactiveConnection Number of inactive TCP connections userId,instanceId,port,protocol Average,Minimum,Maximum Count
InstanceActiveConnection Number of active connections per second for instance userId,instanceId Average,Minimum,Maximum Count/s
InstanceDropConnection Number of lost connections per second for instance userId,instanceId Average,Minimum,Maximum,Sum Count/s
InstanceDropPacketRX Number of lost inbound packets per second for instance userId,instanceId Average,Minimum,Maximum Count/s
InstanceDropPacketTX Number of lost outbound packets per second for instance userId,instanceId Average,Minimum,Maximum Count/s
InstanceDropTrafficRX Number of lost inbound bits per second for instance userId,instanceId Average,Minimum,Maximum bits/s
InstanceDropTrafficTX Number of lost outbound bits per second for instance userId,instanceId Average,Minimum,Maximum bits/s
InstanceInactiveConnection Number of inactive connections per second for instance userId,instanceId Average,Minimum,Maximum Count/s
InstanceMaxConnection Maximum number of concurrent connections per second for instance userId,instanceId Average,Minimum,Maximum Count/s

Objects

The data structure of collected Alibaba Cloud SLB objects can be viewed from 「Infrastructure - Custom」.

{
  "measurement": "aliyun_slb",
  "tags": {
    "name"              : "lb.xxxxxxxx",
    "LoadBalancerId"    : "lb.xxxxxxxxx",
    "RegionId"          : "cn-shanghai",
    "SlaveZoneId"       : "cn-shanghai-i",
    "MasterZoneId"      : "cn-shanghai",
    "Address"           : "172.xxx.xxx.xxx",
    "PayType"           : "PayOnDemand",
    "InternetChargeType": "paybytraffic",
    "LoadBalancerName"  : "Business System",
    "LoadBalancerStatus": "active",
    "AutoReleaseTime"   : "1513947075000",
    "RenewalStatus"     : "AutoRenewal",
    "AddressType"       : "Internet",
    "NetworkType"       : "vpc",
},
  "fields": {
    "CreateTime"              : "2020-11-18T08:47:11Z",
    "ListenerPortsAndProtocol": "{JSON data for listening ports}",
    "ServerHealthStatus"      : "{JSON data for instance health status}",
    "ServerCertificates"      : "{JSON data for certificate information}",
    "Bandwidth"               : "5120",
    "EndTimeStamp"            : "32493801600000",
    "message"                 : "{JSON data for instance}",
  }
}

Feedback

Is this page helpful? ×