This topic describes how ARMS reports alerts and sends alert notifications to DingTalk group chats. This helps you quickly use the Alert Management sub-service: create alerts, configure contacts, and receive the first alert card.

Step 1: Integrate monitored services

In this example, ARMS alerts are integrated. ARMS alerts are integrated with the Alert Management sub-service by default. For more information about how to integrate other monitored services with the Alert Management sub-service, see Overview.

Step 2: Create contacts

The Alert Management sub-service allows you to send alert notifications to contacts by SMS, phone, email, webhook, and DingTalk. This example shows how to create a DingTalk group chat by using the DingTalk Group Chat feature in the Alert Management sub-service to send alert notifications to a specified DingTalk group chat. For more information about how to create other contacts, see Overview.

  1. Create a custom chatbot in the DingTalk group that you created in your DingTalk client and obtain the webhook URL of the chatbot. For more information, see Obtain the webhook URL of a DingTalk chatbot.
  2. Log on to the ARMS console.
  3. In the left-side navigation pane, choose Alert Management > Notification Objects.
  4. On the Notification Objects page, click the DingTalk/Lark/WeCom tab. Then, click DingTalk.
  5. In the Create DingTalk Chatbot panel, configure the parameters and click OK. The following table describes the parameters.
    Parameter Description
    Name Specify a name for the DingTalk chatbot.
    Signature Key Optional. If you specify a signature key, DingTalk authentication is performed by using the signature key. If you do not specify a signature key, a whitelist is used for authentication by default. The keyword of the whitelist is Alert.
    Chatbot Webhook URL Enter the webhook URL of the DingTalk chatbot.
    Whether DingTalk Chatbot Sends Daily Statistics If you select this option, you must enter the points in time at which the daily statistics are sent. Separate multiple points in time with commas (,). Specify the points in time in the HH:SS format. The information that ARMS sends at the specified points in time includes the total number of alerts generated on the current day, the number of resolved alerts, and the number of alerts to be resolved.
    Card Content Configuration Customize the style and content of the alert notification card.

Step 3: Create notification policies

This example shows how to merge alert events with severity level P1 into one alert notification and send it to the DingTalk group chat. For more information, see the Create and manage a notification policy section in this topic.

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Alert Management > Notification Policies.
  3. On the Notification Policies page, click Create Notification Policy.
  4. On the right side of the page, enter a name for the notification policy in the Name field.
  5. In the Match Alert Event Rules section, perform the following operations:
    1. Select No Preset Source. The notification policy filters all alert events and sends notifications.
    2. Specify match expressions. You can add custom tags or select existing tags. For example, _aliyun_arms_alert_level equals P1.
  6. In the Event Handling section, perform the following operations:
    Dispatch-event handling
    1. Set Processing Method to Compress.
    2. Click Advanced Settings and set Event Group to Do Not Group.
    3. Select Automatically Clear Alert.
  7. In the When an alert is triggered, section, perform the following operations:
    Notification policy - When an alert is generated
    1. Set Contact to an existing DingTalk group chat.
    2. Set Notification Methods to DingTalk.
    3. Set Notification Period to 00:00-23:59.
    4. Set Method to Escalate Notifications to If the alert rule is not disabled, the system sends an alert notification every 4 hours. Alert notifications will be repeatedly sent within every 4 hours from 00:00 to 23:59 till the alert is cleared.
  8. Click Save.

Step 4: Create event rules

Different methods are used to create alert rules in different sub-services.

Step 5: View and manage alert cards

Alert cards in DingTalk group chats display basic information about alerts. You can modify the display content of alert cards by editing alert notification templates in notification policies. For more information, see the Manage alerts in a DingTalk group section in this topic.