Monitoring RabbitMQ with Prometheus

777 views
Skip to first unread message

g...@recongate.com

unread,
May 14, 2018, 10:26:40 AM5/14/18
to rabbitmq-users
I am trying to monitor my RabbitMQ pods using prometheus plugins:

I download the RabbitMQ plugins and put them in the plugin directory (/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.4/plugins), however when i use the command "rabbitmq-plugins list" i do not see them (i can see other plugins that are not for prometheus that i added).

When trying to enable the plugin this is the output i receive: {:plugins_not_found, [:prometheus]}.

RabbitMQ version: 3.7.4-management

Thanks

Also, if someone could help me out with some templates of k8s service and deployment of RabbitMQ together with the prometheus-exporter or point me to some documentation that would be great.

Michael Klishin

unread,
May 14, 2018, 1:05:18 PM5/14/18
to rabbitm...@googlegroups.com
Was the node restarted after the plugins directory contents was changed? If not then it's a good idea.

In 3.7.x plugins that do not depend on the `rabbit` application won't appear in `rabbitmq-plugins list` output.
They can be enabled and "pre-enabled" by listing them in the enabled_plugins file. I need to check but
at best the plugin only has a transient dependency on `rabbit` at the moment:

This is something to notify the plugin author about. However, if the enabled_plugins file will include
the plugin it will be loaded and enabled. Which is likely why the author himself hasn't noticed the problem.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael Klishin

unread,
May 14, 2018, 1:08:31 PM5/14/18
to rabbitm...@googlegroups.com

and compare e.g. what rabbitmq-federation-management does with dependencies:

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

g...@recongate.com

unread,
May 23, 2018, 5:48:43 AM5/23/18
to rabbitmq-users
Thanks for the help, but is still haven't managed to get to work,

I tried restart the container after adding the plugin but it still does not work. 

I added the following line to the enable_plugin file:
[rabbitmq_managment,accept,prometheus,prometheus_cowboy,prometheus_httpd,prometheus_rabbitmq_exporter].

I downloaded the plugins from (and put the under /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.4/plugins):

However when i run the "rabbitmq-plugins list" command I receive the following output:
WARNING - plugins currently enabled but missing: accept, prometheus, prometheus_cowboy, prometheus_httpd, prometheus_rabbitmq_exporter, rabbitmq_managment

Any ideas what else i can do?

Thanks


Michael Klishin

unread,
May 23, 2018, 6:30:22 AM5/23/18
to rabbitm...@googlegroups.com
The message means that those plugins are in the enabled_plugins file but not in the plugins directory.
There are references to them but no actual .ez archives with the code.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Gil Goldberger

unread,
May 23, 2018, 7:19:28 AM5/23/18
to rabbitm...@googlegroups.com

I put the plugins i downloaded in the /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.4/plugins directory and restarted the container. What should i do next?

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael Klishin

unread,
May 23, 2018, 9:41:04 AM5/23/18
to rabbitm...@googlegroups.com
Remove duplicate versions (e.g. prometheus has two, 3.4.3 and 3.4.5), make
sure the files are readable by the user (usually `rabbitmq`) and try again.
If you copied the files as root they won't be.

It wouldn't hurt to check what the plugin directory is what you expect:
Reply all
Reply to author
Forward
0 new messages