You can monitor the status of your Elastic Compute Service (ECS) instances to ensure that your users can always access your websites and applications, process data, and render videos. Alibaba Cloud provides data monitoring, visualization of monitoring data, and real-time alerts to ensure that your ECS instances are running without interruptions.
Background information
- vCPU utilization: the percentage of allocated ECS compute units that are currently
in use on an instance. A higher percentage indicates a higher vCPU load on the instance.
You can view the vCPU utilization of an ECS instance in the ECS console or the CloudMonitor
console. You can also obtain monitoring data by calling ECS API operations or by connecting
to the instance. You can use one of the following methods to view the vCPU utilization
of an ECS instance after you connect to the instance:
- Windows instance: View the vCPU utilization in Task Manager. You can sort the tasks by vCPU utilization to find the process that is consuming the vCPUs of the specified ECS instance.
- Linux instance: Run the top command to view the vCPU utilization. To find the process that is consuming the vCPUs of the specified ECS instance, press Shift+P to sort the tasks by vCPU utilization.
- Network traffic: the bandwidth usage for the inbound and outbound traffic of the ECS instance in Kbit/s. ECS monitors Internet traffic, whereas CloudMonitor monitors both Internet traffic and internal network traffic. If the outbound Internet traffic reaches 1,024 Kbit/s and the outbound public bandwidth is 1 Mbit/s, the outbound public bandwidth for the specified ECS instance is fully utilized.
ECS monitoring service
To view monitoring data in the ECS console, perform the following steps.
You can also call ECS API operations such as DescribeInstanceMonitorData, DescribeDiskMonitorData, and DescribeEniMonitorData to query monitoring data.
Metric | Description |
---|---|
Instance | The ID of the instance. |
vCPU | The percentage of allocated ECS compute units that are currently in use on the instance. |
Inbound traffic over the internal network | The internal network traffic to your instance. Unit: Kb. |
Outbound traffic over the internal network | The internal network traffic from your instance. Unit: Kb. |
Internal bandwidth | The internal network traffic of the instance per unit time. Unit: Kbit/s. |
Inbound traffic over the Internet | The Internet traffic to the instance. Unit: Kbit/s. |
Outbound traffic over the Internet | The Internet traffic from the instance. Unit: Kb. |
Public bandwidth | The Internet traffic of the instance per unit time. Unit: Kbit/s. |
System disk read IOPS | The number of read operations on the system disk per second. |
System disk write IOPS | The number of write operations on the system disk per second. |
System disk read BPS | The number of bytes read from the system disk per second. Unit: byte/s. |
System disk write BPS | The number of bytes written to the system disk per second. Unit: byte/s. |
- The following section describes differences between Kb and KB:
- 1 byte = 8 bits (1 B = 8 b).
- If K or k indicates kilo, one kilobit (Kb) equals 1,000 bits, and a kilobyte (KB) equals 1,000 bytes.
- In the ECS monitoring service, network traffic is measured in Kbit/s, which is kilobit per second. Kbit/s indicates network speed, which is the number of kilobits transmitted per second. The unit bit/s is always omitted when bandwidth is described. For example, the full form of 4 M in the bandwidth scenario is 4 Mbit/s.
- In theory, if a network bandwidth is 1 Mbit/s, the download speed can reach 125 KB/s. Download units are converted in the following ways: 1 KB = 8 Kb, 1 Mbit/s = 125 KB/s, and 1 kbit/s = 1,000 bit/s. However, some applications such as remote desktop programs that run on the instance consume a small amount of bandwidth. Therefore, the actual download speed is typically from 100 KB/s to 110 KB/s instead of 125 KB/s for a 1 Mbit/s network bandwidth.
CloudMonitor
To obtain monitoring data of an ECS instance in the CloudMonitor console, perform the following steps.
