Help Center/ Cloud Eye/ Best Practices/ Scenario-specific Cases/ Using Resource Groups and Alarms to Report Metrics of Specified Resources
Updated on 2026-11-24 GMT+08:00

Using Resource Groups and Alarms to Report Metrics of Specified Resources

Scenarios

Cloud Eye provides the resource group and alarm functions. With it, you can group and monitor resources and receive alarm notifications by SMS or email of the resources in different groups.

This section describes how to do this.

Assume that there are four ECSs, namely ECS-01, ECS-02, ECS-03, and ECS-04. ECS-01 and ECS-02 are used by the development team. ECS-03 and ECS-04 are used by the test team. You need to obtain the running status of the two ECSs in the development team in a timely manner, including their CPU usage, idle CPU usage, average load, I/O usage, disk usage, memory usage, and percentage of total inode used. However, you do not need to obtain the running status of the two ECSs in the test team.

Table 1 ECS list and group planning

ECS Name

Group

Whether to Install the Agent

Department

ECS-01

Development_Team_Resources

Yes

Development team

ECS-02

Development_Team_Resources

Yes

Development team

ECS-03

N/A

No

Test team

ECS-04

N/A

No

Test team

Prerequisites

The Agent has been installed on ECS-01 and ECS-02. For details, see Agent Installation and Configuration.

Step 1: Creating a Resource Group

  1. Log in to the Cloud Eye console.
  2. In the navigation pane, choose Resource Groups.
  3. In the upper right corner, click Create Resource Group.
  4. Enter the group name as prompted. In this example, enter Development_Team_Resources.
  5. Select the target cloud service resources.
  6. Click Create.

Step 2: Creating a Topic and Configuring the Notification Object

When resource exceptions occur, an alarm notification can be sent to the configured topic subscribers.

  1. Log in to the SMN console.
  2. In the navigation pane, choose Topic Management > Topics.

    The Topics page is displayed.

  3. In the upper right corner, click Create Topic.

    The Create Topic dialog box is displayed.

  4. Set the parameters as prompted. For details about the parameters, see Creating a Topic.
  5. Click OK.

    The topic you created is displayed in the topic list.

    Click the topic name to view the topic details and the total number of topic subscriptions.

  6. In the topic list, locate the new topic. In the Operation column, click More and select Add Subscription.
  7. Specify the subscription protocol and endpoints.
  8. Click OK.

    The subscriptions you added are displayed in the subscription list.

Step 3: Creating an Alarm Rule

  1. Log in to the Cloud Eye console.
  2. In the navigation pane, choose Alarm Management > Rule Settings.

  3. In the upper right corner, click Create Alarm Rule.
  4. On the displayed page, set parameters as prompted. For details about the parameters, see Creating an Alarm Rule and Notifications.

    Set the monitoring scope to Resource groups and select the Development_Team_Resources group created in Step 1: Creating a Resource Group.

    1. Set Alarm Notification parameters.
    2. Click Create.

After the alarm rule is added, if the metric data reaches the threshold, Cloud Eye immediately informs you that the metric data of group Development_Team_Resources (ECS-01 and ECS-02) is abnormal through SMN, helping you avoid business loss.