You can view the resource usage of a dedicated host and configure alert rules in the CloudMonitor console. This allows you to monitor the status of a dedicated host.
View the resource usage of a dedicated host
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- On the Dedicated Hosts page, click the icon next to the dedicated host. You are redirected to the CloudMonitor console.
- View the resource usage of a dedicated host. You can view the monitoring data of the last 30 days. CloudMonitor monitors the computing, networking, and storage resources of a dedicated host. The following table describes the metrics.
Resource Metric Unit Description Computing UserCpuUtilization % The average CPU utilization of all the ECS instances on a dedicated host Networking UserNetworkRxPPS pps The sum of inbound packets of all the ECS instances on a dedicated host per second UserNetworkTxPPS pps The sum of outbound packets of all the ECS instances on a dedicated host per second UserNetworkRxBandwidth bit/s The total inbound bandwidth of all the ECS instances on a dedicated host per second UserNetworkTxBandwidth bit/s The total outbound bandwidth of all the ECS instances on a dedicated host per second Storage UserDiskReadIOPS IOPS The total number of requests that read data from the disks of all the ECS instances on a dedicated host UserDiskWriteIOPS IOPS The total number of requests that write data to the disks of all the ECS instances on a dedicated host UserDiskReadBPS Byte/s The total number of bytes that are read from the disks of all the ECS instances on a dedicated host UserDiskWriteBPS Byte/s The total number of bytes that are written to the disks of all the ECS instances on a dedicated host
Create an alert rule for a dedicated host
You must create alert contacts and alert contact groups before you create alert rules. For more information, see Create an alert contact or alert contact group.
- Move the pointer over the metric for which you want to create an alert rule. Click the icon in the upper-right corner.
- Associate an alert rule with a dedicated host. By default, the current dedicated host is associated with the alert rule. However, you can change the associated dedicated host.
- To associate the alert rule with other dedicated hosts, select a region from the Region list. Then, select one or more dedicated hosts from the Dedicated Host list.
- To associate the alert rule with all dedicated hosts, select All Resources from the Resource Range list.
- Configure the alert rule. The following table describes the parameters of a sample alert rule.
Parameter Example Description Rule Name ddhxxx-cpu The alert rule monitors the average CPU usage of all the ECS instances on the dedicated host. Rule Description
- 1Minute cycle
- Continue for three cycles
If the average CPU utilization of all the ECS instances on the dedicated host is greater than or equal to 80% for three consecutive 1-minute cycles, an alert is triggered. Mute For 30 minutes If the alert conditions are still met 30 minutes after the first alert, another alert notification is sent. Effective Period 19:00 to 20:59 Specifies whether to trigger alerts only between 19:00 and 20:59.
- Configure a notification method.
- Select a contact group from the Contact Group list. Click . The selected contact group is displayed in the Selected Groups list.
- Select an alert level. The alert level determines the notification method. The following three alert levels are supported:
- Critical. If a critical alert occurs, a notification is sent to specified recipients by using a voice call, text message, DingTalk message, and an email.
- Warning. If a warning alert occurs, a notification is sent to specified recipients by using a text message, DingTalk message, and an email.
- Info. If an info alert occurs, a notification is sent to specified recipients by using an email and a DingTalk message.
- Set other optional parameters. The following parameters are optional:
- Auto Scaling: Specify a scaling rule that is automatically executed when an alert is triggered.
- Log Service: Specify a region, project, and Logstore. If an alert is triggered, the alert information is written to the Logstore.
- Email Subject: The default email subject is Product Name + Metric Name + Instance ID.
- Email Remark: Enter the email description.
- HTTP CallBack: Enter a URL that is accessible from the Internet. CloudMonitor sends HTTP POST requests to push alert messages to this URL.
For more information, see Create an alert rule.