Updated on 2024-08-05 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 by referring to Creating an Alarm Action Rule.

Procedure

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Alarm Management > Alarm Rules.
  3. Click Create Alarm Rule.
  4. Set basic information about the alarm rule by referring to Table 1.

    Table 1 Basic information

    Parameter

    Description

    Rule Name

    Name of a rule. Enter a maximum of 256 characters and do not start or end with any special character. Only letters, digits, underscores (_), and hyphens (-) are allowed.

    Enterprise Project

    Enterprise project.

    • If you have selected All for Enterprise Project on the global settings page, select one from the drop-down list here.
    • If you have already selected an enterprise project on the global settings page, this option will be grayed and cannot be changed.
      NOTE:

      To use the enterprise project function, contact engineers.

    Description

    Description of the rule. Enter up to 1,024 characters.

  5. Set the detailed information about the alarm rule.

    1. Set Rule Type to Event alarm rule.
    2. Specify an event type and source.
      • If Event Type is set to System, Event Source can only be CCE or ModelArts.
      • If Event Type to set to Custom, select an event source from the existing service list.
    3. Set alarm rule details.
      Table 2 Alarm rule parameters

      Parameter

      Description

      Monitored 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.

      NOTE:

      Set Event Name as the filter criterion. If no event name is selected, all events are selected by default.

      Alarm Condition

      Condition for triggering event alarms. It contains:

      • Event Name: The value varies depending on Monitored Object. If you do not specify any event for Monitored Object, all events are displayed here and cannot be changed.
      • Trigger Mode: trigger mode of an event alarm.
        • Accumulated Trigger: When the trigger condition is met for a specified number of times in a monitoring period, alarm notifications are sent based on the preset interval.

          Assume that you set Event Name to VolumeResizeFailed, Monitoring Period to 20 minutes, Cumulative Times to ≥ 3, and Alarm Frequency to Every 5 minutes. If data volume scale-out fails for 3 or more times within 20 minutes, an alarm notification will be sent every 5 minutes unless the alarm is cleared.

          NOTICE:

          If you have selected Alarm noise reduction when setting the alarm notification policy, the alarm frequency set here does not take effect. Alarm notifications are sent at the frequency set during noise reduction configuration.

        • Immediate Trigger: An alarm is immediately generated when the trigger condition is met.
      • Alarm Severity: includes Critical, Major, Minor, and Warning.

      In case of multiple events, click Batch Set to set alarm conditions for these events in batches.

  6. Set an alarm notification policy. There are two alarm notification modes. Select one as required.

    • Direct alarm reporting: An alarm is directly sent when the alarm condition is met.

      Set whether to enable the alarm action rule as required. 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 in the drop-down list to create one. For details about how to set an alarm action rule, see Creating an Alarm Action Rule.

    • 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 in the drop-down list to create one. For details, see Creating a Grouping Rule.

  7. Click Confirm. Then click Back to Alarm Rule List to view the created alarm rule.

    When CCE resources meet the configured event alarm conditions, an event alarm will be generated on the alarm page. To view the alarm, choose Alarm Management > Alarm List in the navigation pane. The system also sends alarm notifications to specified personnel by email or SMS.