Application of Instance Grouping in Alarms

Last Updated At: 2025-10-21 09:10:00

This document introduces how to implement unified settings of alarm policies in batch for cross-instance and cross-region projects of the same product according to workload classification.

  1. Overview
    As your business grows, the number of cloud resources increases, making efficient daily monitoring a challenge for Ops. With the instance grouping feature in Cloud Monitor, you can classify a large batch of cloud resources by workload. This allows you to apply unified alarm policies to all instances within a group, helping you stay informed about their usage and operational status, and significantly improving Ops efficiency.
  • Use cases
    Suppose you have five CVMs, three of which (CVM-1, CVM-2, and CVM-3) are used for Game A, while the remaining two are assigned to other workloads.
    • CVM-1 is located in Region A and assigned to Project A.
    • CVM-2 is located in Region B and assigned to Project B.
    • CVM-3 is located in Region C and assigned to Project C.
      To promptly learn about the usage and operation status of the three CVMs for Game A, the following configurations are required.
    1. Create an instance group. Add CVM-1, CVM-2, and CVM-3 to the same instance group.
    2. Create an alarm policy, which includes metrics such as CPU utilization, memory utilization, disk utilization, and outbound bandwidth of the public network (for monitoring traffic usage). Alarm notifications are sent automatically when metrics of any instance reach a certain threshold.
  1. Grouping instances
    1. Log in to the Cloud Platform console and choose Cloud Monitor > Instance Group.
    2. Click Create and configure the instance group in the pop-up window as follows.
    • Group name: The name is "Game A".
    • Group type: Choose Cloud Virtual Machine > Basic Monitoring.
    • Add to the group: Select regions City A, City B, and City C respectively, and add CVM-1, CVM-2, and CVM-3 from each region to the instance group.
    1. After the configuration is completed, click Save.
  2. Creating alarms
    1. Log in to the Cloud Platform console and choose Cloud Monitor > Alarm Configuration > Alarm Policy.
    2. Click Create, and perform configurations according to the prompts on the page.
    • Policy name: Cutomized by you.
    • Policy type: Choose Cloud Virtual Machine > Basic Monitoring.
    • Alarm object: Choose Instance Group > Game Business A.
    • Alarm trigger conditions.
      CPU utilization, statistical period 1 minute, >, 85%, lasts for 1 data point, and alarm once per day.
      Memory utilization, statistical period 1 minute, >, 85%, lasts for 1 data point, and alarm once per day.
      Disk utilization, statistical period 1 minute, >, 85%, lasts for 1 data point, and alarm once per day.
      Outbound bandwidth, statistical period 1 minute, >, 100Mbps, lasts for 1 data point, and alarm once per day.
    • Notification template: The system default is set to preset notification template. You can also click Select Template to choose an existing one you've created, or click Create New Template to create one based on your needs.
    1. After the configuration is completed, click Complete.