如何在docker上将rabbitmq与prometheus集成

问题描述

我想将rabbitmqprometheus上的docker集成。

我在rabbitmq上看到了localhost:15692/metrics指标,但是在prometheus中却遇到了这个错误:

获取“ http:// localhost:15692 / metrics”:拨打tcp 127.0.0.1:15692:connect:连接被拒绝

rabbitmq_prometheus已启用,这是我的prometheus配置

global:
  scrape_interval:     13s 
  evaluation_interval: 12s 

rule_files:


scrape_configs:
from this config.
  - job_name: 'prometheus-docker'
    static_configs:
    - targets: ['localhost:9090']

  - job_name: 'rabbitmq'
    metrics_path: '/metrics'
    scrape_interval: 5s
    static_configs:
    - targets: ['localhost:15692']

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)