collectd-rabbitmq icon indicating copy to clipboard operation
collectd-rabbitmq copied to clipboard

Exception could not convert string to float

Open hollmanenciso opened this issue 6 years ago • 2 comments

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

hollmanenciso avatar Nov 16 '18 20:11 hollmanenciso

@hollmanenciso

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

SeunghoonBaek avatar Aug 22 '19 10:08 SeunghoonBaek

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

jerryz1982 avatar Apr 29 '22 22:04 jerryz1982