Sentry DingTalk
Sentry 集成钉钉机器人通知
Requirments
- sentry >= 21.5.1
特性
- 发送异常通知到钉钉
- 支持钉钉机器人webhook设置关键字
- 配置环境变量
- DINGTALK_WEBHOOK: Optional(string)
- DINGTALK_CUSTOM_KEYWORD: Optional(string)
快速使用
安装
-
使用
pip命令$ pip install sentry-dingtalk-xm
-
写入依赖文件
onpremise-xxx/sentry/requirements.txt$ echo sentry-dingtalk-xm >> requirements.txt
钉钉机器人
配置钉钉机器人并拿到对应的 webhook, 可以对机器人设置 关键词、签名、IP限制
配置
在 Sentry 面板 Settings > Integrations 中找到 DingTalk 并配置 webhook、关键词等信息,添加项目,创建告警规则
测试
- Enable Plugin
- Test Plugin
Metadata
Release files for sentry-dingtalk-xm 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sentry-dingtalk-xm-1.2.1.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sentry_dingtalk_xm-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / sentry-dingtalk-xm-1.2.1.tar.gz
| Download URL | sentry-dingtalk-xm-1.2.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb91a7bacaef3cec69c3e843acc8ff5afcded05ec32ddc27dda063c5caf134e6
|
|
BLAKE2b-256 checksum How to use checksums |
891cab09f2171e3803c04b5524870f36f936d4dae35c22f9b7c155d0c517a707
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sentry_dingtalk_xm-1.2.1-py3-none-any.whl
| Download URL | sentry_dingtalk_xm-1.2.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
040c1626536c4709323852a977223047e7da2b2f046b7df22b429ec5b49530e1
|
|
BLAKE2b-256 checksum How to use checksums |
5d5fe996c37b4ccc822ca7b430b4c3b838c31ff1ef8aee8c304b1e6aeae5db0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|