phrawzty / rabbitmq-collectd-plugin Goto Github PK
View Code? Open in Web Editor NEWRabbitMQ plugin for Collectd
Home Page: https://www.dark.ca/2011/02/24/rabbitmq-plugin-for-collectd/
RabbitMQ plugin for Collectd
Home Page: https://www.dark.ca/2011/02/24/rabbitmq-plugin-for-collectd/
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 !
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
Any chance you can put a GPL/Apache 2/license of your choice in the file?
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.