How to configure routing rules
This document describes how to configure routing rules.
Add a routing rule
Prerequisite: The monitoring source for the routing rule has been integrated, and the required metrics are configured.
Log on to the Event Center console.
In the navigation pane on the left, choose .
Click Add Rule.
On the Add Rule page:
Configure the trigger conditions. Set the Rule Name, Trigger Rule (select a monitoring source and key), and Service Name.
Configure convergence rules for triggered alerts and events, and set notification/dispatch rules.
Configure trigger conditions
Set Rule Name: Enter a custom Rule Name that briefly describes the purpose of the rule. The name can be up to 64 characters long and must be unique.
Select the service to associate with the routing rule. For more information about how to add a service, see Add a service.
Configure the trigger rule
Trigger Type: Select a trigger type based on the alert severity.
Configure sub-rules: You can configure one to five sub-rules for a routing rule. The data for all sub-rules must come from the same monitoring source. The routing rule is triggered only when the condition for all or any of the sub-rules is met.
Alert Field: Set the alert condition by specifying the values that the key must contain, not contain, be equal to, or not be equal to.
Monitoring Source: Select an integrated monitoring source. Different sub-rules can use the same monitoring source.
Configure a denoising rule: If you configure multiple sub-rules, you can set a time window to implement alert denoising. A time window setting appears at the bottom of the rule conditions. The maximum time is 1,440 minutes. The only supported time unit is minutes.
Alert source: Trigger events, alerts, and incidents
The following rules apply only to monitoring sources such as Prometheus, JD Cloud Monitor, and Alibaba Cloud CloudMonitor. These rules do not apply to Business Monitoring.
On the Add Rule page, select a Trigger Rule type. If you select Trigger alert only, configure the Alert trigger rule, Priority, and Default notification recipient. If you select Trigger event, configure the Event trigger rule, Priority, Impact level, and Default dispatch recipient. If you select Trigger incident, configure the affected services and incident level override. After you complete the configuration, click Submit.
Trigger alert only:
Define the Alert trigger rule: Set a duration and a number of occurrences to converge and denoise alerts. For example, to trigger an alert only if a rule is triggered three times within five minutes, you can set the duration to 5 minutes and the number of occurrences to 3.
Alert priority: Select an alert level from P1 to P4. P1 is the highest priority and P4 is the lowest.
Default notification recipient: Specify the default recipient for notifications when the routing rule is triggered. You can dispatch notifications to a service group or an individual.
Default notification channel: Specify the default notification method for the dispatched recipient when the routing rule is triggered. If the recipient is a service group, you can select multiple notification channels, such as Group notification, Text message, Phone call, Email, and Mobile app personal notification. If the recipient is an individual, the available notification channels are Text message, Phone call, Email, and Mobile app personal notification.
Trigger event:
Define the Event trigger rule: Set a duration and a number of occurrences to converge and denoise events. For example, to trigger an event only if a rule is triggered three times within five minutes, you can set the duration to 5 minutes and the number of occurrences to 3.
Event priority: Select an event level. P1 is the highest priority and P4 is the lowest.
Impact level: Select the event impact level, either High or Low.
Default dispatch recipient: Specify the default recipient for dispatches when the routing rule is triggered. You can dispatch to a service group or an individual.
Configure notification channel: Specify the default notification method for the dispatched recipient when the routing rule is triggered. If the recipient is a service group, you can select multiple notification channels, such as Group notification, Text message, Phone call, Email, and Mobile app personal notification. If the recipient is an individual, the available notification channels are Text message, Phone call, Email, and Mobile app personal notification.
Initiate incident response
Define the Incident trigger rule: Set a duration and a number of occurrences to converge and denoise incidents. For example, to trigger an incident only if a rule is triggered three times within five minutes, you can set the duration to 5 minutes and the number of occurrences to 3.
Affected services: Set the scope of impact for the incident. These are the related services that are affected when the incident is triggered.
Incident level: Select an incident level from P1 to P4. P1 is the highest priority and P4 is the lowest.
Default notification recipient: Specify the default recipient for notifications when the routing rule is triggered. You can dispatch notifications to a service group and an individual.
Default notification channel: Specify the default notification method for the dispatched recipient when the routing rule is triggered. If the recipient is a service group, you can select multiple notification channels, such as Group notification, Text message, Phone call, Email, and Mobile app personal notification. If the recipient is an individual, the available notification channels are Text message, Phone call, Email, and Mobile app personal notification.
Escalation rule: Configure an automatic incident escalation rule. An automatic escalation policy is triggered if an incident persists for a specified duration. For example, a P3 incident that remains unresolved for 60 minutes is automatically escalated to P2. Incidents can only be escalated one level at a time. You cannot skip levels.
Business Monitoring source: Trigger events, alerts, and incidents
The following rules apply only to Business Monitoring sources. When you configure a routing rule, alert data is filtered by the associated service. Therefore, you must ensure that the service associated with the routing rule is the same as the service associated with Business Monitoring.
In Event Center, Business Monitoring data undergoes data cleansing, analysis, and alert matching. The data is then output in a standard data format and sent to routing rules, where you can define custom event and incident levels.
Business Monitoring alert data includes the following information: Metric ID, Metric Name, Alert Level, and Alert Details.
Metric ID: The ID of the metric that is the source of the alert information. This ID is used to trace the monitoring data of the metric.
Metric Name: The name of the metric. You can use this name to create event or incident routing rules based on the metric.
Alert Level: Notice, Warning, Critical, or Fatal. These levels can be mapped one-to-one with event or incident levels P4 through P1.
Alert Details: The metric that triggered the alert, the trigger condition, and the current metric value.
Alert Trigger Time: The time when Business Monitoring triggered the alert.
When you configure a routing rule for a Business Monitoring source, the alarmId field is required. We recommend that you map the alarmLevel values (Notice, Warning, Critical, and Fatal) one-to-one with the event or incident levels. This mapping helps trace notification messages back to the original metric and monitoring metric.
Edit a routing rule
You can modify an existing routing rule by clicking Edit in the Actions column on the Routing Rules page. The routing rule name must be unique.
Enable or disable a routing rule
On the Routing Rules page, you can click Enable/Disable in the Actions column. When a rule is enabled, it triggers a corresponding alert or event if its conditions are met. When a rule is disabled, the received raw alert data does not trigger an event or alert.
Delete a routing rule
How to delete: On the Routing Rules page, you can click Delete in the Actions column. After the rule is deleted, it no longer triggers events or alerts.
Deletion condition: A routing rule cannot be deleted if it is disabled.