Giter VIP home page Giter VIP logo

rabbitmq-collectd-plugin's Introduction

This is a rudimentary RabbitMQ plugin for Collectd.  It is written in Python, and thus requires the use of the Python plugin for Collectd.

It will accept 4 options from the Collectd plugin configuration :

    Locations of binaries:
    RmqcBin = /usr/sbin/rabbitmqctl
    PmapBin = /usr/bin/pmap
    PidFile = /var/run/rabbitmq/pid

    Logging:
    Verbose = False

It will attempt to gather the following information:

    From rabbitmqctl list_queues:
    messages
    memory
    consumser

    From pmap of beam.smp:
    memory mapped
    memory writeable/private (used)
    memory shared

The script is licensed using the Apache License, Version 2.0 :
http://www.apache.org/licenses/LICENSE-2.0

I invite you to peruse the commit history for the list of contributors :
https://github.com/phrawzty/rabbitmq-collectd-plugin/commits/master

GitHub pull requests welcome !

rabbitmq-collectd-plugin's People

Contributors

loe avatar phrawzty avatar stephenmcd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rabbitmq-collectd-plugin's Issues

Error spawning /usr/lib/erlang/erts-5.8.5/bin/epmd -daemon (error 10)

Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: read_callback
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Line: Error spawning /usr/lib/erlang/erts-5.8.5/bin/epmd -daemon (error 10)
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: /usr/sbin/rabbitmqctl reports 0 memory usage. This is probably incorrect.
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: [rmqctl] Messages: 0, Memory: 0, Consumers: 0
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: [pmap] Mapped: 2376908, Used: 130316, Shared: 0
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: About to trigger the dispatch..
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Dispatching pmap_used : 130316
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Dispatching ctl_messages : 0
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Dispatching ctl_memory : 0
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Dispatching pmap_mapped : 2376908
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Dispatching ctl_consumers : 0
Mar 26 10:18:52 p1 collectd[9181]: rabbitmq_info: Dispatching pmap_shared : 0

Memory Leak

collectd 4.10.1

I have a memory leak with this script, it eventually uses up all the memory on the machine and oomkiller axes collectd. I have other python scripts that run with no problems though.

Does this work for you? 32/64bit?

License?

Any chance you can put a GPL/Apache 2/license of your choice in the file?

Issue with no memory or message data

Hi,

I have tried running this and it seems to give blank responses for the rabbitmq data. The PMAP data seems to be running ok.

Details:
[2014-11-12 14:13:04] rabbitmq_info: /usr/sbin/rabbitmqctl reports 0 memory usage. This is probably incorrect.
[2014-11-12 14:13:04] rabbitmq_info: [rmqctl] Messages: 0, Memory: 0, Consumers: 0
[2014-11-12 14:13:04] rabbitmq_info: [pmap] Mapped: 684544, Used: 201012, Shared: 0
[2014-11-12 14:13:04] rabbitmq_info: About to trigger the dispatch..
[2014-11-12 14:13:04] rabbitmq_info: Dispatching pmap_used : 201012
[2014-11-12 14:13:04] rabbitmq_info: Dispatching ctl_messages : 0
[2014-11-12 14:13:04] rabbitmq_info: Dispatching ctl_memory : 0
[2014-11-12 14:13:04] rabbitmq_info: Dispatching pmap_mapped : 684544
[2014-11-12 14:13:04] rabbitmq_info: Dispatching ctl_consumers : 0
[2014-11-12 14:13:04] rabbitmq_info: Dispatching pmap_shared : 0

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.