Updated on 2023-11-17 GMT+08:00

Creating an Event Alarm Rule

You can set event conditions for services by setting event alarm rules. When the resource data meets an event condition, an event alarm is generated.

Precautions

If you want to receive email or SMS notifications when the resource data meets the event condition, set an alarm action rule according to Creating an Alarm Action Rule.

Procedure

  1. Log in to the AOM console. In the navigation pane, choose Alarm Center > Alarm Rules. Then, click Create Alarm Rule in the upper right corner.
  2. Set an event alarm rule.

    1. Set basic information such as the rule name and description.
      Figure 1 Setting basic information
    2. Set details about the rule.
      1. Set Rule Type to Event alarm.
      2. Set the alarm source, trigger object, and trigger policy.
        Table 1 Alarm rule parameters

        Parameter

        Description

        Alarm Source

        Name of the service for which an event alarm is reported. You can select a service from the service list.

        Trigger Object

        Select criteria to filter service events. You can select Notification Type, Event Name, Alarm Severity, Custom Attributes, Namespace, or Cluster Name as the filter criterion. One or more criteria can be selected.

        Trigger Policy

        Policy for triggering event alarms.

        • Accumulated Triggering: An alarm action rule is triggered when the accumulated number of times you preset is reached in a monitoring period.
        • Immediate Triggering: An alarm is generated immediately when the filter criterion is met.
        Figure 2 Setting an alarm rule
    3. Set an alarm notification policy. There are two alarm notification modes.
      • Direct Alarm Reporting: An alarm is directly sent when the alarm condition is met.

        You need to configure whether to enable an alarm action rule. After this function is enabled, the system sends alarm notifications based on the associated SMN topic and message template. If the existing alarm action rules cannot meet your requirements, click Create Rule to create one. For details, see Creating an Alarm Action Rule.

        Figure 3 Selecting the direct alarm reporting mode
      • Alarm Noise Reduction: Alarms are sent only after being processed based on noise reduction rules, preventing alarm storms.

        Select a grouping rule from the drop-down list. If existing grouping rules cannot meet your requirements, click Create Rule to create one. For details, see Creating a Grouping Rule.

        Figure 4 Selecting the alarm noise reduction mode

  3. Click Create Now. An event alarm rule is created, as shown in the following figure.

    This rule monitors critical alarm events of AOM. When a service event meets the preset notification policy, the system sends an alarm notification to specified personnel by email or SMS.

    Figure 5 Event alarm rule

Related Operations

After creating an event alarm rule, perform the operations listed in Table 2 if needed.

Table 2 Related operations

Operation

Description

Editing an event alarm rule

Click Edit in the Operation column.

Deleting event alarm rules

  • To delete an event alarm rule, click Delete in the Operation column.
  • To delete one or more event alarm rules, select the check boxes before them and click Delete above the rule list.

Migrating event alarm rules

To migrate one or more event alarm rules, select the check boxes before them and click Migrate to AOM 2.0 above the rule list.

NOTICE:

Migration cannot be undone. Exercise caution when performing this operation.

Starting or stopping an event alarm rule

Click Start or Stop in the Operation column.

Searching for an event alarm rule

You can search for a rule by rule name, description, or metric name. Simply enter a keyword in the search box in the upper right corner and click .