Giter Site home page Giter Site logo

collectd-rabbitmq's Introduction

collectd-rabbitmq

A collected plugin, written in python, to collect statistics from RabbitMQ. Requires that the rabbitmq management plugin is installed.

Installation

Place the rabbitmq.py file in the plugins directory for collect. Each of these statistics have thier own custom entery in collectd's type database. To add these types run:

cat config/types.db.custom >> /usr/share/collectd/types.db

Configuration

This plugin supports a small amount of configuration options:

  • Username: The rabbitmq user. Defaults to guest.

  • Password: The rabbitmq user password. Defaults to guest.

  • Realm: The http realm for authentication. Defaults to RabbitMQ Management.

  • Host: The hostname that the rabbitmq server running on. Defaults to localhost.

  • Port: The port that the rabbitmq server is listening on. Defaults to 15672.

  • Ignore: The queue to ignore, matching by Regex. See example.

Example Configuration

LoadPlugin python
<Plugin python>
  ModulePath "/mnt/projects/collectd-rabbitmq/"
  LogTraces true
  Interactive false
  Import rabbitmq
  <Module rabbitmq>
    Username "guest"
    Password "guest"
    Realm "RabbitMQ Management"
    Host "localhost"
    Port "15672"
	<Ignore "queue">
	  Regex "amq-gen-.*"
	  Regex "tmp-.*"
	</Ignore>
  </Module>
</Plugin>

Nodes

For each node the following statistics are gathered:

  • disk_free_limit

  • fd_total

  • fd_used

  • mem_limit

  • mem_used

  • proc_total

  • proc_used

  • processors

  • run_queue

  • sockets_total

  • sockets_used

Queues

For each queue in each vhost the following statistics are gathered:

NOTE: The / vhost name is sent as default

  • message_stats
    • deliver_get
    • deliver_get_details
      • rate
    • get
    • get_details
      • rate
    • publish
    • publish_details
      • rate
    • redeliver
    • redeliver_details
      • rate
  • messages
  • messages_details
    • rate
  • messages_ready
  • messages_ready_details
    • rate
  • messages_unacknowledged
  • messages_unacknowledged_details
    • rate
  • memory
  • consumers

Exchanges

For each exchange in each vhost the following statistics are gathered:

NOTE: The / vhost name is sent as default

  • disk_free

  • disk_free_limit

  • fd_total

  • fd_used

  • mem_limit

  • mem_used

  • proc_total

  • proc_used

  • processors

  • run_queue

  • sockets_total

  • sockets_used

Developing

Whenever a new stat is to be added, it must be added to the config/types.db.custom file.

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.