Configuring Resource Groups for Metric Alarms
When creating a resource group, you are advised to set Add Resources to Automatically. Resource groups created with Add Resources set to Automatically can be updated dynamically. When you add resources that meet the required conditions, the system automatically adds the resources to the group. Supported cloud services vary with how resources are added. For details, see Cloud Services Supported by Resource Groups.
Creating a Resource Group by Matching Resources by Tag
When you need to group services of different owners, you are advised to set Add Resources to Tag. This matching rule relies on the accuracy of resource tags. For example, the tag env=pro,business=xxx indicates resources of the xxx service in the production environment.
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set parameters.
Figure 1 Matching resources by tag
Table 1 Parameters for creating a resource group by matching resources by tag Parameter
Example Value
Description
Name
Production_Business_xxx
Name of the resource group. The value can contain 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).
Add Resources
Automatically
Method of adding or matching resources to a resource group.
Match Resources By
Tag
How resources are added to a resource group.
Resource Level
Cloud product
Resource level of the monitored object. You can select Cloud product or Specific dimension.
If Resource Level is set to Cloud product, you need to select a cloud product.
If Resource Level is set to Specific dimension, all available resources in the selected dimensions will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
Cloud Product
Elastic Cloud Server - ECSs
If Resource Level is set to Cloud service, you need to select the cloud service that the instance belongs to. You can select one or more cloud services.
If Cloud Product is set to All, all cloud products that are interconnected with Cloud Eye will be selected.
Matching Rule
Tag 1: env=pro,
Tag 2: business=xxx
Tag matching rule. You can add up to 50 tags. Key-value pairs that you can use to easily categorize and search for cloud resources.
- Resource tag key: A tag key cannot start or end with a space, or start with _sys_. It can contain up to 128 characters and contain letters, digits, spaces, and these special characters: _.:=+-@
- Resource tag value: A tag value consists of the matching method and value. The matching method can be set to Equal, All, Include, Prefix, Suffix, or Not include. The value can contain up to 255 characters and contain letters, digits, spaces, and these special characters: _.:/=+-@
NOTE:If you enter multiple tags, the relationship between different keys is AND, and the relationship between values of the same key is OR.
Enterprise Project
Enterprise Project A
Enterprise project that the resource group belongs to
- In the Advanced Settings area, select an alarm template and configure alarm notifications to create an alarm rule. For details about parameters, see (Optional) Advanced Configurations.
- Click Create.
Creating a Resource Group by Matching Resources by Enterprise Project
When you create a resource group with Match Resources By set to Enterprise Project, you can only select a specific enterprise project to match resources, which is not flexible. This method is applicable to accounts with only one environment.
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set parameters.
Figure 2 Matching resources by enterprise project
Table 2 Parameters for creating a resource group by matching resources by enterprise project Parameter
Example Value
Description
Name
Enterprise_Project_B
Name of the resource group. The value can contain 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).
Add Resources
Automatically
Method of adding or matching resources to a resource group.
Match Resources By
Enterprise project
How resources are added to a resource group.
Resource Level
Cloud product
Resource level of the monitored object. You can select Cloud product or Specific dimension.
If Resource Level is set to Cloud product, you need to select a cloud product.
If Resource Level is set to Specific dimension, all available resources in the selected dimensions will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
Cloud Product
Elastic Cloud Server - ECSs
If Resource Level is set to Cloud service, you need to select the cloud service that the instance belongs to. You can select one or more cloud services.
If Cloud Product is set to All, all cloud products that are interconnected with Cloud Eye will be selected.
Enterprise Project
Enterprise project B
Enterprise project for matching resources. You can select multiple enterprise projects.
Enterprise Project
Enterprise Project A
Enterprise project that the resource group belongs to
- In the Advanced Settings area, select an alarm template and configure alarm notifications to create an alarm rule. For details about parameters, see (Optional) Advanced Configurations.
- Click Create.
Creating a Resource Group by Matching Resources by Multiple Criteria
When you create a resource group with Match Resources By set to Multiple Criteria, you can choose to match resources by enterprise project and tag. This method is similar to matching resources by tag. If a large number of tags are added for resources, the matching will be complex. This method is suitable for accounts with fewer tags.
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set parameters.
Figure 3 Matching resources by multiple criteria
Table 3 Parameters for creating a resource group by matching resources by multiple criteria Parameter
Example Value
Description
Name
Production_Business_XXX_Enterprise_Project_B
Name of the resource group. The value can contain 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).
Add Resources
Automatically
Method of adding or matching resources to a resource group.
Match Resources By
Multiple criteria
How resources are added to a resource group.
Resource Level
Cloud product
Resource level of the monitored object. You can select Cloud product or Specific dimension.
If Resource Level is set to Cloud product, you need to select a cloud product.
If Resource Level is set to Specific dimension, all available resources in the selected dimensions will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
Cloud Product
Elastic Cloud Server - ECSs
If Resource Level is set to Cloud service, you need to select the cloud service that the instance belongs to. You can select one or more cloud services.
If Cloud Product is set to All, all cloud products that are interconnected with Cloud Eye will be selected.
Multi-Criteria Match
Enterprise project and Tag
Combination method 1: env=pro,enterprise project B
Combination method 2: business=xxx,enterprise project B
Combination method for matching resources by multiple criteria. After selecting a combination method, you need to set the corresponding matching rule. Each rule allows up to 50 combinations.
If Resource Level is set to Cloud product, you can select at least two matching criteria from Enterprise project, Tag, and Instance name.
If Resource Level is set to Specific dimension, Enterprise project and Tag are selected by default and cannot be changed.
NOTE:The relationship between different combinations is OR. The relationship between different matching rules in the same combination is AND.
Enterprise Project
Enterprise project A
Enterprise project that the resource group belongs to
- In the Advanced Settings area, select an alarm template and configure alarm notifications to create an alarm rule. For details about parameters, see (Optional) Advanced Configurations.
- Click Create.
Creating a Resource Group by Matching Resources by Instance Name
When you create a resource group with Match Resources By set to Multiple Criteria, resources are added or matched based on the resource naming rule, which can be difficult to manage. Therefore, it is not recommended.
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set parameters.
Figure 4 Matching resources by instance name
Table 4 Parameters for creating a resource group by matching resources by instance name Parameter
Example Value
Description
Name
Resource_Group_test1
Name of the resource group. The value can contain 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).
Add Resources
Automatically
Method of adding or matching resources to a resource group.
Match Resources By
Instance name
How resources are added to a resource group.
Resource Level
Cloud product
Resource level of the monitored object. You can select Cloud product or Specific dimension.
If Resource Level is set to Cloud product, you need to select a cloud product.
If Resource Level is set to Specific dimension, all available resources in the selected dimensions will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
Cloud Product
Elastic Cloud Server - ECSs
Add to the resource group when any combined condition is met
The instance name contains test1.
Select the cloud product where the instance is located and configure resource matching rules.
You can select one or more cloud products. For each product, you can add up to 50 combination conditions. You can select any or all combination conditions.
You can select Equal, All, Include, Prefix, Suffix, or Not include. If All is selected, all instances of the cloud product are selected, and you do not need to enter an instance name.
The instance name can contain a maximum of 128 characters. It can contain only letters, digits, underscores (_), periods (.), and hyphens (-).
The relationship between different cloud products is OR.
Enterprise Project
Enterprise Project A
Enterprise project that the resource group belongs to
- In the Advanced Settings area, select an alarm template and configure alarm notifications to create an alarm rule. For details about parameters, see (Optional) Advanced Configurations.
- Click Create.
Creating a Resource Group by Manually Selecting Cloud Products
Some services do not support automatic resource addition or resource match by tag for a resource group. For details about these services, see Cloud Services Supported by Resource Groups. To perform rights- and domain-based configuration for resources of these services, you need to manually select resources, which is complex.
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set parameters.
Table 5 Parameters for creating a resource group for services that do not support automatically adding resources Parameter
Example Value
Description
Name
Resource_Group_Manual
Name of the resource group. The value can contain 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).
Add Resources
Manually
Method of adding or matching resources to a resource group.
Resource Level
Cloud product
Resource level of the monitored object. You can select Cloud product or Specific dimension.
Cloud Product
NAT Gateway - Private NAT Gateway, Web Application Firewall - Dedicated WAF Instance, NAT Gateway - Public NAT Gateway
If Resource Level is set to Cloud product, you need to select the cloud product that the instance belongs to and select specified resources. You can select one or more cloud products.
Enterprise Project
Enterprise Project A
Enterprise project that the resource group belongs to
- In the Advanced Settings area, select an alarm template and configure alarm notifications to create an alarm rule. For details about parameters, see (Optional) Advanced Configurations.
- Click Create.
Creating a Resource Group by Manually Selecting Dimensions
- You created a resource group for which resources are added automatically and set Resource Level to Specific dimension, but resources of the selected dimension cannot be tagged for some reasons.
For example, when you create a service in CCE, the listener created in ELB is automatically called. In this case, you need to set Resource Level to Specific dimension because only one type of resource (listener) needs to be added.
- Some resources require specific thresholds.
For example, the message stacking threshold of a queue in a RabbitMQ instance needs to be lowered.
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set parameters.
Name: Name of a resource group. The value can contain 1 to 128 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.
Add Resources: Select Manually.
Resource Level: Select Specific dimension.Table 6 Parameters for creating a resource group for services that do not support automatically adding resources Parameter
Example Value
Description
Name
Resource_Group_Manual
Name of the resource group. The value can contain 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).
Add Resources
Manually
Method of adding or matching resources to a resource group.
Resource Level
Specific dimension
Resource level of the monitored object. You can select Cloud product or Specific dimension.
If this parameter is set to Specific dimension, you can manually select resources for the resource group.
Enterprise Project
Enterprise Project A
Enterprise project that the resource group belongs to
- In the Advanced Settings area, select an alarm template and configure alarm notifications to create an alarm rule. For details about parameters, see (Optional) Advanced Configurations.
- Click Create.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot