docker-collectd-plugin
docker-collectd-plugin copied to clipboard
Stuck after init the first stream
Hi, and thanks for this plugin. I can't make it work.
When run alone, it shows "INFO: Starting stats gathering for xxxxxxxxxx" where xxx is the id of the first container, and nevers writes anything else. I have several containters.
I guess it's something related with the stream option. Docker version 1.6.2, build 7c8fca2 (API Version 1.18)
The 1.18 api version only supports the strream option, and the answer is always a stream where the plugin expects it not to be.
Forcing the value to True in the plugin in the 215 makes it fail with error : WARNING: Error getting stats for container xxxxxxxxxxxx: 'generator' object has no attribute 'getitem' 1 line per container. At least, it goes through all the containers.
Works like a charm with Docker 1.9. You should make it a requierement.