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

发送消息如下

相关推荐
EterNity_TiMe_1 天前
别让告警变成噪音:用Prometheus和Alertmanager搭一套可远程查看的监控系统
数据库·人工智能·ai·postgresql·prometheus·cpolar
Elastic 中国社区官方博客1 天前
使用 Elasticsearch 作为 Grafana 的直接替代 Prometheus 后端
大数据·数据库·sql·elasticsearch·搜索引擎·grafana·prometheus
查拉图斯特拉面条2 天前
使用 k6 编写登录与业务场景脚本并进行性能测试及 Grafana 可视化实战
grafana
spider_xcxc2 天前
Prometheus + Grafana流程搭建总结
grafana·prometheus·云计算运维
c_zyer2 天前
一站式可观测新选择:OpenObserve 深度对标 ELK / Grafana+Prometheus / Netdata,附Docker一键部署实战
elk·grafana·prometheus·netdata·openobserve
Waay4 天前
面试口述版:个人对 Prometheus 完整理解
运维·学习·云原生·面试·职场和发展·kubernetes·prometheus
qq_349447954 天前
十二、k8s中prometheus配置文件如何热加载
容器·kubernetes·prometheus
孫治AllenSun4 天前
【Prometheus & Grafana】搭建可视化监控平台
grafana·prometheus
维C°4 天前
Grafana 上时间筛选
grafana
chen_ke_hao5 天前
Prometheus + Grafana监控平台-显卡集群监控
grafana·prometheus