监控平台搭建-钉钉消息通知-dingtalk-webhook篇(四)

上文对alertmanager的部署进行详细阐述,本文对消息通知进行部署,消息通知采用钉钉机器人方式进行发送

配置文件 vim /xworks/monitor/dingtalk-webhook/config.yml

bash 复制代码
#配置钉钉机器人token
targets:
  default:
    url: https://oapi.dingtalk.com/robot/send?access_token=钉钉token
  critical:
    url: https://oapi.dingtalk.com/robot/send?access_token=钉钉token
  warning:
    url: https://oapi.dingtalk.com/robot/send?access_token=钉钉token
  java:
    url: https://oapi.dingtalk.com/robot/send?access_token=钉钉token

钉钉机器人token获取方式,通过待钉钉通知群设置

运行代码

bash 复制代码
docker run -d \
  --name dingtalk-webhook \
  --restart=unless-stopped \
  -p 18060:8060 \
  -v /xworks/monitor/dingtalk-webhook/config.yml:/etc/prometheus-webhook-dingtalk/config.yml \
  -e TZ=Asia/Shanghai \
  -e LOG_LEVEL=info \
  timonwong/prometheus-webhook-dingtalk:latest

发送消息如下

相关推荐
JasonChen@66612 小时前
Prometheus 存储实战:本地 TSDB 配置与 VictoriaMetrics 远端存储对接(18)
grafana·prometheus·victoria
JasonChen@6661 天前
Grafana 权限管理实战:用户授权与 Team 团队管理(17)
grafana·prometheus
JasonChen@6662 天前
pushgateway组件实现自定义监控数据采集(16)
grafana·prometheus·pushgateway
W_son5 天前
14.Grafana 监控看板实战:新建、调优、变量配置全流程
grafana·prometheus
真上帝的左手6 天前
2. 编程语言-Java-Spring Boot-集成SkyWalking + Prometheus 性能工程闭环实战
java·spring boot·性能优化·架构·系统架构·prometheus·skywalking
BullSmall6 天前
Prometheus监控栈安全加固全攻略
安全·grafana·prometheus
JasonChen@6668 天前
prometheus静态监控static_config案例四(10)
grafana·prometheus
JasonChen@66610 天前
prometheus静态监控static_config案例二(8)
grafana·prometheus
JasonChen@66613 天前
prometheus静态监控static_configs案例一(7)
prometheus
lisanmengmeng13 天前
prometheus的rules 配置说明
prometheus