You can create an alert rule for a web application, a mobile app, or a mini program that is monitored by the frontend monitoring feature. If the alert rule is triggered, Application Real-Time Monitoring Service (ARMS) sends alert notifications to the specified alert contacts or DingTalk groups by using the specified notification methods. This allows you to take necessary measures at the earliest opportunity.

Prerequisites

Your application is connected to ARMS frontend monitoring. For more information, see Browser monitoring overview.

Procedure

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Browser Monitoring > Frontend monitoring alarm rules.
  3. On the page that appears, click Create Browser Monitoring Alert Rule in the upper-right corner.
  4. On the page that appears, set the parameters as required and click Save.
    Parameter Description
    Alert name The name of the alert rule. Example: Web page-based metric alert.
    Alert application The application for which you want to configure the alert rule. You can select multiple applications.
    When you create an application, it is automatically appended to this alert rule Specifies whether to apply this alert rule to a newly monitored application.
    Indicator Type The one or more dimensions of the metrics based on which the alert rule monitors the application. Valid values:
    • Custom_Query: You can select metrics from different dimensions.
    • Page_API_Metric: Page and API.
    • Custom_Statistics_Metric: custom keys.
    • Page_Metric: Page.
    • API_Metric: API.
    Note The condition configuration available for an alert rule varies based on the metric dimension.
    Metric configuration
    • Set Filter Conditions: the expression that is used to filter the data to which alert conditions are applied.
      Note
      • To use values for filtering that have an OR relationship, you can use Belong To or Not Belong To in the expression. Separate multiple values with commas (,). Example: API Belong To api1,api2,api3.
      • To use multiple filter expressions, click the + icon
    • Select Aggregation Dimension: the one or more dimensions of metrics. If you set the Indicator Type parameter to a value other than Custom_Query, one or more dimensions are automatically selected for this parameter. If you set the Indicator Type parameter to Custom_Query, you must manually select a dimension.
    • Select Metric: This parameter is displayed if you set the Indicator Type parameter to Custom_Query. The metrics that you select for this parameter are used to configure alert conditions.
    Alert trigger rules
    • Specifies how the alert rule is triggered. Valid values: At the same time meet the following rules: The alert rule is triggered when all alert conditions are met.
    • Meet one of the following rules: The alert rule is triggered when one of the alert conditions is met.
    Alert conditions The alert conditions used to trigger the alert rule. To configure an alert condition, click Add condition. Example: Recently 10 Minutes JS_Error_Rate AVG Greater than or equal 20%. Then, click the Confirm icon icon on the right.
    Note
    • The metrics that can be used in alert conditions vary based on the specified dimensions.
    • To edit an alert condition, click the Edit icon icon on the right of the alert condition.
    • To preview the statistics on the metric used in an alert condition, click the Zoom In icon icon on the right of the alert condition.
    • To delete an alert condition, click the Delete icon icon on the right of the alert condition.
    • To configure multiple alert conditions, click Add condition.
    Notification policy
    • The notification policy of the alert rule. If you do not specify a notification policy, no alert notification is sent if the alert rule is triggered. An alert notification is sent only when the dispatch rule of a notification policy is triggered.
    • You can also specify a notification policy. In this case, if the alert rule is triggered, ARMS sends alert notifications based on the notification method specified in the notification policy. You can use an existing notification policy or create a notification policy.
      Note To view the details of the selected notification policy, click See.
    Advanced alert settings
    Alert data revision policy The mode in which to fix anomalies in data, including no data, abnormal composite metrics, and abnormal period-over-period comparisons. If the value of a monitored metric does not meet the specified alert condition, you can use this feature to adjust the value to 0, 1, or null. Valid values:
    • Fill 0: adjusts the value to 0.
    • Fill 1: adjusts the value to 1.
    • Fill Null: does not trigger the alert rule.

Manage alert rules

On the Browser Monitoring Alert Rule page, you can enable, disable, edit, and delete an alert rule. You can also view the details of an alert rule.

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Browser Monitoring > Frontend monitoring alarm rules.
  3. Optional:On the page that appears, enter an alert rule name in the search box and click the Search icon.
    Note You can enter part of an alert name in the search box to perform a fuzzy search.
  4. Perform the following operations on an alert rule based on your business requirements:
    Frontend monitoring: List of alert rules
    • To edit an alert rule, click Editing in the Operation column. On the page that appears, edit the alert rule and click Save.
    • To delete an alert rule, click Delete in the Operation column. In the message that appears, click OK.
    • To enable a disabled alert rule, click Start in the Operation column. In the message that appears, click OK.
    • To disable an alert rule that is in effect, click Stop in the Operation column. In the message that appears, click OK.
    • To view the alert event history and notification sending history of an alert rule, click Alarm history in the Operation column. On the page that appears, click the Alert Event History and Alarm Post History tabs to view the history.
      Note
      • On the Alert Event History tab, you can view the alert events that are generated after the alert rule is triggered. If an alert event does not meet the dispatch rules of existing notification policies, no alert notification is sent.
      • On the Alarm Post History tab, you can view the records of alert notifications that are sent after an alert event meets the dispatch rule of a notification policy.