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.
Background information
CloudMonitor allows you to monitor the metrics of Alibaba Cloud services, detect the availability of services, and configure alert rules for specified metrics. This way, you can monitor the usage of your Alibaba Cloud services and the status of your services. You can also resolve alerts at the earliest opportunity to ensure the availability of your applications. For more information, see What is CloudMonitor?
View the resource usage of a dedicated host
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of 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
UserCpuUtilization
1Minute cycle
Continue for three cycles
Value
>=
80%
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.
Different alert levels trigger different notification methods. DDH provides three alert levels:
Critical. Notifications are sent to the specified recipients through voice calls, text messages, DingTalk messages, and emails.
Warning. Notifications are sent to specified recipients through text messages, DingTalk messages, and emails.
Info. Notifications are sent to specified recipients through DingTalk messages and emails.
ImportantWhen setting alert rules, we recommend that you evaluate the urgency of the rule and select an appropriate alert level to ensure that notifications can reach their intended recipient in a timely manner.
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 a description that you want to include in the email.
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.