Skip to main content

A sentry extension integrates DingTalk robot webhook

Project description

Sentry DingTalk

Sentry 集成钉钉机器人通知

Requirments

  • sentry >= 21.5.1

特性

  • 发送异常通知到钉钉
  • 支持钉钉机器人webhook设置关键字
  • 配置环境变量
    • DINGTALK_WEBHOOK: Optional(string)
    • DINGTALK_CUSTOM_KEYWORD: Optional(string)

快速使用

安装

  1. 使用 pip 命令

    $ pip install sentry-dingtalk-notify
    
  2. 写入依赖文件 onpremise-xxx/sentry/requirements.txt

    $ echo sentry-dingtalk-notify >> requirements.txt
    

钉钉机器人

配置钉钉机器人并拿到对应的 webhook, 可以对机器人设置 关键词、签名、IP限制

配置

在 Sentry 面板 Settings > Integrations 中找到 DingTalk 并配置 webhook、关键词等信息,添加项目,创建告警规则

测试

  1. Enable Plugin
  2. Test Plugin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentry-dingtalk-notify-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

sentry_dingtalk_notify-1.0.0-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sentry-dingtalk-notify-1.0.0.tar.gz.

File metadata

  • Download URL: sentry-dingtalk-notify-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for sentry-dingtalk-notify-1.0.0.tar.gz
Algorithm Hash digest
SHA256 733a63907b7da2d61f1b1b4b7bc844be12e45978a5eaeb89996f60211463fd46
MD5 a2895161233d37c75a762eadbb0b1976
BLAKE2b-256 f19891f405ac459550556f63a45aaf9cab5365e1230d5e523048b070aad01eb3

See more details on using hashes here.

File details

Details for the file sentry_dingtalk_notify-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sentry_dingtalk_notify-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for sentry_dingtalk_notify-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ebc18183e7c66481f95657a6314eb396ffd58e9e0fa7e55a1d72840460dde832
MD5 3ff8cbeb23cf89a4b3b0eb0c8bfb4468
BLAKE2b-256 c3fd97a72ce8aecc4fde24c440b954b8c3ee0894d20903ae4e90b468fd3f18bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page