Alibaba Cloud ECS¶
The displayed Metrics for Alibaba Cloud ECS include CPU utilization, memory utilization, network bandwidth, and disk IOPS. These Metrics reflect the performance of ECS instances in terms of computing, memory, networking, and storage.
Configuration¶
Install Func¶
It is recommended to enable Guance integration - extension - DataFlux Func (Automata)
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
)
Enable script for Automata¶
- Log in to Guance console
- Click on the 【Integration】 menu and select 【Cloud Account Management】
- Click 【Add Cloud Account】, choose 【Alibaba Cloud】, fill in the required information on the interface; if cloud account information has been configured before, ignore this step
- Click 【Test】, after a successful test 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 detail page. Under the
Not Installed
list, findAlibaba Cloud ECS
, click the 【Install】 button, and install it via the installation interface.
Manual Enable Script¶
-
Log in to the Func console, click 【Script Market】, go to the official script market, and search:
guance_aliyun_ecs
-
Click 【Install】, then 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 configure the corresponding startup script automatically. -
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to run it immediately without waiting for the scheduled time. Wait a moment, you can view the execution task records and corresponding logs.
We collect some configurations by default, see the Metrics section for details.
Configure Custom Cloud Object Metrics
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has an automatic trigger configuration. You can also check the task records and logs to ensure there are no abnormalities.
- In Guance, 「Infrastructure / Custom」, check if asset information exists.
- In Guance, 「Metrics」, check if there are corresponding monitoring data.
Metrics¶
After configuring Alibaba Cloud - Cloud Monitor, the default Measurement set is as follows. You can collect more Metrics through configuration. Alibaba Cloud Cloud Monitor Metric Details
Note: You need to install the monitoring plugin in the Aliyun ECS console.
Metric | Description | Type | Unit |
---|---|---|---|
CPUUtilization |
CPU utilization | float | % |
memory_usedutilization |
Memory utilization | float | % |
load_1m |
load.1m | float | count |
load_15m |
load.15m | float | count |
load_5m |
load.5m | float | count |
DiskReadBPS |
All disk reads BPS | float | bytes/s |
DiskWriteBPS |
All disk writes BPS | float | bytes/s |
DiskReadIOPS |
All disk reads per second | float | Count/Second |
DiskWriteIOPS |
All disk writes per second | float | Count/Second |
disk_readiops |
Disk reads per second | float | Count/Second |
disk_writeiops |
Disk writes per second | float | Count/Second |
diskusage_utilization |
Host.diskusage.utilization |
float | % |
fs_inodeutilization |
(Agent)fs.inode.utilization_device | float | % |
GroupVPC_PublicIP_InternetInRate |
Public IP dimension inbound bandwidth | float | bits/s |
GroupVPC_PublicIP_InternetOutRate |
Public IP dimension outbound bandwidth | float | bits/s |
IntranetInRate |
Intranet inbound bandwidth | float | bits/s |
IntranetOutRate |
Intranet outbound bandwidth | float | bits/s |
concurrentConnections |
Concurrent connections | float | count |
cpu_wait |
(Agent)cpu.wait | float | % |
cpu_user |
(Agent)cpu.user | float | % |
cpu_system |
(Agent)cpu.total | float | % |
memory_freeutilization |
(Agent)memory.free.utilization | float | % |
disk_readbytes |
(Agent)disk.read.bytes_device | float | bytes/s |
disk_writebytes |
(Agent)disk.write.bytes_device | float | bytes/s |
networkin_rate |
(Agent)network.in.rate_device | float | bits/s |
networkin_packages |
(Agent)network.in.packages_device | float | Count/s |
net_tcpconnection |
(Agent)network.tcp.connection_state | float | Count |
memory_freespace |
(Agent)memory.free.space | float | bytes |
memory_usedspace |
(Agent)memory.free.space | float | bytes |
memory_totalspace |
(Agent)memory.total.space | float | bytes |
Objects¶
The collected Alibaba Cloud ECS object data structure can be seen from 「Infrastructure - Custom」.
{
"measurement": "aliyun_ecs",
"tags": {
"name" : "i-xxxxx",
"HostName" : "xxxxx",
"InstanceName" : "xxxxx",
"InstanceId" : "i-xxxxx",
"RegionId" : "cn-hangzhou",
"ZoneId" : "cn-hangzhou-a",
"InstanceChargeType" : "PrePaid",
"InternetChargeType" : "PayByTraffic",
"OSType" : "linux",
"PublicIpAddress_IpAddress": "['xxxx',]",
"InstanceType" : "ecs.c6.xlarge",
"InstanceTypeFamily" : "ecs.c6",
"Status" : "Running"
},
"fields": {
"CreationTime" : "2022-01-01T00:00Z",
"StartTime" : "2022-01-02T00:00Z",
"ExpiredTime" : "2023-01-01T00:00Z",
"disks" : "[ {associated disk JSON data}, ... ]",
"network_interfaces" : "[ {associated NIC JSON data}, ... ]",
"instance_renew_attribute": "[ {automatic renewal JSON data}, ...]",
"instances_full_status" : "[ {full status information JSON data}, ...]",
"OperationLocks" : "[ {lock reason JSON data}, ...]",
"Memory" : "8192",
"Cpu" : "4",
"InternetMaxBandwidthOut": "0",
"InternetMinBandwidthIn" : "0",
"AutoReleaseTime" : "xxxx",
"message" : "{instance JSON data}"
}
}