{"repo":"lanxuexing/sentry-dingtalk-notify","free":true,"listed":false,"github":"https://github.com/lanxuexing/sentry-dingtalk-notify","clone":"git clone https://github.com/lanxuexing/sentry-dingtalk-notify.git","description":"🤖️ Plugin for Sentry which allows sending notification via DingTalk (钉钉) robot.","language":"Python","stars":14,"topics":["alerting","devops","dingtalk","dingtalk-notify","dingtalk-robot","monitoring","notifications","python","sentry","sentry-plugin"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Sentry DingTalk Notify A Sentry extension to post notifications to DingTalk (钉钉) robot. English 简体中文 ### ValueError: Division by zero 📦 Project : sentry-demo (Sentry) 🌍 Env : prod 🚦 Level : error 📍 Location : app/utils/math.js 📢 Trigger : alert-rule 👉 View Issue on Sentry ✨ 核心功能 - 📝 精美排版 : 发送包含项目、环境、报错级别、代码位置的 Markdown 消息，一目了然。 - 🤖 多机器人 : 支持同时配置多个机器人，推送到不同的群组。 - 🔒 安全验证 : 完美支持钉钉的 加签 (SEC) 和 自定义关键词 安全设置。 - 📱 强提醒 : 支持通过手机号 @群成员 ，确保重要报警不被遗漏。 - ⚡️ 简单易用 : 配置灵活，支持占位符跳过特定配置。 🚀 安装指南 (Installation) 针对不同的使用场景，提供两种安装方式： 方式一：生产环境安装 (推荐 - 永久生效) 如果您使用的是 Sentry Self-Hosted (Docker)，这是官方推荐的标准方式。插件会打包进 Docker 镜像，重启不会丢失。 1. 在 Sentry 部署目录 ( self-hosted/ ) 下，找到或创建 sentry/enhance-image.sh 文件。 2. 添加以下内容： (注意：文件需具有可执行权限 chmod +x sentry/enhance-image.sh ) 3. 执行安装脚本重构镜像： 方式二：快速测试安装 (临时生效) 如果只想快速试用，可以使用此方式。 注意：重建容器后插件会消失。 1. 进入容器安装： 2. 重启服务： ⚙️ 配置手册 进入 Sentry Project Settings Legacy Integrations DingTalk Notify 。 1. Access Token (必填) 钉钉机器人 Webhook URL 中的 access token 参数。 格式 : 每行一个 Token。 2. Secret / 加签 (推荐) 钉钉机器人安全设置中的“加签”密钥（以 SEC 开头）。 重要规则 : 每一行 Secret 必须与上面的 Access Token 严格对应 （第一行对第一行）。 占位符 : 如果某个机器人 没有 设置加签，请务必在该行填入减号 - 作为占位符。 示例配置 : 3. Custom Keyword / 自定义关键词 (可选) 如果您的机器人设置了“自定义关键词”过滤。 原理 : 插件会自动将此关键词拼接到消息标题中（例如 【Sentry】 错误标题 ）。 设置 : 填写你在钉钉后台设置的关键词即可（例如 Sentry ）。 4. At Mobiles / @手机号 (可选) 需要 @ 的群成员手机号。 格式 : 英文逗号分隔，例如 13800000000,13900000000 。 5. Custom Message / 自定义消息模版 (v2.1.0+) 支持使用 Markdown 自定义消息格式。勾选 \"Enable Custom Message\" 后填入由变量组成的模版。 可用变量 : {project} : 项目名 (e.g. sentry-demo) {titl","default_branch":null,"files":null,"tree":[],"storefront":"/r/lanxuexing","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lanxuexing/sentry-dingtalk-notify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}