All Products
Search
Document Center

Application Real-Time Monitoring Service:Alert configuration

Last Updated:Apr 15, 2024

After you create an alert rule, when an alert is triggered, the system sends an alert notification to the alert contact or DingTalk Group by using the specified notification method. This way, you can take necessary actions to protect your applications.

Create an alert rule

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Synthetic Monitoring > Scheduled Tests. On the Synthetic Tasks page, click Alerts in the Actions column.

  3. In the Alert Rules panel, click Create alarm rules.

  4. In the Create Cloud Dial Test Alarm panel, set the following parameters.

    Item

    Description

    Alert Rule Name

    The name of the alert rule.

    Task ID

    The ID of the current dialing task has been entered by default.

    Alert Contact Group

    Select an alert contact group.

    Different task types support different alert groups.

    Alert Metric

    Select the metric that you want to monitor by using the alert rule. Different alert contact groups provide different metrics.

    Alert Condition

    Specify the conditions based on which alert events are generated.

    Filter Conditions

    Specify the applicable scope of the alert rule. If a resource meets both the filter condition and the alert condition, an alert event is generated.

    The following types of filter conditions are supported:

    • Traverse: The alert rule applies to all resources in the current task. By default, Traverse is selected.

    • Equal: If you select this filter condition, you must enter a resource name. The alert rule applies only to the specified resource. You cannot specify multiple resources at the same time.

    • Not equal: If you select this filter condition, you must enter a resource name. The alert rule applies to resources other than the specified resource. You cannot specify multiple resources at the same time.

    • Regex match: If you select this filter condition, you must enter a regular expression to match resource names. The alert rule that you create by using the template applies to all resources that match the regular expression.

    • Regex not match: If you select this filter condition, you must enter a regular expression to match resource names. The alert rule applies to resources that do not match the regular expression.

    Note

    After you set the filter conditions, the Data Preview section appears.

    Data Preview

    Displays the values of the metrics configured for the current alert rule in time series curves.

    Duration

    • If the alert condition is met, an alert event is generated: If a data point reaches the threshold, an alert event is generated.

    • If the alert condition is continuously met for N minutes, an alert event is generated: An alert event is generated only if the duration for which the threshold is reached is greater than or equal to N minutes.

    Alert Level

    Specify the severity level of the alert. Valid values: Default, P4, P3, P2, and P1. The preceding values are listed in ascending order by severity.

    Alert Message

    Specify the alert message that you want to send to the end users. You can specify custom variables in the alert message based on the Go template syntax. For more information, see Go Template.

    Advanced Settings

    Alert Check Cycle

    An alert rule is triggered every N minutes to check whether the alert conditions are met. Default value: 1. Minimum value: 1.

    Specify Notification Policies

    • Do Not Specify Notification Policies: If you select this option, you can create a notification policy on the Notification Policy page after you create the alert rule. On the Notification Policy page, you can specify match rules and match conditions. For example, you can specify an alert rule name as the match condition. When the alert rule is triggered, an alert event is generated and an alert notification is sent to the contacts or contact groups that are specified in the notification policy. For more information, see Create and manage a notification policy.

      When you create a notification policy, you can set the Data Source field to ARMS-Cloud Dial Test. This way, the notification policy only matches alerts generated by ARMS-Cloud Dial Test.

    • Specify a notification policy: If this option is selected, Cloud Dial Test automatically adds a matching rule to the corresponding notification policy. The matching rule content is an alert rule ID (displayed in the form of an alert rule name) to ensure that the alert events generated by the current alert rule can be matched by the selected notification policy.

    Important

    After you select a notification policy, the alert events that are generated based on the alert rule can be matched by the notification policy and alerts can be generated. The alert events may also be matched by other notification policies that use fuzzy match, and alerts may be generated. One or more alert events can be matched by one or more notification policies.

    Tags

    Specify tags for the alert rule. The specified tags can be used to match notification policies.

    Annotations

    Specify annotations for the alert rule.

  5. Click Save.

    In the Alert Rule panel, you can view the status of the alert rule.

Manage an alert rule

In the Alert Rule panel, you can enable, disable, modify, delete, and view alert details.

Perform the following operations on an alert rule by using the options in the Actions column based on your business requirements:

  • To edit an alert rule, click Edit. On the Edit Cloud Dial-up Alert page, edit the alert rule and click Save.

  • To delete an alert rule, click Delete. In the Confirm message, click OK.

  • To enable an alert rule, click Start. In the Confirm message, click OK.

  • To disable an alert rule, click Stop. In the Confirm message, click OK.