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 activate TrueWatch Integration - Extensions - DataFlux Func (Automata)
For self-deploying Func, refer to Self-deploying Func
Activate Script¶
Note: Please prepare the Alibaba Cloud AK that meets the requirements in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess
)
Automata Activation Script¶
- Log in to the TrueWatch console
- Click the 【Integration】 menu, select 【Cloud Account Management】
- Click 【Add Cloud Account】, select 【Alibaba Cloud】, and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step
- Click 【Test】, and click 【Save】 after the test is successful. If the test fails, please check whether the relevant configuration information is correct and test again
- Click 【Cloud Account Management】 list to see the added cloud account, click the corresponding cloud account to enter the details page
- Click the 【Integration】 button on the cloud account details page, find
Alibaba Cloud SLB
under theNot Installed
list, and click the 【Install】 button to pop up the installation interface and install it.
Manual Activation Script¶
-
Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, and search:
integration_alibabacloud_slb
-
Click 【Install】, and enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create the
Startup
script set and automatically configure the corresponding startup script. -
After activation, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. Wait a moment, you can view the execution task records and corresponding logs.
Metrics¶
After configuring Alibaba Cloud CloudMonitor, the default Measurement is as follows, and more Metrics can be collected through configuration Alibaba Cloud CloudMonitor Metrics Details
Metric | Description | Dimensions | Statistics | Unit |
---|---|---|---|---|
ActiveConnection | TCP Active Connections per Second | userId,instanceId,port,protocol | Average,Minimum,Maximum | Count |
DropConnection | Listener Dropped Connections per Second | userId,instanceId,port,protocol | Average,Minimum,Maximum | Count/s |
DropPacketRX | Listener Dropped Inbound Packets per Second | userId,instanceId,port,protocol | Average,Minimum,Maximum | Count/s |
DropPacketTX | Listener Dropped Outbound Packets per Second | userId,instanceId,port,protocol | Average,Minimum,Maximum | Count/s |
DropTrafficRX | Listener Dropped Inbound Bits per Second | userId,instanceId,port,protocol | Average,Minimum,Maximum | bits/s |
DropTrafficTX | Listener Dropped Outbound Bits per Second | userId,instanceId,port,protocol | Average,Minimum,Maximum | bits/s |
GroupActiveConnection | (Group Dimension) TCP Active Connections per Second | groupId | Average,Maximum,Minimum,Sum | Count |
GroupNewConnection | (Group Dimension) TCP New 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) Backend Unhealthy ECS Instance Count | groupId | Average,Maximum,Minimum,Sum | Count |
HealthyServerCountWithRule | Layer 7 Forwarding Rule Backend Healthy ECS Instance Count | userId,instanceId,port,vip,domain,url | Average,Maximum,Minimum | Count |
HeathyServerCount | Health Check Backend Healthy ECS Instance Count | userId,instanceId,port,vip | Average,Minimum,Maximum | Count |
InactiveConnection | TCP Inactive Connections | userId,instanceId,port,protocol | Average,Minimum,Maximum | Count |
InstanceActiveConnection | Instance Active Connections per Second | userId,instanceId | Average,Minimum,Maximum | Count/s |
InstanceDropConnection | Instance Dropped Connections per Second | userId,instanceId | Average,Minimum,Maximum,Sum | Count/s |
InstanceDropPacketRX | Instance Dropped Inbound Packets per Second | userId,instanceId | Average,Minimum,Maximum | Count/s |
InstanceDropPacketTX | Instance Dropped Outbound Packets per Second | userId,instanceId | Average,Minimum,Maximum | Count/s |
InstanceDropTrafficRX | Instance Dropped Inbound Bits per Second | userId,instanceId | Average,Minimum,Maximum | bits/s |
InstanceDropTrafficTX | Instance Dropped Outbound Bits per Second | userId,instanceId | Average,Minimum,Maximum | bits/s |
InstanceInactiveConnection | Instance Inactive Connections per Second | userId,instanceId | Average,Minimum,Maximum | Count/s |
InstanceMaxConnection | Instance Maximum Concurrent Connections per Second | userId,instanceId | Average,Minimum,Maximum | Count/s |
Object¶
The collected Alibaba Cloud SLB object data structure can be seen in 「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": "{Listener Port JSON Data}",
"ServerHealthStatus" : "{Instance Health Status JSON Data}",
"ServerCertificates" : "{Certificate Information JSON Data}",
"Bandwidth" : "5120",
"EndTimeStamp" : "32493801600000",
"message" : "{Instance JSON Data}",
}
}