All Products
Search
Document Center

CloudMonitor:Host monitoring

Last Updated:Mar 29, 2024

CloudMonitor supports monitoring on Elastic Compute Service (ECS) instances and third-party hosts. This topic describes how to configure an alert rule to monitor an ECS instance. In this example, the CPU Utilization metric is specified as the alert condition for the alert rule.

Prerequisites

Step 1: Check whether the CloudMonitor agent is installed on the host

After you create an ECS instance in the ECS console, the host is displayed in the Host Monitoring list of the CloudMonitor console. Before CloudMonitor can monitor an ECS instance, you must install the CloudMonitor agent on the ECS instance.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, click Cloud Service Monitoring > Host Monitoring.

  3. Check whether the CloudMonitor agent is installed on the ECS instance that you created.

Step 2: Create an alert rule for the host

When you view the metrics for the ECS instance, you can create an alert rule for the ECS instance. If the value of the specified metric meets the specified alert condition, an alert is triggered and CloudMonitor sends an alert notification. This helps you monitor the metric status in real time.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, click Cloud Service Monitoring > Host Monitoring.

  3. On the Host Monitoring page, click the name of the host that you want to manage.

  4. On the Host Monitoring Details page, click the image.png icon in the CPU Utilization(%) section.

  5. In the Config Rule Description panel, specify the rule name, threshold value, and alert level, and then click OK.

    Set the threshold of the CPU Utilization metric to 80, the alert level to Warn, and the notification methods to Email + Webhook.

  6. In the Create Alert Rule panel, specify an alert contact group. Use the default values for other parameters.

    For more information about how to configure an alert rule, see Create an alert rule.

    Note

    If an alert contact is configured with only an email address or webhook URL, the alert contact can receive alert notifications only by using emails or webhooks.

  7. Click Confirm.

    For information about how to modify, disable, enable, and delete an alert rule, see Manage alert rules.

Step 3: View host alerts

After an alert rule is created, you can view the alert rule and alert status in the Alerts module.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Alerts > Alert Rules.

  3. On the Alert Rules page, you can view the required alert rule and alert status.

    • If the status of the alert rule is Normal, no alert is triggered.

    • If the alert rule is in the Alert state, alerts are triggered and alert notifications are already sent. You can also view the historical alerts of the alert rule. For more information, see View historical alerts.