lebauce / docker-collectd-plugin

docker-collectd-plugin
GNU General Public License v2.0
107 stars 96 forks source link

Stuck after init the first stream #19

Open h4wkmoon opened 8 years ago

h4wkmoon commented 8 years ago

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 commented 8 years ago

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