After you add the webhook URL of a Lark bot to an existing alert contact in a Lark group, the alert contact can receive alert notifications.

Prerequisites

An alert contact is created. For more information, see Create an alert contact or alert contact group.

Step 1: Create a Lark bot

This topic describes how to create a Lark bot in Lark for PC.

  1. Start Lark for PC and go to the Lark group to which the alert contact that you want to receive alert notifications belongs.
  2. Click the Settings icon in the lower-right corner.
  3. Click Add Bot.
  4. Click Add next to Custom Bot.
  5. Enter a bot name, for example, CloudMonitor alert notifications. Then, click Add.
  6. Click Copy to copy the webhook URL.
  7. Select Set keywords and add the following keywords: CloudMonitor, Cloud Service, Monitor, ECS, and Alert.
  8. Click Finish.

Step 2: Add the webhook URL of the Lark bot to an alert contact

Add the webhook URL of the Lark bot to an alert contact.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Contacts.
  3. On the Alert Contacts tab, find the alert contact that you want to modify and click Edit in the Actions column.
  4. In the Set Alert Contact panel, enter the webhook URL of the Lark bot.
  5. Confirm the parameter values and click OK.

Step 3: Create an alert contact group

Add the alert contact to an alert contact group.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Contacts.
  3. Click the Alert Contact Group tab.
  4. On the Alert Contact Group tab, click Create Alert Contact Group.
  5. In the Create Alert Contact Group panel, enter a name for the alert contact group and add the alert contact to the group.
  6. Click Confirm.

Step 4: Configure an alert rule

When you configure the alert rule, you must select the alert contact group that you created. If the value of a resource metric reaches the specified alert threshold, alerts are triggered and CloudMonitor sends alert notifications to the Lark group. For more information about how to configure the parameters of an alert rule, see Create an alert rule. Configure an alert rule based on which alert notifications are sent to the specified Lark group.