prometheus_rabbitmq_exporter icon indicating copy to clipboard operation
prometheus_rabbitmq_exporter copied to clipboard

Questions regarding this exporter

Open nexusguy59 opened this issue 6 years ago • 11 comments

Hey Guys,

I am very very new to this and I have questions. Where would I ask such questions?

Thanks, Michael

nexusguy59 avatar Apr 17 '18 19:04 nexusguy59

Welcome,

it's better to ask here so we can share the knowledge. However, you can find me on erlang IRC cannel (freenode) as well as Erlang/Elixir Slack.

deadtrickster avatar Apr 17 '18 19:04 deadtrickster

Hello deadtrickster,

Thank you for responding, I am very new to prometheus however I have installed quite a few exporters. Your exporter has no install instructions what so ever. Is there anyway you can walk me through your process of installing. I am not as smart as some of you folks so I would need some hand holding through it. I have your deadtrickster/rabbitmq_prometheus up and running. But I don't understand what the plugins are for because there are no ports for the prometheus_rabbitmq_exporter-v3.7.2.1.ez <- What is this for? How does it work? Also if there is an exporter could you share the install process so I can get it working please.

Just so you understand I have installed a prometheus Jira and Conluence plugins and I have also install node_exporter, rabbitmq_exporter by kbudde but his attaches to the ip address on a local machine, that won't work in the cloud. I have also insalled a proxmoxve exporter, cAdvisor Exporter, Docker_Exporter, and a WMI_exporter. So I understand how they work and what they do. I just need clear install instructions to get yours working for my project. This is like a critical thing I need to get working.

Thank you for your time, Michael

nexusguy59 avatar Apr 18 '18 13:04 nexusguy59

Michael,

this exporter doesn't need new ports because it attaches itself to rabbitmq management http endpoint.

prometheus_rabbitmq_exporter-v*.ex is a plugin for rabbitmq, so you need to read RabbitMQ plugin installation instructions and then download and enable the plugins.    

rabbitmq-plugins enable accept
rabbitmq-plugins enable prometheus
rabbitmq-plugins enable prometheus_cowboy
rabbitmq-plugins enable prometheus_httpd
rabbitmq-plugins enable prometheus_rabbitmq_exporter

 

deadtrickster avatar Apr 18 '18 13:04 deadtrickster

Hello, I have read them and enabled the plugins, so now i need to know which port to point my prometheus to. I am sorry I don't mean to sound stupid but I am miffed as to which port it is using. I also understand that it has an endpoint that can use /metrics which I am aware of however not sure how to implement it.

Here is what i have at the moment: 6312c03d2c8e deadtrickster/rabbitmq_prometheus "docker-entrypoint.s…" 19 hours ago Up 17 hours 0.0.0.0:4369->4369/tcp, 0.0.0.0:5671->5671/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:9419->9419/tcp, 5672/tcp, 0.0.0.0:15671-15672->15671-15672/tcp, 25672/tcp admiring_liskov

This is after enabling the plugins: [E*] prometheus_rabbitmq_exporter v3.7.2.1 [ ] rabbitmq_amqp1_0 3.7.0 [ ] rabbitmq_auth_backend_cache 3.7.0 [ ] rabbitmq_auth_backend_http 3.7.0 [ ] rabbitmq_auth_backend_ldap 3.7.0 [ ] rabbitmq_auth_mechanism_ssl 3.7.0 [ ] rabbitmq_consistent_hash_exchange 3.7.0 [ ] rabbitmq_event_exchange 3.7.0 [ ] rabbitmq_federation 3.7.0 [ ] rabbitmq_federation_management 3.7.0 [ ] rabbitmq_jms_topic_exchange 3.7.0 [E*] rabbitmq_management 3.7.0 [e*] rabbitmq_management_agent 3.7.0 [ ] rabbitmq_mqtt 3.7.0 [ ] rabbitmq_peer_discovery_aws 3.7.0 [ ] rabbitmq_peer_discovery_common 3.7.0 [ ] rabbitmq_peer_discovery_consul 3.7.0 [ ] rabbitmq_peer_discovery_etcd 3.7.0 [ ] rabbitmq_peer_discovery_k8s 3.7.0 [ ] rabbitmq_random_exchange 3.7.0 [ ] rabbitmq_recent_history_exchange 3.7.0 [ ] rabbitmq_sharding 3.7.0 [ ] rabbitmq_shovel 3.7.0 [ ] rabbitmq_shovel_management 3.7.0 [ ] rabbitmq_stomp 3.7.0 [ ] rabbitmq_top 3.7.0 [ ] rabbitmq_tracing 3.7.0 [ ] rabbitmq_trust_store 3.7.0 [e*] rabbitmq_web_dispatch 3.7.0 [ ] rabbitmq_web_mqtt 3.7.0 [ ] rabbitmq_web_mqtt_examples 3.7.0 [ ] rabbitmq_web_stomp 3.7.0 [ ] rabbitmq_web_stomp_examples 3.7.0

Thank you for your time and hard work by the way. Michael

nexusguy59 avatar Apr 18 '18 13:04 nexusguy59

Default management port is 15672. You can configure the path as described in the configuration section of the README:

path - scrape endpoint. Default is "metrics". Note RabbitMQ translates this to "/api/metrics";

so default url will be http://localhost:15672/api/metrics

deadtrickster avatar Apr 18 '18 14:04 deadtrickster

Alright sir thank you I will work from that and see what i can do, Have a great day and again please understand I really appreciate your time. Thank you again.

nexusguy59 avatar Apr 18 '18 14:04 nexusguy59

No problem, I hope you'll have your stuff working soon!

deadtrickster avatar Apr 18 '18 14:04 deadtrickster

Hi nexusguy59,

Can you pls share if you were able to make the exporter work with Prometheus? I managed to have all required plugins enabled, but curl to the default URL http://localhost:15672/api/metrics not returning any data.

wat101 avatar Sep 04 '18 15:09 wat101

Hi @deadtrickster I have 3 node RabbitMQ cluster and I was wondering what the best way of monitoring the cluster is. Is it to install rabbitmq_exporter plugin to all 3 nodes and let prometheus hit the cluster's load balancer or should it only hit one node always?

wimoMisterX avatar Feb 07 '19 13:02 wimoMisterX

As far as I understand it you would need one on all 3 nodes however I believe you can use one exporter to get metrics from all 3, but i haven't done that.

On Thu, Feb 7, 2019, 8:59 AM Wimodya Athukorala <[email protected] wrote:

Hi @deadtrickster https://github.com/deadtrickster I have 3 node RabbitMQ cluster and I was wondering what the best way of monitoring the cluster is. Is it to install rabbitmq_exporter plugin to all 3 nodes and let prometheus hit the cluster's load balancer or should it only hit one node always?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/deadtrickster/prometheus_rabbitmq_exporter/issues/42#issuecomment-461429569, or mute the thread https://github.com/notifications/unsubscribe-auth/AEuslwO63y7DgXM2xkDMPZryAOKPvgTfks5vLDFHgaJpZM4TY4em .

nexusguy59 avatar Feb 07 '19 15:02 nexusguy59

Hi I enabled plugins and restart rabbitmq but the url doesn't return nothing. how to debug it? what do i check? @deadtrickster

AzamAhmadloo avatar Sep 04 '19 04:09 AzamAhmadloo