You can add the same tag to Elastic Compute Service (ECS) instances that run the same business. Then, you can use the application group feature of CloudMonitor to configure smart tag synchronization for these instances. CloudMonitor assigns ECS instances with the same tag to the same application group to automatically monitor the instances in the group. In ECS, only ECS instances support automatic resource monitoring by group based on tags.
Background information
The application group feature of CloudMonitor allows you to manage alert rules and
view monitoring data by group, which reduces management complexity. For more information,
see Create an application group. ECS instances with a specified tag are automatically identified and assigned to
an application group based on the configuration rule of the group. In this topic,
instances that are automatically created in a scaling group and that have the testKey:testValue
tag added are used, and the instances are identified and assigned to an application
group that has the testKey:testValue tag added.
You can use one of the following methods to implement automatic resource monitoring by group based on tags:
- Create resources that have tags added or add tags to existing resources. Then, use CloudMonitor to create an application group that supports smart tag synchronization. Make sure that the tags of the application group are the same as those of the resources.
- Create an application group that supports smart tag synchronization, and add a custom tag to the matching rule of the application group. Then, create resources that have the tag added or add the tag to existing resources. The resources are automatically assigned to the application group.
Step 1: Create instances that have a specified tag add
You can create instances that have a specified tag added or add a specified tag to existing instances. For more information, see Create or bind a tag. Alternatively, you can perform the following operations to use Auto Scaling to add a specified tag to the instances in a scaling group:
Step 2: Create a CloudMonitor application group
Step 3: View monitoring information of the ECS instances
You can use one of the following methods to view the information of the ECS instances:
Method 1: View the monitoring information about the ECS instances based on their application group in the CloudMonitor console.
Method 2: View the monitoring information of the ECS instances in the ECS console.
What to do next
You can monitor ECS instances in real time by using CloudMonitor. For more information, see Overview.