【rabbitMQ】rabbitMQ插件
2022-12-03 本文已影响0人
Bogon
# rpm -qa | grep rabbitmq
rabbitmq-server-3.6.5-1.noarch
# rpm -qa | grep erlang
erlang-19.0.4-1.el7.centos.x86_64
# rpm -ql rabbitmq-server | grep plugin
/usr/lib/rabbitmq/bin/rabbitmq-plugins
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit_plugins.beam
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit_plugins_main.beam
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit_plugins_usage.beam
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/README
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/amqp_client-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/cowboy-1.0.3.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/cowlib-1.0.1.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/mochiweb-2.13.1.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbit_common-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_amqp1_0-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_auth_backend_ldap-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_auth_mechanism_ssl-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_consistent_hash_exchange-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_event_exchange-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_federation-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_federation_management-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_jms_topic_exchange-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_management-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_management_agent-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_management_visualiser-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_mqtt-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_recent_history_exchange-1.2.1.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_sharding-0.1.0.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_shovel-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_shovel_management-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_stomp-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_top-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_tracing-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_trust_store-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_web_dispatch-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_web_stomp-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/rabbitmq_web_stomp_examples-3.6.5.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/ranch-1.2.1.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/sockjs-0.3.4.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins/webmachine-1.10.3.ez
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/sbin/rabbitmq-plugins
/usr/sbin/rabbitmq-plugins
/usr/share/man/man1/rabbitmq-plugins.1.gz
# rabbitmq-plugins list [-v] [-m] [-E] [-e] [pattern]
-v 显示所有插件的详情(详细)
-m 仅仅只显示插件的名称 (简约)
-E 仅仅只显示显式启用的插件
-e 仅仅只显示显式、隐式启用的插件
pattern 表示用于过滤插件名称的模式
该命令,显示所有的插件,它们的版本号,依赖关系和描述。
显示的每个插件内容的前缀是在 [] 内加上两种状态指示符:
第一个指示符是 " ",表示该插件没有被启用;
"E" 的指示符表示该插件被显示启用;
"e" 的指示符表示该插件被隐式启用;
或者 "!" 表示该插件被启用但缺失,因此无法运行。
第二个指示符是 "" 表示该插件没有运行; "*" 表示在运行。如果给出了可选模式,则只显示名称匹配模式的插件。
# rabbitmq-plugins list
Configured: E = explicitly enabled; e = implicitly enabled
| Status: * = running on rabbit@cndgdlbvdc06-65-154-rabbitmq01-1
|/
[e*] amqp_client 3.6.5
[ ] cowboy 1.0.3
[ ] cowlib 1.0.1
[e*] mochiweb 2.13.1
[E*] prometheus 3.1.0
[E*] prometheus_process_collector 1.0.2
[E*] prometheus_rabbitmq_exporter v3.6.5.9
[ ] rabbitmq_amqp1_0 3.6.5
[ ] rabbitmq_auth_backend_ldap 3.6.5
[ ] rabbitmq_auth_mechanism_ssl 3.6.5
[ ] rabbitmq_consistent_hash_exchange 3.6.5
[ ] rabbitmq_event_exchange 3.6.5
[ ] rabbitmq_federation 3.6.5
[ ] rabbitmq_federation_management 3.6.5
[ ] rabbitmq_jms_topic_exchange 3.6.5
[E*] rabbitmq_management 3.6.5
[e*] rabbitmq_management_agent 3.6.5
[ ] rabbitmq_management_visualiser 3.6.5
[ ] rabbitmq_mqtt 3.6.5
[ ] rabbitmq_recent_history_exchange 1.2.1
[ ] rabbitmq_sharding 0.1.0
[ ] rabbitmq_shovel 3.6.5
[ ] rabbitmq_shovel_management 3.6.5
[ ] rabbitmq_stomp 3.6.5
[ ] rabbitmq_top 3.6.5
[ ] rabbitmq_tracing 3.6.5
[ ] rabbitmq_trust_store 3.6.5
[e*] rabbitmq_web_dispatch 3.6.5
[ ] rabbitmq_web_stomp 3.6.5
[ ] rabbitmq_web_stomp_examples 3.6.5
[ ] sockjs 0.3.4
[e*] webmachine 1.10.3
rabbitMQ 开启prometheus相关插件:
# rabbitmq-plugins enable prometheus
# rabbitmq-plugins enable prometheus_process_collector
# rabbitmq-plugins enable prometheus_rabbitmq_exporter
# ls -l /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins
total 4708
-rw-r--r-- 1 root root 281861 Aug 5 2016 amqp_client-3.6.5.ez
-rw-r--r-- 1 root root 225595 Aug 5 2016 cowboy-1.0.3.ez
-rw-r--r-- 1 root root 125978 Aug 5 2016 cowlib-1.0.1.ez
-rw-r--r-- 1 root root 321869 Aug 5 2016 mochiweb-2.13.1.ez
-rw-r--r-- 1 root root 186701 Mar 28 2022 prometheus-3.1.0.ez
-rw-r--r-- 1 root root 14161 Mar 28 2022 prometheus_process_collector-1.0.2.ez
-rw-r--r-- 1 root root 194256 Mar 28 2022 prometheus_rabbitmq_exporter-v3.6.5.9.ez
-rw-r--r-- 1 root root 752422 Aug 5 2016 rabbit_common-3.6.5.ez
-rw-r--r-- 1 root root 210190 Aug 5 2016 rabbitmq_amqp1_0-3.6.5.ez
-rw-r--r-- 1 root root 31725 Aug 5 2016 rabbitmq_auth_backend_ldap-3.6.5.ez
-rw-r--r-- 1 root root 12557 Aug 5 2016 rabbitmq_auth_mechanism_ssl-3.6.5.ez
-rw-r--r-- 1 root root 14591 Aug 5 2016 rabbitmq_consistent_hash_exchange-3.6.5.ez
-rw-r--r-- 1 root root 11392 Aug 5 2016 rabbitmq_event_exchange-3.6.5.ez
-rw-r--r-- 1 root root 157936 Aug 5 2016 rabbitmq_federation-3.6.5.ez
-rw-r--r-- 1 root root 12174 Aug 5 2016 rabbitmq_federation_management-3.6.5.ez
-rw-r--r-- 1 root root 23946 Aug 5 2016 rabbitmq_jms_topic_exchange-3.6.5.ez
-rw-r--r-- 1 root root 834737 Aug 5 2016 rabbitmq_management-3.6.5.ez
-rw-r--r-- 1 root root 24935 Aug 5 2016 rabbitmq_management_agent-3.6.5.ez
-rw-r--r-- 1 root root 41429 Aug 5 2016 rabbitmq_management_visualiser-3.6.5.ez
-rw-r--r-- 1 root root 98603 Aug 5 2016 rabbitmq_mqtt-3.6.5.ez
-rw-r--r-- 1 root root 14599 Aug 5 2016 rabbitmq_recent_history_exchange-1.2.1.ez
-rw-r--r-- 1 root root 33789 Aug 5 2016 rabbitmq_sharding-0.1.0.ez
-rw-r--r-- 1 root root 80061 Aug 5 2016 rabbitmq_shovel-3.6.5.ez
-rw-r--r-- 1 root root 19049 Aug 5 2016 rabbitmq_shovel_management-3.6.5.ez
-rw-r--r-- 1 root root 104335 Aug 5 2016 rabbitmq_stomp-3.6.5.ez
-rw-r--r-- 1 root root 51174 Aug 5 2016 rabbitmq_top-3.6.5.ez
-rw-r--r-- 1 root root 49736 Aug 5 2016 rabbitmq_tracing-3.6.5.ez
-rw-r--r-- 1 root root 26073 Aug 5 2016 rabbitmq_trust_store-3.6.5.ez
-rw-r--r-- 1 root root 27457 Aug 5 2016 rabbitmq_web_dispatch-3.6.5.ez
-rw-r--r-- 1 root root 35353 Aug 5 2016 rabbitmq_web_stomp-3.6.5.ez
-rw-r--r-- 1 root root 52104 Aug 5 2016 rabbitmq_web_stomp_examples-3.6.5.ez
-rw-r--r-- 1 root root 53652 Aug 5 2016 ranch-1.2.1.ez
-rw-r--r-- 1 root root 59 Aug 5 2016 README
-rw-r--r-- 1 root root 97805 Aug 5 2016 sockjs-0.3.4.ez
-rw-r--r-- 1 root root 526374 Aug 5 2016 webmachine-1.10.3.ez
# rabbitmq-plugins list -v
Configured: E = explicitly enabled; e = implicitly enabled
| Status: * = running on rabbit@cndgdlbvdc06-65-154-rabbitmq01-1
|/
[e*] amqp_client
Version: 3.6.5
Description: RabbitMQ AMQP Client
[ ] cowboy
Version: 1.0.3
Dependencies: [cowlib]
Description: Small, fast, modular HTTP server.
[ ] cowlib
Version: 1.0.1
Description: Support library for manipulating Web protocols.
[e*] mochiweb
Version: 2.13.1
Description: MochiMedia Web Server
[E*] prometheus
Version: 3.1.0
Description: Prometheus.io client in Erlang
[E*] prometheus_process_collector
Version: 1.0.2
Description: Prometheus.io process collector
Collector exports the current state of process metrics including cpu, memory,
file descriptor usage and native threads count as well as the process start and up times.
[E*] prometheus_rabbitmq_exporter
Version: v3.6.5.9
Dependencies: [rabbitmq_management,prometheus]
Description: RabbitMQ Prometheus.io metrics exporter
[ ] rabbitmq_amqp1_0
Version: 3.6.5
Dependencies: [amqp_client]
Description: AMQP 1.0 support for RabbitMQ
[ ] rabbitmq_auth_backend_ldap
Version: 3.6.5
Description: RabbitMQ LDAP Authentication Backend
[ ] rabbitmq_auth_mechanism_ssl
Version: 3.6.5
Description: RabbitMQ SSL authentication (SASL EXTERNAL)
[ ] rabbitmq_consistent_hash_exchange
Version: 3.6.5
Description: Consistent Hash Exchange Type
[ ] rabbitmq_event_exchange
Version: 3.6.5
Description: Event Exchange Type
[ ] rabbitmq_federation
Version: 3.6.5
Dependencies: [amqp_client]
Description: RabbitMQ Federation
[ ] rabbitmq_federation_management
Version: 3.6.5
Dependencies: [rabbitmq_management]
Description: RabbitMQ Federation Management
[ ] rabbitmq_jms_topic_exchange
Version: 3.6.5
Description: RabbitMQ JMS topic selector exchange plugin
[E*] rabbitmq_management
Version: 3.6.5
Dependencies: [rabbitmq_web_dispatch,amqp_client,
rabbitmq_management_agent]
Description: RabbitMQ Management Console
[e*] rabbitmq_management_agent
Version: 3.6.5
Description: RabbitMQ Management Agent
[ ] rabbitmq_management_visualiser
Version: 3.6.5
Dependencies: [rabbitmq_management]
Description: RabbitMQ Visualiser
[ ] rabbitmq_mqtt
Version: 3.6.5
Dependencies: [amqp_client]
Description: RabbitMQ MQTT Adapter
[ ] rabbitmq_recent_history_exchange
Version: 1.2.1
Description: RabbitMQ Recent History Exchange
[ ] rabbitmq_sharding
Version: 0.1.0
Description: RabbitMQ Sharding Plugin
[ ] rabbitmq_shovel
Version: 3.6.5
Dependencies: [amqp_client]
Description: Data Shovel for RabbitMQ
[ ] rabbitmq_shovel_management
Version: 3.6.5
Dependencies: [rabbitmq_management]
Description: Shovel Status
[ ] rabbitmq_stomp
Version: 3.6.5
Dependencies: [amqp_client]
Description: RabbitMQ STOMP plugin
[ ] rabbitmq_top
Version: 3.6.5
Dependencies: [rabbitmq_management]
Description: RabbitMQ Top
[ ] rabbitmq_tracing
Version: 3.6.5
Dependencies: [rabbitmq_management]
Description: RabbitMQ message logging / tracing
[ ] rabbitmq_trust_store
Version: 3.6.5
Description: Client certificate trust store. Provides a way to whitelist client x509 certificates.
[e*] rabbitmq_web_dispatch
Version: 3.6.5
Dependencies: [mochiweb,webmachine]
Description: RabbitMQ Web Dispatcher
[ ] rabbitmq_web_stomp
Version: 3.6.5
Dependencies: [rabbitmq_stomp,cowboy,sockjs]
Description: Rabbit WEB-STOMP - WebSockets to Stomp adapter
[ ] rabbitmq_web_stomp_examples
Version: 3.6.5
Dependencies: [rabbitmq_web_dispatch,rabbitmq_web_stomp]
Description: Rabbit WEB-STOMP - examples
[ ] sockjs
Version: 0.3.4
Description: SockJS
[e*] webmachine
Version: 1.10.3
Dependencies: [mochiweb]
Description: webmachine
image.png
image.png
image.png
image.png
参考
Prometheus + Grafana之监控RabbitMQ集群
https://blog.csdn.net/qq_32014795/article/details/117532282
RabbitMQ手册之rabbitmq-plugins
https://www.cnblogs.com/evescn/p/12511349.html
rabbitmq-3.8 整合 Prometheus & Grafana
https://www.codenong.com/jsab2f7c1e5ce0/