Help Center/ ServiceStage/ User Guide/ Component Management/ Component O&M/ Configuring Alarm Thresholds for Resource Monitoring
Updated on 2024-12-16 GMT+08:00

Configuring Alarm Thresholds for Resource Monitoring

When a component is deployed based on a container, 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, you can enable the notification function to send the change information to related personnel through SMS messages or emails.

Configuring Alarm Thresholds for Resource Monitoring

  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, click the target component in Component List, and choose O&M Configurations > Threshold Alarms in the left navigation pane.
    • On the Component Management page, click the target component and choose O&M Configurations > Threshold Alarms in the left navigation pane.

    If the component is created by Creating a Component by Importing a CCE Workload and is not enabled:

    1. In the displayed dialog box, click OK.
    2. On the Enable Component page, click Enable and wait until the component is restarted.

  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 a threshold rule. Enter up to 255 characters.

    NOTE:

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

    Description

    Description. Enter up to 255 characters.

    Statistic Method

    Method used to measure metrics. Options: Average, Minimum, Maximum, Sum, and Samples.

    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 a threshold alarm. Options: Critical, Major, Minor, and Warning.

    Send Notifications

    Whether to send notifications.

    • If you select Yes (recommended), SMN will send notifications to you when a threshold alarm is triggered and you will be billed for the SMN service.
    • If you select No, no notifications will be sent to you.

    *Topic Name

    If Send Notification is set to Yes, select a created topic.

    A topic is a specified event to publish messages and subscribe to notifications. It serves as a message transmission channel between publishers and subscribers.

    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.

  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 Component Running Events.