Credits to https://github.com/GaoYuJian/sentry-dingtalk
Setup the Dingtalk Bot for Sentry Alerts.
- Sentry >= 20.12.1
- Install with
pip
command
- pip install https://github.com/lostncg/sentry-dingtalk/archive/master.zip
- Write in Sentry on premise's
requirements.txt
echo https://github.com/lostncg/sentry-dingtalk/archive/master.zip >> requirements.txt
Setup in sentry/sentry.config.py
DINGTALK_WEBHOOK: Required (String) - https://oapi.dingtalk.com/robot/send?access_token=**********
DINGTALK_CUSTOM_KEYWORD: Optional (String) - A custom keyword as the prefix of the event title
DINGTALK_SIGNATURE: Optional (String) - Attach Dingtalk webhook signature to the request headers.
DINGTALK_INCLUDE_TAGS: Optional (Boolean) - Include tags with notifications
DINGTALK_INCLUDE_TAG_KEYS: Optional (String) - Only include these tags (comma separated list). Leave empty to include all.
DINGTALK_INCLUDE_RULES: Optional (Boolean) - Include triggering rules with notifications.
- Support send message with Dingtalk whitelisted keyword.
- Support send message with Dingtalk signature.
- List event tags in Dingtalk message, support whitelist.