Create alert rules in Real User Monitoring (RUM) to monitor specific user experience issues. When a rule is triggered, the system sends an alert notification to a specified alert contact or DingTalk group chat. This allows you to resolve the issue promptly.
Scenarios
Web & HTML5 application: You can configure static thresholds for web & HTML5 applications to monitor key performance metrics, such as Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS). If these metrics encounter anomalies, alerts are triggered to help you quickly locate and fix the anomalies, and improve user experience.
iOS and Android apps: You can configure static thresholds for iOS and Android apps to monitor key performance metrics, such as resource loading, API calls, crashes, and janks. Automatic reporting of abnormal stacks and crash logs helps you quickly locate and fix the anomalies and improve user experience.
Example:
After a new version of an app was released, the number of application janks significantly increased. In this case, you can configure a static threshold for the number of janks so that you can identify and fix them promptly, thus preventing more users from being affected.
Prerequisites
The application is monitored in RUM. For more information, see Integrate applications.
Configure interval detection
Log on to the ARMS console.
In the left-side navigation pane, choose , and then click Create Alert Rule.
On the Create Alert Rule page, enter an Alert Name, and set Alert Detection Type to Interval Detection.
In the Alert Contact section, select the application, metric type, and filter conditions.
In the Alert Rule section, set the Alert Triggering Mode (for example, Single Condition). Then, configure the alert condition, including the detection period (for example, the last 5 minutes), metric (for example, Exception Count), aggregation method (for example, Average), and condition (for example, Outside the dynamic threshold band). Set the alert level (for example, P1: critical) and adjust the tolerance. The system displays a preview of the metric trend and the dynamic threshold band in a line chart. From the Notification Policy drop-down list, select a notification method. After you complete the configuration, click Done.
Parameter
Description
Alert Application
Select the application for which you want to create the alert rule. Interval Detection supports only one alert rule per application.
Metric Type
Select the metric type to monitor. For more information, see RUM alert metrics.
After you select a metric type, the system automatically calculates the upper and lower boundaries and renders them in real time. You can preview the metric trend in the Alert Condition section.
NoteThe available condition fields and Filter Conditions depend on the selected Metric Type.
The initial rendering may take 2 to 4 seconds.
For information about how the upper and lower boundaries are calculated, see How dynamic thresholds work.
Filter Conditions
Filters the metric to narrow the monitoring scope.
You can use the following dimension operators for alert metrics:
Traverse: Matches all alerts for the current dimension.
= / !=: Specifies one or more values for an exact match or exclusion.
Contains / Does not contain: Specifies one or more values for a fuzzy match or exclusion.
NoteTo include dimension information in alert notifications, you must specify the corresponding filter condition. Otherwise, the dimension is aggregated in the metric query results.
In the Alert rules section, set the Alert Condition.
Parameter
Description
Alert Triggering Mode
Interval Detection supports only single-condition alerts. It does not support combinations of multiple trigger modes.
Alert Condition
Configure the alert trigger condition based on the selected metric type.
Detection Period: Select the detection window, for example, the last 5 minutes.
Alert Metric: Select the corresponding metric.
Trigger Condition: Specify the trigger condition, such as Greater Than or Equal To, Less Than or Equal To, Month-on-Month Increase/Decrease %, Hour-on-Hour Increase/Decrease %, or Day-on-Day Increase/Decrease %.
In the data preview area, the blue line represents the actual data points, and the green area represents the range between the upper and lower boundaries.
NoteYou can evaluate if the current threshold configuration is appropriate and check for past triggers by reviewing alert notifications. For more information, see View alert details.
Tolerance
Adjusts the width of the band based on the automatically calculated boundaries. A higher tolerance (move the slider to the right) creates a wider band, which makes the model less sensitive to metric fluctuations and triggers fewer alerts. A lower tolerance (move the slider to the left) creates a narrower band, which makes the model more sensitive and triggers more alerts.
Alert Level
The system provides four built-in alert levels. You can configure different notification policies for each level.
For example, you can configure P1 alerts to be sent by phone call and P2 or lower alerts to be sent to a DingTalk group chat.
P1: critical
P2: error
P3: warning
P4: info
Alert Quantity Prediction
Displays the number of times the metric is predicted to exceed the threshold within the selected time period. You can click a specific alert count to view the metric values that would have triggered an alert at historical time points.
We recommend using the alert quantity prediction feature when creating or modifying an alert rule. It analyzes historical data to forecast alerts, helping you fine-tune the threshold. For more information, see Alert quantity prediction.
Configure the Notification Policy and Advanced Alert Settings.
Parameter
Description
Notification Policy
Do not specify a notification policy: When an alert is triggered, no notification is sent. Notifications are sent only when a matching rule in a notification policy is triggered.
Specify a notification policy: When an alert is triggered, ARMS sends a notification by using the method defined in the specified notification policy. You can select an existing notification policy or create a new one. For more information, see Notification policies.
Advanced Alert Settings
No Data
This setting defines how to handle periods when no metric data is reported. You can configure the system to automatically resolve the alert by treating the value as 0 or 1, or to not trigger an alert at all.
For more information, see Glossary for Alert Management.
After you complete the settings, click Save.
View alert details
After you receive an alert notification, you can view the alert details in a or on the page of the ARMS console.
In the following scenarios, the Alert Event History page does not support redirection to the RUM module:
The alert conditions contain aggregation metrics, such as the number of anomalies, the number of resources, or the number of janks.
The alert conditions contain period-over-period comparison, such as Month-on-Month Increase %, Month-on-Month Decrease %, Hour-on-Hour Increase %, Hour-on-Hour Decrease %, Day-on-Day Increase %, or Day-on-Day Decrease %.
Alert Event History
On the Alert Event History page, click the name of an alert event. In the panel that appears, you can view details of the alert. For more information, see Alert event history.
The event details panel includes fields such as Event Name, Level, Description, Status, Object, Count, Start Time, End Time, URL, Integration Name, Integration Type, and Alert Type, as well as the Labels and Annotations tabs. A Retrospect Event Processing Flow link is available in the upper-right corner of the panel.
Click the URL of an event to go to the Data Exploration page of the RUM module to view the raw data that triggered the alert.
The page includes a quick filter panel on the left for filtering by application, app version, environment type, and more. The main area displays session statistics (user and session counts), a session trend chart, and a list of session details including session ID, time, client IP address, session duration, view count, anomaly count, and resource request count.
How the threshold range is calculated
The dynamic thresholds feature in ARMS primarily uses the Prophet algorithm. After you configure a dynamic thresholds task, ARMS runs in the background once every 24 hours to learn from the metric's historical data from the past 7 days. It extracts features such as trends and seasonality to generate a prediction curve for the next 24 hours. Based on the metric's own fluctuations (error variance), it estimates a range for the metric's data for the next day. When you configure a dynamic thresholds alert, you can preview the upper and lower boundaries calculated by the algorithm.
Unlike static threshold recommendations, you do not need to manually update the alert rule when business changes cause the metric's baseline to shift. This is because ARMS continuously learns the metric's characteristics once a day and predicts boundaries for only the next day. Therefore, you do not need to manually adjust the threshold multiple times.
Alert quantity prediction
The alert quantity prediction feature analyzes historical data to forecast the number of alerts that would have been triggered within a selected period and shows the exact time each alert would have occurred.
How it works
ARMS analyzes the last 24 hours of metric data to predict how many alerts your proposed threshold would have generated. ARMS also provides details showing the exact times the metric value would have exceeded the threshold. You can use this information to adjust thresholds to better fit your business needs.