nytimes / collectd-rabbitmq

A collected plugin, written in python, to collect statistics from RabbitMQ.
https://collectd-rabbitmq.readthedocs.org/
Other
145 stars 79 forks source link

Exception could not convert string to float #71

Open hollmanenciso opened 5 years ago

hollmanenciso commented 5 years ago

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

SeunghoonBaek commented 5 years ago

@hollmanenciso

Hello, did you find any way to avoid this problem? I've encountered the same problem ^^;

jerryz1982 commented 2 years ago

i added check for none or "" values and skip the dispatch. if metric.values[0] is None or metric.values[0] == '': return in collectd_plugin.py