Synthetic Monitoring allows you to specify alert conditions in the alert rules created for synthetic monitoring tasks. If a specified alert condition is met, an alert event is generated. To receive alert notifications, you must configure notification policies. Alert notifications can be sent by using text messages, emails, phone calls, DingTalk chatbots, WeCom chatbots, or webhooks.
Create an alert rule
Log on to the ARMS console.
In the left-side navigation pane, choose Synthetic Monitoring > Scheduled Tests. On the Synthetic Tasks page, find the task that you want to manage and click Alert in the Actions column.
In the Alarm rules for the cloud test task panel, click Create alarm rules.
In the Create Cloud Dial Test Alarm panel, configure the following parameters:
Parameter
Description
Alert Rule Name
The name of the alert rule.
Task ID
The ID of the current synthetic monitoring task is entered by default.
Alert Contact Group
The alert contact group. Select an alert contact group from the drop-down list.
The supported alert groups vary based on the task type.
Alert Metric
The metric that you want to monitor. Different alert groups provide different metrics.
Alert Condition
The conditions based on which alert events are generated.
Filter Conditions
The application scope of the alert rule. If a resource meets the filter condition and the alert condition, an alert event is generated.
Valid values:
Traverse: The alert rule applies to all resources in the current task. By default, Traverse is selected.
Equal To: 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 To: 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 the resource name. The alert rule 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 the resource name. The alert rule applies to resources that do not match the regular expression.
NoteAfter 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 the threshold is reached at a data point, an alert event is generated.
If the alert condition is met continuously for N minutes, an alert event is generated: An alert event is generated only if the time period during which the threshold is reached is greater than or equal to N minutes.
Alert Level
The severity level of the alert. Valid values: Default, P4, P3, P2, and P1. The values are listed in ascending order by severity.
Alert Message
The alert message that you want to send to the specified contacts. You can customize variables in the alert message based on the Go template syntax. For more information, see Go template syntax.
Alert Notification
Simple Mode: You can specify the notification method by configuring the Notification Objects, Notification Period, and Whether to Resend Notifications parameters. For more information about how to create a notification object, see Notification objects.
Standard Mode: You can specify the notification method by configuring the Specify Notification Policy parameter. For more information about how to create a notification policy, see Create and manage a notification policy.
Do Not Specify Notification Policy: 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 Data Source to ARMS - Synthetic Monitoring. This way, the notification policy matches only the alerts generated in Synthetic Monitoring.
You can also select a notification policy from the drop-down list. Synthetic Monitoring automatically adds a match rule to the selected notification policy and specifies the ID of the alert rule as the match condition. The name of the alert rule is displayed on the Notification Policy page. This way, the alert events that are generated based on the alert rule can be matched by the selected notification policy.
ImportantAfter 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. However, 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.
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.
Tags
Specify tags for the alert rule. The specified tags can be used to match notification policies.
Annotations
Specify annotations for the alert rule.
Click Completed.
In the Alarm rules for the cloud test task panel, you can view the status of the alert rule.
Manage an alert rule
In the Alarm rules for the cloud test task panel, you can enable, disable, modify, delete, and view the details of alert rules.
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 Test Alarm panel, modify the alert rule and click Completed.
To delete an alert rule, click Delete. In the Note message, click OK.
To enable an alert rule, click Start. In the Note message, click OK.
To disable an alert rule, click Stop. In the Note message, click OK.
References
After an alert is triggered, you can log on to the Application Real-Time Monitoring Service (ARMS) console to view the alert event. In the left-side navigation pane, choose View historical alert events.
. For more information, seeAfter you receive an alert notification, you can log on to the ARMS console to claim, clear, or block the alert, or specify a handler for the alert. In the left-side navigation pane, choose View historical alerts.
. For more information, see