This section describes how to configure DingTalk notification.

The DingTalk notification feature supports sending notifications to users in the following two ways:

  • Session Settings: Use a DingTalk app to send notifications to specific users or departments.

  • Group Chat Bot Settings: Use a DingTalk bot to send notifications to specific group chats.

Prerequisites

  • The WizTelemetry Notification extension must be installed and enabled on the KubeSphere platform.

  • You need to obtain the access parameters for the app or group chat bot from the DingTalk platform in advance. For more information, refer to DingTalk Developer Documentation.

Steps

  1. Log in to the KubeSphere web console with a user who has the platform-admin role.

  2. In the upper right corner of the page, click the grid icon and select WizTelemetry Observability Platform.

  3. Click Notification > Notification Channels in the left navigation pane.

  4. On the Notification Channels page, click the DingTalk tab, configure the DingTalk notification parameters, and then click OK.

    • Session Settings

      Parameter Description

      App Key

      The AppKey of the DingTalk app.

      App Secret

      The App Secret of the DingTalk app.

      Chat ID

      The Chat ID to receive notifications. Click Add to set multiple Chat IDs.

    • Group Chat Bot Settings

      Parameter Description

      Webhook URL

      The Webhook URL of the group chat bot. KubeSphere will send notifications to this URL.

      Secret

      The access secret key for the group chat bot.

      Keywords

      Keywords accepted by the group chat bot. Click Add to set multiple keywords.

    • Filter Conditions

      KubeSphere sends notifications in the form of key-value pairs. When the key and value entered here match the key and value in the label settings of the rule group’s alerting rules, alerts meeting specific conditions can be sent through label filtering. Click Add to set multiple conditions.

      Parameter Description

      Key

      The key in the notification content. Click the dropdown list to select a preset key, or you can enter a custom key in the dropdown list.

      Operator

      The operator for the filter condition.

      • Contains: The value corresponding to the key contains a specific string.

      • Does Not Contain: The value corresponding to the key does not contain a specific string.

      • Exists: The specified key exists in the notification content.

      • Does Not Exist: The specified key does not exist in the notification content.

      • Regex Match: Filters notifications that meet the condition through a regular expression.

      Value

      The string that the value corresponding to the key must contain. Press Enter to set multiple strings; the condition is satisfied if the value corresponding to the key contains any one of these strings.

    • Click Send Test Message to confirm that the notification channel is working properly.

  5. In the upper right corner of the DingTalk tab, click the toggle switch to set the DingTalk notification feature to Enabled.