deadtrickster / prometheus_rabbitmq_exporter

Prometheus.io exporter as a RabbitMQ Managment Plugin plugin
MIT License
291 stars 72 forks source link

[question] Default TCP port of prometheus_rabbitmq_exporter #28

Closed boeboe closed 7 years ago

boeboe commented 7 years ago

Hi @deadtrickster

What is the default TCP port the /api/metrics endpoint is exposed to? Is this somehow configurable as well?

Best regards, Bart

boeboe commented 7 years ago

Nevermind the question, this was actually documented well...

Sample /etc/rabbitmq/rabbitmq.config showing how to customize the scrape path:

[
 {rabbit, [
   {loopback_users, []},
   {tcp_listeners, [5672]},
   {ssl_listeners, []},
   {hipe_compile, false}
 ]},
 %% Be careful to declare the "prometheus" app
 %% environment before the "rabbitmq_management" one.
 {prometheus, [
   {rabbitmq_exporter, [
     {path, "/mymetrics"}
   ]}
 ]},
 {rabbitmq_management, [
   {listener, [
     {port, 15672},
     {ssl, false}
   ]}
 ]}
].