Fail to set up rabbitmq-exporter #351
Unanswered
BigBoulard
asked this question in
Q&A
Replies: 1 comment
-
Sorry, for the late answer 😀 I think you already figured it out. Rabbit MQ has an integrated exporter. This exporter is scraping the data from the rabbit MQ Management API. From the logs, you should try to scrape this exporter on port 9419 and see what happens. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I'm working with
docker-desktop
on a Mac. I've spent hours trying to set uprabbitmq-exporter
to expose the metrics for Prometheus. I probably missed something obvious cause I often struggle with networking and system stuff.Prometheus seems to work well cause I succeeded in making it work with
postgres
andbitnami/postgres-exporter
. InStatus > Targets
, I can see thepostgres exporter
is up butrabbitmq-exporter
stays down with the below error:Get "http://localhost:15692/metrics?format=prometheus": dial tcp 127.0.0.1:15692: connect: connection refused
I've created a
metrics_user
user through theRabbitmq management
interface onhttp://localhost:15672/#/users
. I added themonitoring
tag, and I naively added permissions on virtual host/
with the regexp.*
forconfigure
,write
andread
, and added.*
onread
andwrite
on allexchanges
.I noticed that for whatever reason,
Rabbitmq
can only be accessed throughlocalhost
whereasPostgres
can be accessed by the container name likeproject-postgres-1
... don't know if it has something to do with theRABBITMQ_DEFAULT_VHOST
orRABBITMQ_NODENAME
env vars...Below is the associated part of my
docker-compose
file:Thank you so much :)
Here are the exporter logs:
Beta Was this translation helpful? Give feedback.
All reactions