You can bind a tag to multiple ECS instances that run the same business. Then, you can use the application group feature of Cloud Monitor to configure smart tag synchronization for these instances. Cloud Monitor automatically assigns the ECS instances that are bound with the same tag to the same application group to implement automatic resource monitoring by group. In ECS, only ECS instances support this feature.
Background information
The application group feature of Cloud Monitor allows you to manage alert rules and
view monitoring data by group. This makes management less complex. For more information,
see Application group. In this topic, ECS instances that are automatically created in a scaling group are
bound with the testKey:testValue
tag. Then, Cloud Monitor uses the configuration rules of the application group to
identify and assign the ECS instances to the application group based on the tag.
You can use one of the following methods to implement automatic resource monitoring by group based on tags:
- Create resources that are bound with tags or bind tags to existing resources. Then, use Cloud Monitor to create an application group for which the smart tag synchronization feature is enabled. Make sure that the tags that match the application group are the same as those bound to the resources.
- Create an application group for which the smart tag synchronization feature is enabled, and add a custom tag to the matching rules of the application group. Then, create resources that are bound with the same tag as the application group or bind the same tag as the application group to existing resources. The resources are automatically assigned to the application group.
Step 1: Create instances that are bound with the same tag
You can create instances that are bound with the same tag or bind a 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 bind a tag to the instances in a scaling group:
Step 2: Create a Cloud Monitor application group
Step 3: View monitoring information about the ECS instances
You can use one of the following methods to view the information about the ECS instances:
Method 1: View the monitoring information about the ECS instances based on their application group in the Cloud Monitor console.
Method 2: View the monitoring information about the ECS instances in the ECS console.
What to do next
Monitor ECS instances in real time by using Cloud Monitor. For more information, see Overview.