dailidong commented on a change in pull request #167:
URL:
https://github.com/apache/incubator-dolphinscheduler-website/pull/167#discussion_r478220988
##########
File path: docs/zh-cn/1.3.1/user_doc/cluster-deployment.md
##########
@@ -294,7 +293,58 @@ mysql -h192.168.xx.xx -P3306 -uroot -p
*特别注意:*
- 如果需要用资源上传到Hadoop集群功能, 并且Hadoop集群的NameNode 配置了 HA的话 ,需要开启
HDFS类型的资源上传,同时需要将Hadoop集群下的core-site.xml和hdfs-site.xml复制到/opt/dolphinscheduler/conf,非NameNode
HA跳过次步骤
+
+ - 如果需要使用企业微信告警完,在安装完成后,修改 alert.properties 文件,重启 alert 服务:
+
+ ```
+ # 设置企业微信告警功能是否开启:开启为 true,否则为 false。
+ enterprise.wechat.enable="true"
+ ```
+
+ ```
+ # 设置 corpid,每个企业都拥有唯一的 corpid,获取此信息可在管理后台“我的企业”-“企业信息”下查看“企业 ID”(需要有管理员权限)
+ enterprise.wechat.corp.id="xxx"
+ ```
+ <p align="center">
+ <img src="/img/alert/corpid.png" width="60%" />
+ </p>
+
+ ```
+ # 设置 secret,secret 是企业应用里面用于保障数据安全的“钥匙”,每一个应用都有一个独立的访问密钥。
+ enterprise.wechat.secret="xxx"
+ ```
+ <p align="center">
+ <img src="/img/alert/secret.png" width="60%" />
+ </p>
+
+ ```
+ # 设置 agentid,每个应用都有唯一的 agentid。在管理后台->“应用与小程序”->“应用”,点进某个应用,即可看到 agentid。
+ enterprise.wechat.agent.id="xxxx"
+ ```
+ <p align="center">
+ <img src="/img/alert/agentid.png" width="60%" />
+ </p>
+
+ ```
+ # 设置 userid,多个用逗号分隔。每个成员都有唯一的 userid,即所谓“帐号”。在管理后台->“通讯录”->点进某个成员的详情页,可以看到。
+ enterprise.wechat.users=zhangsan,lisi
+ ```
+ <p align="center">
+ <img src="/img/alert/userid.png" width="60%" />
+ </p>
+
+ ```
+ # 获取 access_token 的地址,使用如下例子无需修改。
+
enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid={corpId}&corpsecret={secret}
+
+ # 发送应用消息地址,使用如下例子无需改动。
+
enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token={token}
+
+ #发送消息格式,无需改动
+
enterprise.wechat.user.send.msg={\"touser\":\"{toUser}\",\"agentid\":\"{agentId}\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"{msg}\"}}
+ ```
Review comment:
maybe put the wechat config to the bottom as appendix will be better
---
把wechat配置这部分的内容放在部署的最后作为附录吧,不是每个人都需要关注wechat这块,主体部分尽量保持简洁
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]