All Products
Search
Document Center

CloudMonitor:Host monitoring

Last Updated:Jan 08, 2025

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.

    Log on to the CloudMonitor console.

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

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

    • If the CloudMonitor agent is installed, perform Step 2: Create an alert rule for the host.

      If Running is displayed in the argusagent Status column of the ECS instance, the CloudMonitor agent is installed.

    • If the CloudMonitor agent is not installed, manually install the CloudMonitor agent on the ECS instance. For more information, see Automatic installation (recommended).

      If Reinstall/Upgrade is displayed in the argusagent Status column of the ECS instance, the CloudMonitor agent is not installed.

Note

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.

    Log on to the CloudMonitor console.

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

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

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

  3. In the Configure Rule Description panel, enter a rule name in the Alert Rule field, configure the Metric Type, Metric, and Threshold and Alert Level parameters, and then click OK.

    Alert level

    Default alert notification method

    Critical

    Email + Webhook

    Warn

    Email + Webhook

    Info

    Email + Webhook

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

    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.

  5. Click Confirm.

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

Note

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

Step 3: View host alerts

After an alert rule is created, you can perform the following operations to view the alert rule and alert status.

    Log on to the CloudMonitor console.

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

  2. On the Alert Rules page, 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.