Giter Site home page Giter Site logo

nytimes / collectd-rabbitmq Goto Github PK

View Code? Open in Web Editor NEW
143.0 143.0 80.0 170 KB

A collected plugin, written in python, to collect statistics from RabbitMQ.

Home Page: https://collectd-rabbitmq.readthedocs.org/

License: Other

Python 97.68% Makefile 2.32%

collectd-rabbitmq's People

Contributors

abompard avatar btall avatar bufadu avatar caduri avatar jfiore avatar jimbydamonk avatar lalinsky avatar lebauce avatar lenzenmi avatar monkey670 avatar mre avatar mrunge avatar nordewal avatar redterror avatar ryanvm avatar sathlan avatar ttarczynski 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  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  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  avatar  avatar  avatar  avatar

Watchers

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

collectd-rabbitmq's Issues

Enable monitoring on rabbit? plugin error message

Hi,

I am seeing this error in /var/log/messages:

Apr 17 17:47:11 rabbit-ddev collectd[28571]: ValueError: invalid literal for float(): disk_free_monitoring_disabled
Apr 17 17:47:11 rabbit-ddev collectd[28571]: read-function of plugin `python.collectd_rabbitmq.collectd_plugin' failed. Will suspend it for 20.000 seconds.

Does this mean the plugin was expecting a float, but Rabbit returned the textual error "disk_free_monitoring_disabled" instead?

There is a disk_free entry in types.db:

disk_free value:GAUGE:0:U

It sounds like there is something on the Rabbit side that needs to be enabled. Do you know what it is? Should "collect_statistics" be set to in the rabbit configuration file to "coarse"? The default is "none," but I am not sure if that is related.

Update: That made no difference. However, I've discovered the server also returns this error when the management api is checked via curl:

curl localhost:15672/api/nodes/{nodename}/ -u {user} | jq .

A line included in the response:

"disk_free_limit": "disk_free_monitoring_disabled"

Allow to whitelist queues

Currently this plugin gets full list of queues (with or without ignore options)

If this list happens to be large, it takes minutes to fetch the data. Currently /api/queues supports parameter name, which allows you to filter queues by substring or regex without touching unneeded queues at all. This works much faster

collectd python lib version

What is the version of collectd python lib do you use? The latest from pip complains about the register method.

Exception Dataset not found

Hi, trying configure this plugin on ubuntu 18.04. After restart collectd get this in logs.
I use default config, flash installed collectd 5.7.2 and rabbitmq 3.6.10. What i can do to fix it?
config:

TypesDB "/usr/share/collectd/types.db.custom" 
LoadPlugin python
<Plugin python>
  LogTraces true
  Interactive false
  Import "collectd_rabbitmq.collectd_plugin"
  <Module "collectd_rabbitmq.collectd_plugin">
    Username "guest"
    Password "guest"
    Realm "RabbitMQ Management"
    Host "localhost"
    Port "15672"
    <Ignore "queue">
      Regex "^amq"
    </Ignore>
    <Ignore "exchange">
      Regex "my-exchange"
    </Ignore>
  </Module>
</Plugin>

Log file:

Oct 29 11:37:54 test-chirkov collectd[11487]: Initialization complete, entering read-loop.
Oct 29 11:37:54 test-chirkov collectd[11487]: rrdtool plugin: Adjusting "RandomTimeout" to 0.000 seconds.
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.disk_free.None. Exception Dataset disk_free not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.disk_free_details.avg. Exception Dataset disk_free_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.disk_free_details.avg_rate. Exception Dataset disk_free_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.disk_free_details.rate. Exception Dataset disk_free_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.disk_free_details.sample. Exception Dataset disk_free_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.disk_free_limit.None. Exception Dataset disk_free_limit not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.fd_total.None. Exception Dataset fd_total not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.fd_used.None. Exception Dataset fd_used not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.fd_used_details.avg. Exception Dataset fd_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.fd_used_details.avg_rate. Exception Dataset fd_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.fd_used_details.rate. Exception Dataset fd_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.fd_used_details.sample. Exception Dataset fd_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.mem_limit.None. Exception Dataset mem_limit not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.mem_used.None. Exception Dataset mem_used not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.mem_used_details.avg. Exception Dataset mem_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.mem_used_details.avg_rate. Exception Dataset mem_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.mem_used_details.rate. Exception Dataset mem_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.mem_used_details.sample. Exception Dataset mem_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.proc_total.None. Exception Dataset proc_total not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.proc_used.None. Exception Dataset proc_used not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.proc_used_details.avg. Exception Dataset proc_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.proc_used_details.avg_rate. Exception Dataset proc_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.proc_used_details.rate. Exception Dataset proc_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.proc_used_details.sample. Exception Dataset proc_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.processors.None. Exception Dataset processors not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.run_queue.None. Exception Dataset run_queue not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.sockets_total.None. Exception Dataset sockets_total not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.sockets_used.None. Exception Dataset sockets_used not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.sockets_used_details.avg. Exception Dataset sockets_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.sockets_used_details.avg_rate. Exception Dataset sockets_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.sockets_used_details.rate. Exception Dataset sockets_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.test-chirkov.None.sockets_used_details.sample. Exception Dataset sockets_used_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.publish.None. Exception Dataset publish not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.publish. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.ack.None. Exception Dataset ack not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.ack. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.deliver_get.None. Exception Dataset deliver_get not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.deliver_get. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.confirm.None. Exception Dataset confirm not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.confirm. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.redeliver.None. Exception Dataset redeliver not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.redeliver. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.deliver.None. Exception Dataset deliver not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.deliver. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.deliver_noack.None. Exception Dataset deliver_noack not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_stats.rabbitmq_details.deliver_no_ack. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_consumers.None. Exception Dataset rabbitmq_consumers not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_queues.None. Exception Dataset rabbitmq_queues not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_exchanges.None. Exception Dataset rabbitmq_exchanges not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_connections.None. Exception Dataset rabbitmq_connections not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_channels.None. Exception Dataset rabbitmq_channels not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_messages.None. Exception Dataset rabbitmq_messages not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_details.messages. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_messages_ready.None. Exception Dataset rabbitmq_messages_ready not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_details.messages_ready. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_messages_unacknowledged.None. Exception Dataset rabbitmq_messages_unacknowledged not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch [email protected]_totals.rabbitmq_details.messages_unacknowledged. Exception Dataset rabbitmq_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.ack.None. Exception Dataset ack not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish.None. Exception Dataset publish not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_in.None. Exception Dataset publish_in not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_in_details.avg. Exception Dataset publish_in_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_in_details.avg_rate. Exception Dataset publish_in_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_in_details.rate. Exception Dataset publish_in_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_in_details.sample. Exception Dataset publish_in_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_out.None. Exception Dataset publish_out not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_out_details.avg. Exception Dataset publish_out_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_out_details.avg_rate. Exception Dataset publish_out_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_out_details.rate. Exception Dataset publish_out_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.publish_out_details.sample. Exception Dataset publish_out_details not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.confirm.None. Exception Dataset confirm not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.deliver.None. Exception Dataset deliver not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.deliver_noack.None. Exception Dataset deliver_noack not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.get.None. Exception Dataset get not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.get_noack.None. Exception Dataset get_noack not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.deliver_get.None. Exception Dataset deliver_get not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.redeliver.None. Exception Dataset redeliver not found
Oct 29 11:37:54 test-chirkov collectd[11487]: Failed to dispatch rabbitmq_default.exchanges.amq.fanout.return.None. Exception Dataset return not found

Statistics for Queue erroring out

[2016-09-28 15:43:58] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq-1.7.1-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 93, in read
PLUGIN.read()
[2016-09-28 15:43:58] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq-1.7.1-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 126, in read
self.dispatch_overview()
[2016-09-28 15:43:58] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq-1.7.1-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 219, in dispatch_overview
subtree_name, type_name)
[2016-09-28 15:43:58] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq-1.7.1-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 303, in dispatch_values
metric.type = metric_type
[2016-09-28 15:43:58] TypeError: Dataset rabbitmq_queues not found
[2016-09-28 15:43:58] read-function of plugin `python.collectd_rabbitmq.collectd_plugin' failed. Will suspend it for 120 seconds.

Why are there hostnames as measurements?

Are the individual hostnames in a cluster supposed to be logged as measurements themselves, unlike say "proceses_value" which records hostnames inside that measurement?

In my InfluxDB database, I see the hostnames logged as measurements, is this normal?

See attached image for reference.

img_27032017_131525_0

Configurable list of collected stats

Currently all collectable stats are hard-coded in file "collectd_rabbitmq/collectd_plugin.py". It is possible create configuration file for all stats that i want to collect?

For example: in my case i need only few stats including number of consumers per queue and i had to manually add it to the code, what is not nice.

401 returned when using plugin - even though standard Basic Auth curls work using creds

I am using Python 2.7.3

Collectd config looks like this:-

TypesDB "/usr/share/collectd/types.db" LoadPlugin python <Plugin python> LogTraces true Interactive false Import "collectd_rabbitmq.collectd_plugin" <Module "collectd_rabbitmq.collectd_plugin"> Username "<username>" Password "<password>" Realm "RabbitMQ Management" Host "localhost" Port "15672" </Module> </Plugin>

My Error's look like this in the collectd log:-

[2016-04-25 15:09:10] HTTP Error: HTTP Error 401: Unauthorized [2016-04-25 15:09:10] Unhandled python exception in read callback: TypeError: 'NoneType' object is not iterable [2016-04-25 15:09:10] Traceback (most recent call last): [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/collectd_plugin.py", line 89, in read PLUGIN.read() [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/collectd_plugin.py", line 114, in read self.dispatch_exchanges(vhost_name) [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/collectd_plugin.py", line 182, in dispatch_exchanges stats = self.rabbit.get_exchange_stats(vhost_name=vhost_name) [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/rabbit.py", line 135, in get_exchange_stats return self.get_stats('exchange', exchange_name, vhost_name) [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/rabbit.py", line 180, in get_stats names = stat_name_func(vhost) [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/rabbit.py", line 126, in get_exchange_names return self.get_names(all_exchanges) [2016-04-25 15:09:10] File "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq/rabbit.py", line 43, in get_names for item in items: [2016-04-25 15:09:10] TypeError: 'NoneType' object is not iterable [2016-04-25 15:09:10] read-function of pluginpython.collectd_rabbitmq.collectd_plugin' failed. Will suspend it for 160.000 seconds.`

If I use similar urllib2 code as a test my api call works fine:-

import urllib2 SERVER = 'localhost:15672' authinfo = urllib2.HTTPPasswordMgrWithDefaultRealm() authinfo.add_password('RabbitMQ Management', SERVER, '', '') page = 'HTTP://'+SERVER+'/api/vhosts' handler = urllib2.HTTPBasicAuthHandler(authinfo) myopener = urllib2.build_opener(handler) opened = urllib2.install_opener(myopener) output = urllib2.urlopen(page) print output.read()

Whats strange about the exceptions is that even though they happen, I eventually have data in my graphite installation but can be delayed significantly.

Exception could not convert string to float

Hello. I was installing and setup everything required for this plugin. but when I restart the collecd service I'm getting this error:

[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.ci-notification.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.cd-notification.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.ci-request.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.pd-request.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.pd-notification.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.ci-request.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.dssp-notification.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.cd-notification.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.ci-notification.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.dssp-notification.queue.consumer_utilisation.None. Exception could not convert string to float:
[2018-11-16 20:37:59] Failed to dispatch rabbitmq_*_project01.queues.cd-request.dead-letter.queue.consumer_utilisation.None. Exception could not convert string to float:

Any idea about this?

thanks in advance

plugin version in pypi

The version of the plugin should be 1.18 but in pypi its still 1.17
can you take a look?

TypeError: 'int' object is not iterable

I have the following error:
[2015-02-12 17:19:15] File "/usr/lib/collectd/rabbitmq.py", line 224, in read
dispatch_queue_metrics(queue_data, vhost)
[2015-02-12 17:19:15] File "/usr/lib/collectd/rabbitmq.py", line 136, in dispatch_queue_metrics
values = list(queue.get(name, 0),)
[2015-02-12 17:19:15] TypeError: 'int' object is not iterable

I looked in the code and the first name in QUEUE_STATS is 'memory'. So a queue.get('memory', 0) is effectively returning an int. It seems that it is the commit 0bf1abc that introduces the problem.

vhost leading '/' is not properly escaped

Hi,
I'm using collectd-rabbitmq with collectd 5.4.1 and I have a very strange behavior with vhost naming : '/' is url encoded like :

rabbitmq_%2F
rabbitmq_%2Ffoo

instead of

rabbitmq_default
rabbitmq_slash_foo

In rabbit.py, vhost name is url encoded

        for item in items:
            name = item.get('name', None)
            if name:
                name = urllib.quote(name, '')
                names.append(name)
        return names

Unless I missed something, there is no urllib.unquote() neither before nor in generate_vhost_name().

Thanks !

Plugin hangs on startup

Using the latest version, I frequently find that the plugin simply hangs. My collectd config:

  LogTraces true
  Interactive false
  Import "collectd_rabbitmq.collectd_plugin"
  <Module "collectd_rabbitmq.collectd_plugin">

    Username "guest"
    Password "guest"
    Realm "RabbitMQ Management"
    Host "localhost"
    Port "15672"

  </Module>
</Plugin>

And the resulting log:

[2017-03-31 16:40:50] plugin_load: plugin "python" successfully loaded.
[2017-03-31 16:40:51] plugin_load: plugin "write_log" successfully loaded.
[2017-03-31 16:40:52] Initialization complete, entering read-loop.

When I compiled collectd with debug enabled, it would log one additional line before hanging:

[2017-03-30 20:22:03] Getting info for http://localhost:15672/api/nodes

A curl to that route returns successfully (and very quickly!), yet the collectd plugin simply hangs.
Any ideas? I can get it to error (say, put the wrong username in the config), but can't get it to repeatedly behave properly. It has worked a handful of times, but I can't consistently reproduce that.

rabbit.get_queues() default value is invalid

While working on my PR I ran into this bug where if I simply called rabbit.get_queues() it generated the following error:

Traceback (most recent call last):
  File "test.py", line 14, in <module>
    print len(rabbit.get_queues())
  File "/home/stack/src/rabbit.py", line 148, in get_queues
    return self.get_info("queues", vhost_name)
  File "/home/stack/src/rabbit.py", line 55, in get_info
    url = "{0}/{1}".format(self.api, '/'.join(args))
TypeError: sequence item 1: expected string, NoneType found

Which tracks back to vhost_name=None at collectd_rabbitmq/rabbit.py#L149, though I can't really determine what the default value should be since the test I was running technically shouldn't have been directly calling that function at all.

Metric names collision in clusters with graphite output

When using this plugin with write_graphite output on multiple rabbitmq nodes I have the exchanges and queues metrics overwritten by each node.

I use the following prefix configuration for write_graphite:

    Prefix "${cluster}.collectd."

Then other plugins write to graphite paths like:

mq.collectd.mq1.memory.memory-free
mq.collectd.mq2.memory.memory-free

where:

  • mq -- cluster name
  • mq1 -- host name
  • memory -- plugin name

But the collectd-rabbitmq exchanges and queues metrics use the graphite vhost name in place of the host name. Then metrics from multiple nodes (in the same cluster) are written with the same graphite path, e.g.:

mq.collectd.rabbitmq_default.queues-test.ack

where:

  • default -- rabbitmq vhost name
  • test -- rabbitmq queue name

I need a possibility to include hostname in the exchanges and queues metrics names coming from collectd-rabbitmq.

Dataset messages_ready not found

Even after updating the types.db file, however still facing the issue. Sharing the error message along with collectd config. please help to fix.

Error Log:
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.get_details.avg. Exception Dataset get_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.get_details.avg_rate. Exception Dataset get_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.get_details.rate. Exception Dataset get_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.get_details.sample. Exception Dataset get_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.redeliver_details.avg. Exception Dataset redeliver_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.redeliver_details.avg_rate. Exception Dataset redeliver_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.redeliver_details.rate. Exception Dataset redeliver_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.redeliver_details.sample. Exception Dataset redeliver_details not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.consumers.None. Exception Dataset consumers not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.messages.None. Exception Dataset messages not found
[2017-12-13 11:28:30] Failed to dispatch rabbitmq_default.queues.xxx.messages_ready.None. Exception Dataset messages_ready not found

Collectd config:
TypesDB "/usr/share/collectd/types.db.custom"
LoadPlugin python
LogTraces true
Interactive false
Import "collectd_rabbitmq.collectd_plugin"
<Module "collectd_rabbitmq.collectd_plugin">
Username "guest"
Password "guest"
Realm "RabbitMQ Management"
Host "localhost"
Port "15672"

python3 migration/support

python2 stops getting updates January 1, 2020. Is this plugin going to migrate to python3 before that date? Are there plans for this?

Format issue with graphite output

Reopening issue #8

When outputting via write_graphite plugin, the node stats are outputted correctly, e.g.:
server1.rabbitmq.disk_free

However, the exchange and queue stats do not prefix the server name correctly:
rabbitmq_default.exchanges-logstash_backfill1.ack

Not sure why the servername would show up on one but not the other?

Still ticket was closed with the remark:

queue/exchange stats are shared across nodes in a cluster, rather than reported per node.

prefixing with hostname or not, at least there must be an option to prefix the rabbitmq_default namespace (without using the collectd global namespace) because if you are collecting from multiple clusters (or multiple individual nodes) and writing the metrics in the same (graphite) backend then you end up unintentionally merging metrics into 1 namespace.

Some data points are always empty

According to the RabbitMQ API documentation, the avg, avg_rate and samples values will only appear if you request a specific time period by appending query parameters to the URL. The plugin never does that so these values are always empty. I think the plugin should not collect those values at all.

Also, the plugin always collects publish_in and publish_out values, even though they only make sense for exchanges, and are therefore always empty for queues. Similarly, the other metrics are always empty for exchanges.

All these empty values end up generating RRD files, adding up to IO load and disk space on the collectd server, etc.

In general, I suggest that if a value isn't found in the dictionary resulting from the API call, no value should be returned by the collectd plugin (instead of returning zero). This way, no enernally empty graph will be generated. This is also better from a RRD point of view, they can handle missing values just fine and it will not mess up the average calculation.

I'll send a PR to fix this, it's just a matter of not using .get(name, 0) when reading the dictionary.

HTTP Error: HTTP Error 401: Unauthorized for new RabbitMQ

Hi!

I have collectd-rabbitmq 1.20.0 and RabbitMQ 3.7.7. And all it togever gives empty metrics and errors:

liver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTVAL50MT.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish.None. Exception Dataset publish not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.avg. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.avg_rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.sample. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_in.None. Exception Dataset publish_in not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_out.None. Exception Dataset publish_out not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.confirm.None. Exception Dataset confirm not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.deliver.None. Exception Dataset deliver not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.deliver_noack.None. Exception Dataset deliver_noack not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.get.None. Exception Dataset get not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.get_noack.None. Exception Dataset get_noack not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.deliver_get.None. Exception Dataset deliver_get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTVAL50MT.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.redeliver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd: [2018-11-06 09:11:10] Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTVAL50MT.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTVAL50MT.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish.None. Exception Dataset publish not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish_details.avg. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish_details.avg_rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish_details.rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish_details.sample. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish_in.None. Exception Dataset publish_in not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.publish_out.None. Exception Dataset publish_out not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.confirm.None. Exception Dataset confirm not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.deliver.None. Exception Dataset deliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.deliver_noack.None. Exception Dataset deliver_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.get.None. Exception Dataset get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.get_noack.None. Exception Dataset get_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.deliver_get.None. Exception Dataset deliver_get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.redeliver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLSM.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish.None. Exception Dataset publish not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish_details.avg. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish_details.avg_rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish_details.rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish_details.sample. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish_in.None. Exception Dataset publish_in not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.publish_out.None. Exception Dataset publish_out not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.confirm.None. Exception Dataset confirm not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.deliver.None. Exception Dataset deliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.deliver_noack.None. Exception Dataset deliver_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.get.None. Exception Dataset get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.get_noack.None. Exception Dataset get_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.deliver_get.None. Exception Dataset deliver_get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.redeliver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_INFORMDAY.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish.None. Exception Dataset publish not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish_details.avg. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish_details.avg_rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish_details.rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish_details.sample. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish_in.None. Exception Dataset publish_in not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.publish_out.None. Exception Dataset publish_out not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.confirm.None. Exception Dataset confirm not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.deliver.None. Exception Dataset deliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.deliver_noack.None. Exception Dataset deliver_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.get.None. Exception Dataset get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.get_noack.None. Exception Dataset get_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.deliver_get.None. Exception Dataset deliver_get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.redeliver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_MTVALLPSM.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish.None. Exception Dataset publish not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.avg. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.avg_rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_details.sample. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_in.None. Exception Dataset publish_in not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.publish_out.None. Exception Dataset publish_out not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.confirm.None. Exception Dataset confirm not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.deliver.None. Exception Dataset deliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.deliver_noack.None. Exception Dataset deliver_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.get.None. Exception Dataset get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.get_noack.None. Exception Dataset get_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.deliver_get.None. Exception Dataset deliver_get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.redeliver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RENOCH_EVA.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish.None. Exception Dataset publish not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish_details.avg. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish_details.avg_rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish_details.rate. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish_details.sample. Exception Dataset publish_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish_in.None. Exception Dataset publish_in not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.publish_out.None. Exception Dataset publish_out not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.confirm.None. Exception Dataset confirm not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.deliver.None. Exception Dataset deliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.deliver_noack.None. Exception Dataset deliver_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.get.None. Exception Dataset get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.get_noack.None. Exception Dataset get_noack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.deliver_get.None. Exception Dataset deliver_get not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.redeliver.None. Exception Dataset redeliver not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.return.None. Exception Dataset return not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.consumers.None. Exception Dataset consumers not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.consumer_utilisation.None. Exception Dataset consumer_utilisation not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.messages.None. Exception Dataset messages not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.messages_ready.None. Exception Dataset messages_ready not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_RECHFULL_MTV_PST.messages_unacknowledged.None. Exception Dataset messages_unacknowledged not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_ACTIVATE.ack.None. Exception Dataset ack not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_ACTIVATE.ack_details.avg. Exception Dataset ack_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_ACTIVATE.ack_details.avg_rate. Exception Dataset ack_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_ACTIVATE.ack_details.rate. Exception Dataset ack_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Failed to dispatch rabbitmq_default.queues.itpss_ACTIVATE.ack_details.sample. Exception Dataset ack_details not found
Nov  6 09:11:10 kz-graphite01 collectd[8865]: HTTP Error: HTTP Error 401: Unauthorized
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Unhandled python exception in read callback: TypeError: 'NoneType' object is not iterable
Nov  6 09:11:10 kz-graphite01 collectd[8865]: Traceback (most recent call last):
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 94, in read#012    instance.read()
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 131, in read#012    self.dispatch_exchanges(vhost_name)
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/collectd_plugin.py", line 273, in dispatch_exchanges#012    stats = self.rabbit.get_exchange_stats(vhost_name=vhost_name)
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/rabbit.py", line 146, in get_exchange_stats#012    return self.get_stats('exchange', exchange_name, vhost_name)
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/rabbit.py", line 197, in get_stats#012    names = stat_name_func(vhost)
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/rabbit.py", line 137, in get_exchange_names#012    return self.get_names(all_exchanges)
Nov  6 09:11:10 kz-graphite01 collectd[8865]:  File "/usr/lib/python2.7/site-packages/collectd_rabbitmq-1.20.0-py2.7.egg/collectd_rabbitmq/rabbit.py", line 43, in get_names#012    for item in items:
Nov  6 09:11:10 kz-graphite01 collectd[8865]: TypeError: 'NoneType' object is not iterable

Issue trying to run the plugin

Hi,

Currently attempting to run this plugin its bringing back the below error.

Any ideas what might be causing this to occur?

Details:
[2014-11-12 15:28:09] Unhandled python exception in read callback: TypeError: 'NoneType' object is not iterable
[2014-11-12 15:28:09] Traceback (most recent call last):
[2014-11-12 15:28:09] File "/etc/collectd.d/plugin/rabbitmq.py", line 177, in read
for node in get_info("%s/nodes"%(base_url)):
[2014-11-12 15:28:09] TypeError: 'NoneType' object is not iterable

format issue with graphite output

When outputting via write_graphite plugin, the node stats are outputted correctly, e.g.:
server1.rabbitmq.disk_free

However, the exchange and queue stats do not prefix the server name correctly:
rabbitmq_default.exchanges-logstash_backfill1.ack

Not sure why the servername would show up on one but not the other?

Dataset rabbitmq_queues not found

I keep getting this error

TypeError: Dataset rabbitmq_queues not found
Sep 23 00:09:25 app02 collectd[24906]: read-function of plugin `python.collectd_rabbitmq.collectd_plugin' failed. Will suspend it for 320.000 seconds.
Sep 23 00:14:45 app02 collectd[24906]: Unhandled python exception in read callback: TypeError: Dataset rabbitmq_queues not found
Sep 23 00:14:45 app02 collectd[24906]: Traceback (most recent call last):
Sep 23 00:14:45 app02 collectd[24906]: File "/usr/lib/python2.6/site-packages/collectd_rabbitmq/collectd_plugin.py", line 93, in read#012 PLUGIN.read()
Sep 23 00:14:45 app02 collectd[24906]: File "/usr/lib/python2.6/site-packages/collectd_rabbitmq/collectd_plugin.py", line 126, in read#012 self.dispatch_overview()
Sep 23 00:14:45 app02 collectd[24906]: File "/usr/lib/python2.6/site-packages/collectd_rabbitmq/collectd_plugin.py", line 217, in dispatch_overview#012 subtree_name, type_na

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.