1 Star 0 Fork 126

dasRa0 / PrometheusAlert

forked from feiyu563 / PrometheusAlert 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sonarqube.md 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
jikun.zhang 提交于 2020-06-02 16:08 . 更新文档

SonarQube 接入配置

首先使用管理员或者具有告警配置权限的帐号登录进SonarQube管理页面,登录后进入Administration Configuration配置。

sonar1

选择Configuration--->Webhooks--->Create,并填入相关配置信息

sonar2

其中URL项,请填写PrometheusAlert的Url,参考如下:

#下面的地址是使用自定义模版中已经默认集成的SonarQube的钉钉模版
http://[YOUR-PrometheusAlert-URL]/prometheusalert?type=dd&tpl=sonar&ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxxx

如需修改默认的SonarQube的钉钉模版或者使用其他的模版可通过PrometheusAlert的Dashboard进行操作。

sonar4

sonar5

最终告警效果:

sonar3

Go
1
https://gitee.com/dasra0/PrometheusAlert.git
git@gitee.com:dasra0/PrometheusAlert.git
dasra0
PrometheusAlert
PrometheusAlert
master

搜索帮助