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

Add a custom DingTalk chatbot and obtain the 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 the DingTalk Custom Robot Service Terms of Service 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 click Finished. Add Robot

Create contacts

  1. Log on to the 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 click the name of the application that you want to manage.
  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 the Name parameter, 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 the Group name parameter, set the Alarm contact parameter 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 the Alarm Name parameter. For example, you can enter alert on JVM-GC times in period-over-period comparison.
    2. Select an application from the Application Site drop-down list and select an application group from the Application Group drop-down list.
    3. Select a metric type from the Type drop-down list. For example, you can select JVM_Monitoring.
    4. Set the Dimension parameter to Traverse.
    5. Set the Alarm Rules parameter.
      1. Select Meet All of the Following Criteria.
      2. Configure 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 the Last N Minutes parameter to create multiple alert rules.
    6. Select Ding Ding Robot for Notification Mode.
    7. In the Notification Receiver section, select the contact group that you create in Create an alert group. In the Contact Groups list, click the name of a contact group. If the contact group appears in the Selected Groups list, the setting is successful.
    Application Monitoring Alarm