作者:米五仔8 | 来源:互联网 | 2023-06-25 16:05
我们正在openshift中运行Rabbitmq版本3.8.0,并尝试启用prometheus来监视我们的Rabbitmq集群。根据rabbitmq文档,默认情况下,prometheus插件随附有rabbitmq版本3.8.0。
但是,当我们尝试启用prometheus插件时,出现如下所示的未找到插件错误。
I have no name!@rabbitmq-ss-0:/opt/rabbitmq$ rabbitmq-plugins enable rabbitmq_prometheus
rabbitmq_prometheus
Error:
{:plugins_not_found,[:prometheus_rabbitmq_exporter]}
I have no name!@rabbitmq-ss-0:/opt/rabbitmq$ rabbitmq-plugins directories
Plugin archives directory: /opt/rabbitmq/plugins
I have no name!@rabbitmq-ss-0:/opt/rabbitmq$ ls -l /opt/rabbitmq/plugins | grep prometheus
-rw-r--r--. 1 rabbitmq rabbitmq 219054 Oct 1 09:27 prometheus-4.4.0.ez
-rw-r--r--. 1 rabbitmq rabbitmq 42180 Oct 1 09:27 rabbitmq_prometheus-3.8.0.ez
I have no name!@rabbitmq-ss-0:/opt/rabbitmq$
请查看插件列表的结果。
[ ] rabbitmq_amqp1_0 3.8.1
[ ] rabbitmq_auth_backend_cache 3.8.1
[ ] rabbitmq_auth_backend_http 3.8.1
[ ] rabbitmq_auth_backend_ldap 3.8.1
[ ] rabbitmq_auth_backend_oauth2 3.8.1
[ ] rabbitmq_auth_mechanism_ssl 3.8.1
[ ] rabbitmq_consistent_hash_exchange 3.8.1
[ ] rabbitmq_event_exchange 3.8.1
[ ] rabbitmq_federation 3.8.1
[ ] rabbitmq_federation_management 3.8.1
[ ] rabbitmq_jms_topic_exchange 3.8.1
[E*] rabbitmq_management 3.8.1
[e*] rabbitmq_management_agent 3.8.1
[ ] rabbitmq_mqtt 3.8.1
[ ] rabbitmq_peer_discovery_aws 3.8.1
[e*] rabbitmq_peer_discovery_common 3.8.1
[ ] rabbitmq_peer_discovery_consul 3.8.1
[ ] rabbitmq_peer_discovery_etcd 3.8.1
[E*] rabbitmq_peer_discovery_k8s 3.8.1
[ ] rabbitmq_prometheus 3.8.1
[ ] rabbitmq_random_exchange 3.8.1
[ ] rabbitmq_recent_history_exchange 3.8.1
[ ] rabbitmq_sharding 3.8.1
[ ] rabbitmq_shovel 3.8.1
[ ] rabbitmq_shovel_management 3.8.1
[ ] rabbitmq_stomp 3.8.1
[ ] rabbitmq_top 3.8.1
[ ] rabbitmq_tracing 3.8.1
[ ] rabbitmq_trust_store 3.8.1
[e*] rabbitmq_web_dispatch 3.8.1
[ ] rabbitmq_web_mqtt 3.8.1
[ ] rabbitmq_web_mqtt_examples 3.8.1
[ ] rabbitmq_web_stomp 3.8.1
[ ] rabbitmq_web_stomp_examples 3.8.1
错误已明确显示:
Error:
{:plugins_not_found,[:prometheus_rabbitmq_exporter]
您必须一次启用prometheus_rabbitmq_exporter
插件,然后删除该插件文件。您必须找到enabled_plugins
文件并对其进行手动编辑以删除prometheus_rabbitmq_exporter
。该文件通常位于/var/lib/rabbitmq
或该位置的子目录中。
注意: RabbitMQ团队监视rabbitmq-users
mailing list,并且有时仅在StackOverflow上回答问题。