You can add the webhook URL of a DingTalk chatbot so that alert notifications can be sent to DingTalk groups. This makes your O&M efficient and helps you monitor the 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 where you want to add a DingTalk chatbot, and 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 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, copy the webhook URL of the chatbot. Then, click OK. Add Robot

Create a contact

  1. Log on to the Enterprise Distributed Application Service (EDAS) console.
  2. In the left-side navigation pane, choose Application Management > Applications.
  3. On the Applications page, select Container Service or Serverless Kubernetes Cluster from the Cluster Type drop-down list. On the Applications page, click the name of the application that you want to manage.
  4. In the left-side navigation pane, choose Alerts > Contacts.
  5. On the Contacts tab, click Create Contact in the upper-right corner.
  6. In the Create Contact dialog box, specify Name. In the Ding Ding Robot field, enter the obtained webhook URL of the DingTalk chatbot, and click OK.

Create a contact group

  1. In the left-side navigation pane, choose Alerts > Contacts.
  2. On the Contact Groups tab, click New Contact Group in the upper-right corner.
  3. In the Create Contact Group dialog box, specify Group Name, select the created DingTalk chatbot in Contact Members, and then click OK.

Create an alert

  1. In the left-side navigation pane, choose Alerts > Alert Policy Management.
  2. On the Alarm Policies page, click Create Alarm in the upper-right corner.
  3. In the Create Alarm dialog box, specify all the required information and click Save.
    1. Specify Alarm Name. For example, you can set this parameter to alert on JVM-GC times in period-over-period comparison.
    2. Select an application from the Application Site drop-down list. Select an application group from the Application Group drop-down list.
    3. Select a monitoring metric type from the Type drop-down list. For example, you can select JVM_Monitoring.
    4. Set Dimension to Traverse.
    5. Set an alert rule.
      1. Select Meet All of the Following Criteria.
      2. Edit 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 on the right side of Last N Minutes to create multiple alert rules.
    6. Set Notification Mode to Ding Ding Robot.
    7. In the Notification Receiver section, select the contact group that you create in Create a contact group. In the Contact Groups section, click the name of the contact group. If the contact group appears in the Selected Groups section, the setting is successful.
    Application Monitoring Alarm
  4. Click Save.