首页  

rabbitmq prometheus插件 和 rabbitmq-exporter     所属分类 rabbitmq 浏览量 251
Monitoring RabbitMQ with Prometheus and Grafana.
https://www.rabbitmq.com/docs/prometheus

3.8.0之前版本  prometheus_rabbitmq_exporter
https://github.com/deadtrickster/prometheus_rabbitmq_exporter

3.8.0 开始, 内置Prometheus 支持
开启 rabbitmq-plugins 
rabbitmq-plugins enable rabbitmq_prometheus

rabbitmqctl status

Interface: [::], port: 15692, protocol: http/prometheus, purpose: Prometheus exporter API over HTTP

rabbitmq UI界面看到 启动监听的端口,默认15692端口

http://127.0.0.1:15692/metrics

/etc/rabbitmq/rabbitmq.conf

prometheus.path = /metrics
prometheus.tcp.port = 15692

指标说明
https://github.com/rabbitmq/rabbitmq-prometheus/blob/master/metrics.md


rabbitmq_channel_messages_unacked	    Delivered but not yet acknowledged messages
rabbitmq_channel_messages_unconfirmed	Published but not yet confirmed messages
rabbitmq_channel_messages_uncommitted	Messages received in a transaction but not yet committed
rabbitmq_channel_acks_uncommitted	    Message acknowledgements in a transaction not yet committed


关闭插件
rabbitmq-plugins disable rabbitmq_prometheus


独立的exporter RabbitMQ_exporter https://github.com/kbudde/rabbitmq_exporter
prometheus.yml - job_name: "rabbitmq" file_sd_configs: - refresh_interval: 1m files: - /usr/local/prometheus/sd_config/rabbitmq.json rabbitmq.json [{ "targets": [ "127.0.0.1:15692" ], "labels": { "app":"rabbitmqapp" "job": "rabbitmq" } }] 注意 json用数组 !!!

上一篇     下一篇
springboot 接口 post 报错 Cannot generate variable name for non-typed Collection parameter type

prometheus file_sd_config 基于文件的服务发现

MAC 安装 rabbitmq

rabbitmq prometheus 插件 指标说明

布林通道

flink 反压监控