docker-collectd-plugin icon indicating copy to clipboard operation
docker-collectd-plugin copied to clipboard

Stuck after init the first stream

Open h4wkmoon opened this issue 8 years ago • 1 comments

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.

h4wkmoon avatar Dec 09 '15 09:12 h4wkmoon

Works like a charm with Docker 1.9. You should make it a requierement.

h4wkmoon avatar Dec 09 '15 10:12 h4wkmoon