Giter Club home page Giter Club logo

rabbitmq_exporter's Introduction

RabbitMQ Exporter Build Status Coverage Status

Prometheus exporter for RabbitMQ metrics, based on RabbitMQ HTTP API.

Dependencies

Setting up locally rabbitMQ and exporter with docker

  1. Start rabbitMQ

     $ docker run -d -e RABBITMQ_NODENAME=my-rabbit --name my-rabbit -p 15672:15672 -p 9090:9090 rabbitmq:3-management
    
  2. Start rabbitmq_exporter in container.

     $ docker run -d --net=container:my-rabbit kbudde/rabbitmq-exporter
    

Now your metrics are available through http://localhost:9090/metrics.

The rabbitmq_exporter is sharing the network interface with the rabbitmq container -> it is possible to use localhost and default user/password. Disadvantage: you have to publish the port (9090) in the rabbitmq container.

Configuration

Rabbitmq_exporter uses environment variables for configuration. Settings:

  • RABBIT_URL: "http://localhost:15672",
  • RABBIT_USER: "guest",
  • RABBIT_PASSWORD: "guest",
  • PUBLISH_PORT: "9090",
  • OUTPUT_FORMAT: "TTY", //change to JSON if needed

Example

OUTPUT_FORMAT=JSON PUBLISH_PORT=9099 ./rabbitmq_exporter

Metrics

Overview

Total number of:

  • channels
  • connections
  • consumers
  • exchanges
  • queues

Queues

For each queue the number of:

  • messages_ready
  • messages_unacknowledged
  • messages
  • messages_ready_ram
  • messages_unacknowledged_ram
  • messages_ram
  • messages_persistent
  • message_bytes
  • message_bytes_ready
  • message_bytes_unacknowledged
  • message_bytes_ram
  • message_bytes_persistent
  • disk_reads
  • disk_writes
  • consumers
  • consumer_utilisation
  • memory
  • messages_published_total
  • messages_confirmend_total
  • messages_delivered_total
  • messages_delivered_noack_total
  • messages_get_total
  • messages_get_noack_total
  • messages_redelivered_total
  • messages_returned_total

Docker

There are two options to build the docker image locally.

  1. Build using the sdurrheimer/alpine-golang-make-onbuild images (Go 1.5.3 is used)

    docker -t rabbitmq-exporter:onbuild .
    
  2. Build using the scratch image with static binary (go has to be installed locally)

    make docker
    

rabbitmq_exporter's People

Contributors

kbudde avatar kotchaosu avatar williamsbdev avatar ilonajulczuk avatar jemc avatar nathanpacey avatar

Watchers

Ben Kiefer avatar Eric Gerling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.