Skip to content

Commit

Permalink
钉钉告警
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloudhsl committed Aug 16, 2021
1 parent cfe4340 commit e4c998f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Binary file added images/prometheus/add_ding_talk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 14 additions & 5 deletions monitor/prometheusplugin/addreceiver.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# 添加接收人

监控中心支持添加邮箱及微信两种告警,需要注意的是,添加邮箱告警的话,需要预先配置发件服务器
监控中心支持添加邮箱、企业微信及钉钉三种告警形式,请在 UK8S 控制台「监控中心」→「收发设置」进行配置

需要注意的是,添加邮箱告警的话,需要预先配置发件服务器。

### 1、配置发件服务器

## 1. 配置发件服务器

不同的邮件服务提供商对于发件服务器的配置都有较为详细的说明,这里强调两点:

Expand All @@ -12,18 +14,25 @@

![](/images/prometheus/fajianren.jpg)

### 2、配置邮件接收人
## 2. 配置邮件接收人

支持添加多个邮件接收人

![](/images/prometheus/addemial.jpg)

### 3、配置企业微信接收人
## 3. 配置企业微信接收人

在使用微信接收人之前,我们必须在微信管理后台创建一个应用并获取应用ID、企业ID、应用秘钥、部门ID、企业微信用户ID等信息,需要咨询你的企业微信负责人方可获取到此信息。

![](images/prometheus/addwechat.jpg)


由于监控中心配置了一条watchdog告警规则,只要企业微信的信息填写正确,一般10分钟以内均可从企业微信中获取到告警信息。


## 4. 配置钉钉接收人

在使用钉钉接收人之前,我们必须在钉钉管理后台创建自定义机器人,并获取其 Webhook 地址,详情参考钉钉相关文档。

获取钉钉机器人 Webhook 地址后,在添加接收人中选择「钉钉」,并配置相应的接收人名称及 Webhook 地址即可。

![](images/prometheus/add_ding_talk.jpg)

0 comments on commit e4c998f

Please sign in to comment.