-name: webhook webhook_configs: - url: http://10.1.1.10:8060/dingtalk/webhook1/send send_resolved: true ~ 指向webhook的地址 七、编辑docker-compose启动服务yml vim docker-compose.yml version: '3.2'services: prometheus: image: prom/prometheus restart: "always"ports: - 9090:9090container_name: "...
vim docker-compose-dingtalk.yml version:'3'services:dingtalk-alert:image:timonwong/prometheus-webhook-dingtalkcontainer_name:dingtalk-alertrestart:alwaysports:-"8060:8060"volumes:-/home/prometheus/docker/prometheus/alertmanager/dingtalk:/rootcommand:--config.file=/root/config.ymlnetworks:-prometheusnetworks:...
vim /home/prom/docker-compose.yml 1. version: '3.7'services: node-exporter: image: prom/node-exporter:latest ports: - "9100:9100" networks: - prom dingtalk: image: timonwong/prometheus-webhook-dingtalk:latest volumes: - type: bind source: ./alertmanager/config.yml target: /etc/prometheus-w...
主节点docker-compose.yml 去掉了altermanager和dingtalk告警的部署 prometheus server节点prometheus node_exporter grafana三个组件都需要部署 version: '3.7' services: node-exporter: image: prom/node-exporter:latest ports: - "9100:9100" networks: - prom # dingtalk: # im...
【方式二】通过docker-compose部署 docker-compose-alertdingtalk.yml version: "3.5" services: alertdingtalk: image: timonwong/prometheus-webhook-dingtalk container_name: alertdingtalk restart: always command: "--config.file=/etc/prometheus-webhook-dingtalk/config.yml --web.enable-ui" networks: - aler...
Federation 集群的通信我们创建了一个 Docker Network「monitoring_network」。我们使用 Docker—Compose 进行容器的编排,编排文件内容如下: docker-compose.yml 代码语言:javascript 复制 version:'3.5'networks:monitoring_network:volumes:prometheus_leader_data:{}prometheus_follower_1_data:{}prometheus_follower_2_data...
group_interval: 10s #重复告警的间隔时间 repeat_interval: 45m # 设置默认接收人 receiver: webhook routes: - receiver: webhook group_wait: 10s receivers: - name: 'webhook' webhook_configs: - url: 'http://prometheus-webhook-dingtalk-service.monitor:8060/dingtalk/webhook1/send' send_resolved: ...
由于TKE 集群有独立的网络环境,proxy-agent 部署在集群内为集群外的采集组件提供访问代理。外部采集组件一方面通过 proxy-agent 服务发现集群内的资源,另一方面通过 proxy-agent 抓取指标并写到 Prometheus 实例的时序存储中。 部署在集群内的资源对象 Namespace kubernetes 对象名称 类型 资源量 说明 <Prometheus 实例 ...
Prometheus介绍 prometheus脱胎于brogmon(brog的监控程序), 是继nagios、zabbix、openfalcon等监控程序以来的最受大家欢迎的监控程序,以opentsdb为数据库,存储时序性信息,push通过pushgateway,其他主动通过pull,服务器段拉取, 通过强大的组件能满足多场景尤其是微服务化和虚拟化场景的需求。
Operator自发现监控SpringBoot》,各类监控项的数据采集,以及grafana的监控展示测试都正常,于是进入下一步报警的迁入测试,alertmanager原生不支持钉钉报警,所以只能通过webhook的方式,好在已经有大佬开源了一套基于prometheus 钉钉报警的webhook(项目地址https://github.com/timonwong/prometheus-webhook-dingtalk),所以我们直接...