Prometheus监控rabbitmq
所属分类 rabbitmq
浏览量 512
rabbitmq 常用监控指标
rabbitmq_queue_messages_unacknowledged_global 队列中有未确认的消息总数(未被消费的消息)
rabbitmq_queue_messages_unacknowledged
rabbitmq_queue_messages_ready
rabbitmq_queue_messages_published_total
rabbitmq_queue_messages_delivered_total
rabbitmq_node_disk_free_limit 使用磁盘大小
rabbitmq_node_disk_free 磁盘总大小
rabbitmq_node_mem_used 使用内存大小
rabbitmq_node_mem_limit 内存总大小
rabbitmq_sockets_used 使用的sockets的数量
rabbitmq_sockets_available 可用的sockets总数
rabbitmq_fd_used 使用文件描述符的数量
rabbitmq_fd_available 可用的文件描述符总数
rabbitmq_up
rabbitmq_running
rabbitmq_queue_messages 队列中的消息
rabbitmq_queues 队列数
rabbitmq_channels channels数
rabbitmq_consumers 消费者数量
rabbitmq_connections 连接数
rabbitmq_exchanges exchanges数
sum by (vhost)(rabbitmq_queue_messages_ready)
sum by (vhost)(rabbitmq_queue_messages_published_total)
sum by (vhost)(rabbitmq_queue_messages_delivered_total)
sum by (vhost)(rabbitmq_queue_messages_unacknowledged)
groups:
- name: Rabbitmq
rules:
- alert: RabbitMQDown
expr: rabbitmq_up != 1
labels:
severity: High
annotations:
summary: "Rabbitmq Down,实例:{{$labels.instance }}"
description: "Rabbitmq_exporter连不上RabbitMQ!"
- alert: Rabbitmq有未确认消息
expr: rabbitmq_queue_messages_unacknowledged_global > 0
for: 1m
labels:
severity: critical
annotations:
summary: "RabbitMQ有未确认消息,实例:{{$labels.instance }}"
description: "Rabbitmq未确认消息>0当前值为:{{ $value }}"
- alert: RabbitMQ可用磁盘空间不足告警
expr: rabbitmq_node_disk_free_alarm !=0
for: 0m
labels:
severity: critical
annotations:
summary: "RabbitMQ可用磁盘空间不足,实例:{{$labels.instance }}"
description: "RabbitMQ可用磁盘空间不足,请检查"
- alert: RabbitMQ可用内存不足告警
expr: rabbitmq_sockets_used / rabbitmq_sockets_available * 100 >60
for: 0m
labels:
severity: critical
annotations:
summary: "RabbitMQ可用内存不足,实例:{{$labels.instance }}"
description: "RabbitMQ可用内存不足,请检查"
- alert: RabbitMQ_socket连接数使用过高告警
expr: rabbitmq_sockets_used / rabbitmq_sockets_available * 100 >60
for: 0m
labels:
severity: critical
annotations:
summary: "RabbitMQ_socket使用过高,实例:{{$labels.instance }}"
description: "RabbitMQ_socket使用>60%当前值为::{{ $value }}"
- alert: RabbitMQ文件描述符使用过高告警
expr: rabbitmq_fd_used / rabbitmq_fd_available * 100 > 60
for: 0m
labels:
severity: critical
annotations:
summary: "RaiibitMQ文件描述符使用过高,实例:{{$labels.instance }}"
description: "RaiibitMQ文件描述符使用>60%,当前值为:{{ $value }}"
grafana 图表 ID 4279 10120
https://www.rabbitmq.com/docs/prometheus#overview-prometheus
上一篇
下一篇
杭州西山游步道爬山路线汇总
监控原则
一个URL请求的过程
PromQL group_left 用法
rabbitmq 基础
nacos 配置安装