How to integrate rabbitmq with prometheus on docker
I want to integrate rabbitmq
with prometheus
on docker
.
I see rabbitmq
metrics on localhost:15692/metrics
but in prometheus
i get this error
Get "http://localhost:15692/metrics": dial tcp 127.0.0.1:15692: connect: connection refused
rabbitmq_prometheus
is enabled and this is my prometheus
configuration
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']
Source: Docker Questions