监控平台搭建-钉钉消息通知-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 小时前
Ubuntu部署Prometheus与Alertmanager:systemd配置、告警对接及cpolar远程访问
数据库·ubuntu·prometheus
打工仔折腾 AI3 小时前
Prometheus接入Pushgateway实战:二进制与Docker部署、指标推送与远程写入
后端·python·docker·容器·性能优化·prometheus·ai agent 实战
哈__4 小时前
日志散在多台服务器怎么查?用 Promtail + Loki + Grafana 搭一套集中检索平台
运维·服务器·grafana
Elastic 中国社区官方博客1 天前
两个依赖和一个配置块:通过 Prometheus 远程写入将 Spring Boot 指标发送到 Elasticsearch
大数据·数据库·spring boot·elasticsearch·搜索引擎·全文检索·prometheus
User_芊芊君子2 天前
Prometheus接入Pushgateway实战:二进制与Docker部署、指标推送及远程上报
docker·容器·prometheus
lbb 小魔仙8 天前
OpenClaw + cpolar 实战:远程 NAS、分享小游戏、RDP,再配置公网 AI 入口
数据库·人工智能·redis·oracle·prometheus
zhoupenghui1689 天前
Golang pprof 工具详解:监控、压测与调优实战指南
prometheus·pprof
ggaofeng10 天前
prometheus时序数据库
prometheus
DylanlZhao12 天前
我想看看本地 LLM 给我省了多少钱,于是我监控了它
llm·grafana
A心有千千结14 天前
Nginx网关可观测建设:打通流量入口,加速线上故障诊断
nginx·prometheus·devops