我们正在openshift中运行rabbitmq 3.8.0版,并尝试启用prometheus来监控我们的rabbitmq集群。根据rabbitmq文档,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
1条答案
按热度按时间mbzjlibv1#
错误是显而易见的:
您必须启用
prometheus_rabbitmq_exporter
插件,然后删除插件文件。您必须找到enabled_plugins
文件并手动编辑它以删除prometheus_rabbitmq_exporter
。该文件通常位于/var/lib/rabbitmq
或该位置的子目录中。