lib/fluent/plugin/in_cadvisor.rb in fluent-plugin-cadvisor-0.3.0 vs lib/fluent/plugin/in_cadvisor.rb in fluent-plugin-cadvisor-0.3.1

- old
+ new

@@ -81,10 +81,10 @@ def emit_container_info(obj) container_json = obj.json config = container_json['Config'] id = container_json['Id'] - name = container_json['Image'] + name = config['Image'] env = config['Hostname'].split('--')[2] || '' # app--version--env response = RestClient.get(@cadvisorEP + "/containers/docker/" + id) res = JSON.parse(response.body)