Skip to main content

DingTalk

ParameterDescriptionRequired
alert.dingtalk.accessToken🔑 Access tokenYes
alert.dingtalk.secret🔐 Signing secretNo
alert.dingtalk.title✏️ Custom titleNo

Example

apiVersion: v1
kind: Namespace
metadata:
name: kwatch
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kwatch
namespace: kwatch
data:
config.yaml: |
alert:
dingtalk:
accessToken: "YOUR_ACCESS_TOKEN"
secret: "YOUR_SECRET"
title: "optional customized title"

Routing

alert:
dingtalk:
accessToken: "YOUR_ACCESS_TOKEN"
secret: "YOUR_SECRET"
routes:
- namespaces: ["production"]
severities: ["high", "critical"]
- reasons: ["OOMKilled"]

Retry

alert:
dingtalk:
accessToken: "YOUR_ACCESS_TOKEN"
secret: "YOUR_SECRET"
retry:
maxAttempts: 5
delay: 5s

Fallback

alert:
dingtalk:
accessToken: "YOUR_ACCESS_TOKEN"
secret: "YOUR_SECRET"
fallback: <another_provider>

Compact mode

alert:
dingtalk:
accessToken: "YOUR_ACCESS_TOKEN"
secret: "YOUR_SECRET"
compact: true