Updated on 2025-08-26 GMT+08:00

Configuring a Monitoring Alarm Rule

You can configure HSS alarm rules to customize the monitored objects and notification policies, and set parameters such as the alarm rule name, monitored object, threshold, monitoring period, and whether to send notifications. This helps you learn the HSS protection status in a timely manner.

You can use Cloud Eye to monitor HSS metrics and events. This section describes how to create alarm rules for monitoring metrics and events.

Creating an Alarm Rule for Metric Monitoring

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. Hover your mouse over in the upper left corner of the page and choose Management & Governance > Cloud Eye.
  4. In the navigation pane on the left, choose Alarm Management > Alarm Rule.
  5. In the upper right corner of the page, click Create Alarm Rule.
  6. Enter the alarm rule information as prompted. For more information, see Table 1.

    Figure 1 Alarm rule for metric monitoring
    Table 1 Parameters for creating an alarm rule for metric monitoring

    Parameter

    Description

    Example Value

    Name

    Alarm rule name. The system generates a random name, and you can change it if needed.

    alarm-hss

    Description

    Alarm rule description. This parameter is optional.

    -

    Alarm Type

    Type of the alarm rule. The value can be Metric or Event.

    Metric

    Cloud Product

    Select the cloud product you want to monitor. This parameter is available only when you set Alarm Type to Metric.

    In the drop-down list, select Host Security Service - Host Security or Host Security Service - Server.

    • Host Security Service - Host Security: The monitoring metrics of an enterprise project, including Total Servers, Unprotected Servers, Unsafe Servers, and Servers Without Agent Running.
    • Host Security Service - Server: The monitoring metrics of servers, including Protection Status and Agent Status.

    Host Security Service - Host Security

    Resource Level

    Resource level of the monitored object.

    The resource level of the alarm rule. This parameter is available only when you set Alarm Type to Metric. You can select Cloud product or Specific dimension. Cloud product is recommended.

    Cloud product

    Monitoring Scope

    Monitoring scope the alarm rule applies to.

    • All resources: An alarm will be triggered if a resource of the current cloud product meets the alarm policy. To exclude resources that do not need to be monitored, click Select Resources to Exclude.
    • Resource groups: An alarm will be triggered if any resource in the resource group meets the alarm policy. To exclude resources that do not need to be monitored, click Select Resources to Exclude.
    • If you select Specific resources, click Select Specific Resources and select resources.

    All resources

    Method

    Select Associate template or Configure manually.

    NOTE:

    After an associated template is modified, the policies contained in this alarm rule to be created will be modified accordingly.

    Configure manually

    Alarm Policy

    Set this parameter if Method is set to Configure manually.

    For details about how to create a custom template, see Creating a Custom Template.

    -

    Alarm Notifications

    Set whether to send notifications when alarms are triggered. Notifications can be sent by email, text message, or HTTP/HTTPS message.

    Enabled

    Notified By

    Set the method and recipients of alarm notifications.

    Notification policies

  7. Click Create. In the displayed dialog box, click OK.

Creating an Alarm Rule for Event Monitoring

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. Hover your mouse over in the upper left corner of the page and choose Management & Governance > Cloud Eye.
  4. In the navigation pane on the left, choose Alarm Management > Alarm Rule.
  5. In the upper right corner of the page, click Create Alarm Rule.
  6. Enter the alarm rule information as prompted. For more information, see Table 2.

    Figure 2 Alarm rule for event monitoring
    Table 2 Parameters for creating an event rule for metric monitoring

    Parameter

    Description

    Example Value

    Name

    Alarm rule name. The system generates a random name, and you can change it if needed.

    alarm-hss

    Description

    Alarm rule description. This parameter is optional.

    -

    Alarm Type

    Type of the alarm rule. The value can be Metric or Event.

    Event

    Event Type

    Set this parameter if Alarm Type is set to Event. You can select System event or Custom event.

    Host Security Service - Host Security

    Event Source

    Set this parameter if Alarm Type is set to Event.

    • If Event Type is set to System event, select the cloud service that generates the event from the drop-down list.
    • If Event Type is set to Custom event, the event source must be the same as the reported field and written in the <Service>.<Item> format.

    System event

    Method

    Select Associate template or Configure manually.

    NOTE:

    After an associated template is modified, the policies contained in this alarm rule to be created will be modified accordingly.

    Configure manually

    Alarm Policy

    Set this parameter if Method is set to Configure manually.

    For details about how to create a custom template, see Creating a Custom Template.

    -

    Alarm Notifications

    Set whether to send notifications when alarms are triggered. Notifications can be sent by email, text message, or HTTP/HTTPS message.

    Enabled

    Notified By

    Set the method and recipients of alarm notifications.

    Notification policies

  7. Click Create. In the displayed dialog box, click OK.