Alibaba Cloud EIP¶
Display of Alibaba Cloud EIP Metrics, including network bandwidth, network data packets, rate of limited packet loss, bandwidth utilization, etc.
Configuration¶
Install Func¶
It is recommended to enable the Guance integration - extension - hosted Func.
If you deploy Func yourself, refer to Self-deployed Func
Enable Script¶
Note: Please prepare an Alibaba Cloud AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permission
ReadOnlyAccess
).
Hosted Version Enable Script¶
- Log in to the Guance console.
- Click on the 【Integration】 menu and select 【Cloud Account Management】.
- Click 【Add Cloud Account】, choose 【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】, if the test succeeds, click 【Save】. If the test fails, check whether the related configuration information is correct and retest.
- In the 【Cloud Account Management】 list, you can 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. In the
Not Installed
list, findAlibaba Cloud EIP
, click the 【Install】 button, and a pop-up installation interface will appear.
Manual Enable Script¶
-
Log in to the Func console, click 【Script Market】, enter the official script market, and search:
guance_aliyun_eip
-
After clicking 【Install】, input the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create a
Startup
script set and automatically configure the corresponding startup script. -
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the regular time. Wait a moment, and you can view the execution task records and corresponding logs.
We default collect some configurations, for more details, see the metrics section.
Customize Cloud Object Metrics Configuration
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has an automatic trigger configuration, and at the same time, you can check the corresponding task records and logs to see if there are any abnormalities.
- In Guance, under 「Infrastructure / Custom」, check if there is asset information.
- In Guance, under 「Metrics」, check if there is corresponding monitoring data.
Metrics¶
After configuring Alibaba Cloud - Cloud Monitoring, the default metric set is as follows. You can collect more metrics through configuration. Alibaba Cloud Cloud Monitoring Metric Details
Metric | Description | Statistics | Unit |
---|---|---|---|
net_rx_rate |
Incoming network bandwidth | Value | bits/s |
net_tx_rate |
Outgoing network bandwidth | Value | bits/s |
netrxPkgs_rate |
Incoming packet rate | Average,Minimum,Maximum,Sum | Packets/Second |
nettxPkgs_rate |
Outgoing packet rate | Average,Minimum,Maximum,Sum | Packets/Second |
net_in.rate_percentage |
Incoming network bandwidth utilization | Average | |
net_out.rate_percentage |
Outgoing network bandwidth utilization | Average | |
net_rx |
Incoming traffic | Average,Minimum,Maximum,Sum | bytes |
net_tx |
Outgoing traffic | Average,Minimum,Maximum,Sum | bytes |
net_rxPkgs |
Incoming data packet count | Average,Minimum,Maximum,Sum | Count |
net_txPkgs |
Outgoing data packet count | Average,Minimum,Maximum,Sum | Count |
in_ratelimit_drop_speed |
Inbound rate-limited packet drop rate | Average,Minimum,Maximum,Sum | Packets/Second |
out_ratelimit_drop_speed |
Outbound rate-limited packet drop rate | Average,Minimum,Maximum,Sum | Packets/Second |
Objects¶
The collected Alibaba Cloud EIP object data structure can be seen from 「Infrastructure - Custom」.
{
"measurement": "aliyun_eip",
"tags": {
"name" : "eip-xxxxx",
"AllocationId" : "eip-bp1lfsikwo4roa0mcqg9u",
"EIPName" : "",
"Status" : "InUse",
"RegionId" : "cn-hangzhou",
"Bandwidth" : "1",
"IpAddress" : "47.96.22.249",
"InternetChargeType": "PayByTraffic",
"BusinessStatus" : "Normal",
"ChargeType" : "PostPaid"
},
"fields": {
"AllocationTime": "2022-01-20T03:06:51Z",
"ExpiredTime" : "",
"message" : "{Instance JSON Data}"
}
}