Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbitmq_exporter installation startup consultation #372

Open
peoplewhoworkhard opened this issue Jan 30, 2024 · 3 comments
Open

rabbitmq_exporter installation startup consultation #372

peoplewhoworkhard opened this issue Jan 30, 2024 · 3 comments

Comments

@peoplewhoworkhard
Copy link

Our rabbitm service is a three-node cluster. Do we need to install and start the rabbitmq_exporter service for each node in the cluster?

@peoplewhoworkhard
Copy link
Author

My understanding is:
In a RabbitMQ cluster, you do not need to install and start the RabbitMQ Exporter service for each node. Because the RabbitMQ Exporter runs as a standalone process and collects data from designated RabbitMQ nodes, it only needs to be installed and started on any node.

When the RabbitMQ Exporter establishes a connection to a RabbitMQ node, it can access all queues, switches, and other objects in the entire cluster and obtain complete monitoring data. This is because every node in the RabbitMQ cluster has the same metadata information, and the Exporter can obtain this information by connecting to any node.

Therefore, you only need to select a node in the cluster, install and start RabbitMQ Exporter on that node to monitor the entire cluster. Prometheus will collect data from this node and display and analyze it through tools such as Grafana.

Is this correct understanding?

@kbudde
Copy link
Owner

kbudde commented Mar 17, 2024

hey @peoplewhoworkhard,

there are several options how to install this exporter.

One exporter for each node
I usually installed one exporter on each rabbitmq node. -> With this set up your monitoring still works, if your monitoring node is down.

One exporter and a loadbalancer in front of rabbitmq
You can also install one exporter and use a loadbalancer in front of all rabbitmq nodes; this is especially usefull if you get lbs for free like in kubernetes environments. In this case you must set RABBIT_CONNECTION to loadbalancer to remove a self label.

Only one exporter for a full cluster
I never used this setup. It should work, but you will not get metrics if your monitoring node is unavailable.

@kbudde
Copy link
Owner

kbudde commented Mar 17, 2024

If you are new to the topic I recommend looking at the official rabbitmq plugin as I'm not going to support rabbitmq 4+.
See #383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants