Branch: master
Find file History
truongnh1992 and simonpasquier Secure http links (#5244)
Fix http link to https link for secure, modify http to https
in the links of project. Have some http links doesn't
redirect into https.

Co-Authored-By: Nguyen Van Trung trungnv@vn.fujitsu.com
Signed-off-by: Nguyen Hai Truong <truongnh@vn.fujitsu.com>
Latest commit 5fbda4c Feb 21, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Secure http links (#5244) Feb 21, 2019
rc.yml Fix typos and moving example to the correct place Jan 23, 2016
svc.yml example: Commented out annotation examples as they are meant only for… May 2, 2018

README.md

RabbitMQ Scraping

This is an example on how to setup RabbitMQ so Prometheus can scrape data from it. It uses a third party RabbitMQ exporter.

Since the RabbitMQ exporter needs to scrape the RabbitMQ management API to scrape data, and it defaults to localhost, it is easier to simply embed the kbudde/rabbitmq-exporter on the same pod as RabbitMQ, this way they share the same network.

With this pod running you will have the exporter scraping data, but Prometheus has not yet found the exporter and is not scraping data from it.

For more details on how to use Kubernetes service discovery take a look at the documentation and at the available examples.

After you got Kubernetes service discovery up and running you just need to advertise that RabbitMQ is exposing metrics. To do that you need to define a service that:

  • Exposes the exporter port
  • Has a prometheus.io/scrape: "true" annotation
  • Has a prometheus.io/port: "9090" annotation

And you should be able to see your RabbitMQ exporter being scraped on the Prometheus status page. Since the IP that will be scraped will be the pod endpoint it is important that the node where Prometheus is running has access to the Kubernetes overlay network (flannel, Weave, AWS, or any of the other options that Kubernetes gives to you).