Silence Rules

AOM supports alarm silence. You can shield alarm notifications in a specified period. A silence rule takes effect immediately after it is created.

Creation Method

  1. Log in to the AOM console. In the navigation pane, choose Alarm Center > Alarm Noise Reduction and click the Silence Rules tab. On the displayed page, click Create.
  2. Set information such as Rule Name and Match Condition.

    Figure 1 Creating a silence rule

    Any alarm notifications that meet the match condition will be shielded. You can set a match condition in one of the following formats:

    • "key1:value1,key2:value2". Match the value corresponding to the key to determine a suppressed object.
    • "key1,key2". Match the key to determine the suppressed object. All values under the key are covered.
    • "key1,key2,key3:value3". Determine the suppressed object by using the preceding two methods.

      "key:value" pairs must be separated by commas (,). The relationship between "key:value" pairs is "AND". That is, all conditions specified by setting "key:value" pairs must be met.

    The "key:value" pairs in the match condition are obtained from metadata in the alarm message body. Example:

    { 
        "starts_at" : 1579420868000, 
        "ends_at" : 1579420868000, 
        "timeout" : 60000, 
        "resource_group_id" : "5680587ab6*******755c543c1f", 
        "metadata" : { 
          "event_name" : "test", 
          "event_severity" : "Major", 
          "event_type" : "alarm", 
          "resource_provider" : "ecs", 
          "resource_type" : "vm", 
          "resource_id" : "ecs123" 
     }, 
    "annotations" : { 
           "alarm_probableCause_en_us": " Possible causes",
           "alarm_fix_suggestion_en_us": "Handling suggestion"
      }
    }

  3. Click OK.

More Operations

After creating a silence rule, perform the operations listed in Table 1 if needed.

Table 1 Related operations

Operation

Description

Modifying a silence rule

Click Modify in the Operation column.

Deleting a silence rule

  • To delete a single rule, click Delete in the Operation column in the row that contains the rule, and then click Yes on the displayed page.
  • To delete one or more rules, select them, click Delete above the rule list, and then click Yes on the displayed page.

Searching for a silence rule

Enter a rule name in the search box in the upper right corner and click .