After you add the webhook URL of a DingTalk chatbot, EDAS can send alert notifications to the related DingTalk group. This increases your O&M efficiency and enables you to know alert events at the earliest opportunity.

Add a custom DingTalk chatbot and obtain its webhook URL

  1. Run the DingTalk client on a PC, go to the DingTalk group to which you want to add an alert chatbot, and then click the Group Settings icon in the upper-right corner.
  2. In the Group Settings panel, click Group Assistant.
  3. In the Group Assistant panel, click Add Robot.
  4. In the ChatBot dialog box, click the + icon in the Add Robot card. Then, click Custom. Add Robot
  5. In the Robot details dialog box, click Add.
  6. In the Add Robot dialog box, edit the profile picture, enter a chatbot name, and then select at least one of the options in the Security Settings section. Read and select I have read and accepted DingTalk Custom Robot Service Terms of Service. Click Finished. Add Robot
  7. In the Add Robot dialog box, click Copy to save the webhook URL of the chatbot and then click Finished. Add Robot

Create a contact

  1. Log on to the Enterprise Distributed Application Service (EDAS) console.
  2. In the left-side navigation pane, click Applications. In the top navigation bar, select the region where the application whose alert rules you want to manage is deployed. In the upper part of the Applications page, select the namespace where the application is deployed.
  3. On the Applications page, select Container Service or Serverless Kubernetes Cluster from the Cluster Type drop-down list, and then click the name of the application for which you want to create a contact.
  4. In the left-side navigation pane, choose Alerts > Contacts.
  5. On the Contact tab, click New contact in the upper-right corner.
  6. In the New contact dialog box, set Name, enter the obtained webhook URL of the DingTalk chatbot in the DingTalk robot field, select Whether to receive system notifications as needed, and then click OK.

Create an alert group

  1. In the left-side navigation pane, choose Alerts > Contacts.
  2. On the Contact Group tab, click Create a contact group in the upper-right corner.
  3. In the Create a contact group dialog box, set Group name, set Alarm contact to the created DingTalk chatbot, and then click OK.

Create an alert

  1. In the left-side navigation pane, choose Alerts > Alert History.
  2. On the Alarm Policies page, click Create Alarm in the upper-right corner.
  3. In the Create Alarm dialog box, set related parameters and click Save.
    1. Set Alarm Name. For example, you can enter the alert on JVM-GC times in period-over-period comparison.
    2. From the Application Site drop-down list, select an application. From the Application Group drop-down list, select a group.
    3. From the Type drop-down list, select a type of metric. For example, you can select JVM_Monitoring.
    4. Set Dimension to Traverse.
    5. Configure an alert rule.
      1. Select Meet All of the Following Criteria.
      2. Create an alert rule. For example, an alert is triggered when the average value of JVM_FullGC within the last 5 minutes (N = 5) increases by 100% compared with that in the previous hour.
        Note Click the + icon next to Last N Minutes to create multiple alert rules.
    6. Set Notification Mode to Ding Ding Robot.
    7. Set Notification Receiver to the alert group created in Create an alert group. In the Contact Groups list, click the name of the alert group. If the alert group appears in the Selected Groups list, the setting is successful.
    Application Monitoring Alarm
  4. Click Save.