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

发送消息如下

相关推荐
龙码精神3 天前
前端嵌入Grafana 报表的自定义方案:隐藏导航栏保留筛选工具
grafana
Cherry的跨界思维4 天前
【AI测试全栈:质量】47、Vue+Prometheus+Grafana实战:打造全方位AI监控面板开发指南
vue.js·人工智能·ci/cd·grafana·prometheus·ai测试·ai全栈
AC赳赳老秦4 天前
云原生AI故障排查新趋势:利用DeepSeek实现高效定位部署报错与性能瓶颈
ide·人工智能·python·云原生·prometheus·ai-native·deepseek
予枫的编程笔记4 天前
【Kafka高级篇】Kafka监控不踩坑:JMX指标暴露+Prometheus+Grafana可视化全流程
kafka·grafana·prometheus·可观测性·jmx·kafka集群调优·中间件监控
AC赳赳老秦5 天前
预见2026:DeepSeek与云平台联动的自动化流程——云原生AI工具演进的核心引擎
人工智能·安全·云原生·架构·自动化·prometheus·deepseek
认真的薛薛5 天前
13.k8s中Prometheus监控集群及其服务,endpoint暴露服务,es采集k8s日志
elasticsearch·kubernetes·prometheus
A-刘晨阳5 天前
K8S部署kube-state-metrics + CAdvisor 并使用 Prometheus 监控 Kubernetes 指标
运维·云原生·kubernetes·云计算·prometheus·cadvisor·state-metrics
AC赳赳老秦6 天前
多模态 AI 驱动办公智能化变革:DeepSeek 赋能图文转写与视频摘要的高效实践
java·ide·人工智能·python·prometheus·ai-native·deepseek