监控平台搭建-钉钉消息通知-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

发送消息如下

相关推荐
tian_jiangnan1 天前
grafana白皮书
linux·服务器·grafana
学不完的1 天前
ZrLog 高可用架构监控部署指南(Prometheus + Grafana)
linux·运维·架构·负载均衡·grafana·prometheus·ab测试
桌面运维家2 天前
Prometheus服务器监控告警实战指南
运维·服务器·prometheus
qq_266348733 天前
Grafana+Loki+Alloy日志采集系统-3
grafana·loki·alloy
秦渝兴3 天前
MySQL容器部署Prometheus+Granfana全流程
grafana·prometheus
七夜zippoe3 天前
OpenClaw 日志与调试技巧:从入门到精通
grafana·日志·调试技巧·log·openclaw
布史4 天前
Prometheus Python Client 实操指南:从零实现自定义 Exporter
网络·python·prometheus
Yu_摆摆7 天前
windows部署prometheus+windows_exporter+grafana+alertmanager实现监控CPU、内存、磁盘并邮件告警
windows·grafana·prometheus
indexsunny8 天前
互联网大厂Java面试实战:从Spring Boot到微服务架构的深度解析
java·spring boot·spring cloud·kafka·prometheus·security·microservices
**蓝桉**8 天前
Prometheus的服务发现机制
服务发现·prometheus