Help Center/ ServiceStage/ User Guide (Kuala Lumpur Region)/ Component Management/ Component O&M/ Configuring Alarm Thresholds for Resource Monitoring
Updated on 2024-01-22 GMT+08:00

Configuring Alarm Thresholds for Resource Monitoring

When a component is deployed in the Kubernetes environment, if you need to monitor some resources and respond to exceptions in a timely manner, you can create threshold rules for metrics of these key resources, so that you can find and handle exceptions in time.

  • If the metric meets the threshold conditions within a specified period, the system sends a threshold alarm.
  • If no metric is reported within a specified period, the system sends a data insufficiency event.
  • If you cannot query the change information about the threshold rule status on the ServiceStage console due to non-business hours or business trips, you can enable the notification function to send the change information to related personnel through SMS messages or emails.

Procedure

  1. Log in to ServiceStage.
  2. Use either of the following methods to go to the Threshold Alarms page.

    • On the Application Management page, click the application to which the component belongs, and click the target component in Component List. In the left navigation pane, choose O&M Configurations > Threshold Alarms.
    • On the Component Management page, click the target component. In the left navigation pane, choose O&M Configurations > Threshold Alarms.

  3. Click Set Threshold Rule and set threshold rule parameters by referring to Table 1. Parameters marked with an asterisk (*) are mandatory.

    Table 1 Threshold rule parameters

    Parameter

    Description

    *Threshold Name

    Name of the threshold rule to be added.

    NOTE:

    The name must be unique and cannot be modified once specified.

    Description

    Description about the threshold rule.

    Statistic Method

    Method used to measure metrics.

    Statistical Periods

    Interval at which metric data is collected.

    Metric

    Select the metrics to be monitored.

    *Threshold Condition

    Trigger of a threshold alarm. A threshold condition consists of two parts: operators (≥, ≤, >, and <) and threshold value.

    For example, if this parameter is set to ≥ 80, the system generates a threshold alarm when the metric is greater than or equal to 80.

    Consecutive Periods

    When the metric meets the threshold condition for a specified number of consecutive periods, a threshold alarm will be generated.

    Alarm Severity

    Severity of the threshold alarm.

    Send Notifications

    Whether to send notifications.

    • If you select Yes (recommended), the system sends an email or SMS message to the user.
    • If you select No, the system does not send an email or SMS message to the user.

    *Topic Name

    If you select Yes for Send Notifications, select a topic and click ▲.

    For details about how to create a topic, see Creating a Topic.

    *Trigger Condition

    Trigger condition for sending a notification when Send Notification is set to Yes.

    • An alarm occurred: When a threshold alarm is generated, the system sends a notification to a specified user by email or SMS message.
    • The alarm is cleared: When the alarm is cleared, the system sends a notification to a specified user by email or SMS message.
    • Insufficient: When no metric is reported, the system sends a notification to a specified user by email or SMS message.

  4. Click OK.

Follow-Up Operations

After a threshold rule is created, you can manage threshold alarms by referring to Table 2.

Table 2 Operations related to threshold alarm management

Operation

Description

Modify a Threshold Alarm

When you find that the current threshold rule is not properly set, you can perform the following operations to modify the threshold rule to better meet your service requirements.

  1. Click Modify in the Operation column of the threshold alarm list.
  2. On the Modify Threshold Rule page, modify the parameters of the threshold rule as prompted.
  3. Click Modify.

Delete a Threshold Alarm

When you find that the current threshold rule is no longer needed, you can perform the following operations to delete the threshold rule to release more threshold rule resources.

  1. Delete one or multiple threshold rules.
    • To delete a single threshold, click Delete in the Operation column of the threshold rule list.
    • To delete threshold rules in bathes, select one or more threshold rules and click Delete on the upper part of the page.
  2. In the displayed dialog box, click OK.

Search for Threshold Alarms

  1. Select a time segment from the drop-down list.
  2. Enter the keyword of the alarm name or description in the search box on the upper right corner of the page.
  3. Click or press Enter.

    Alternatively, click Advanced Search, set the search criteria, and click Search.

View Threshold-Crossing Alarms

If the metric meets the threshold conditions within a specified period, the system sends a threshold alarm.

View the alarm in the threshold alarm list.

View Alarm History

Click History in the Operation column of the threshold rule list to view historical alarms.

Check the data insufficiency event.

If no metric is reported within a specified period, the system sends a data insufficiency event.

You can view the event on the Event page. For details, see Viewing the Component Running Events.