08 . Prometheus+Grafana监控haproxy+rabbitmq (3)

08 . Prometheus+Grafana监控haproxy+rabbitmq

配置prometheus加入rabbitmq_exporter tail -7 /usr/local/prometheus/prometheus.yml - job_name: 'rabbitmq_1' static_configs: - targets: ['192.168.43.213:9419'] - job_name: 'rabbitmq_2' static_configs: - targets: ['192.168.43.251:9419']

08 . Prometheus+Grafana监控haproxy+rabbitmq

配置grafana

08 . Prometheus+Grafana监控haproxy+rabbitmq

08 . Prometheus+Grafana监控haproxy+rabbitmq

预警指标 序号 预警名称 预警规则 描述
1   集群状态预警   当集群状态不符合预期【!=1】时进行预警    
2   节点状态预警   当节点状态不符合预期【!=1】时进行预警    
3   等待消费预警   当等待消费的消息数量达到阈值【>1000】时进行预警   延迟消费  
4   消费预警   当消费中的消息数量达到阈值【>1000】时进行预警   消费速度慢  
部署Haproxy_exporter tar xvf haproxy_exporter-0.11.0.linux-amd64.tar.gz cd haproxy_exporter-0.11.0.linux-amd64/ ./haproxy_exporter --haproxy.scrape-uri="http://192.168.43.251:8100/stats;csv"

(https://img2020.cnblogs.com/blog/1871335/202006/1871335-20200630180351993-1052219626.png)

08 . Prometheus+Grafana监控haproxy+rabbitmq

08 . Prometheus+Grafana监控haproxy+rabbitmq

08 . Prometheus+Grafana监控haproxy+rabbitmq

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zydsyf.html