{"action":"opened","issue":{"url":"https://api.github.com/repos/nicolargo/glances/issues/520","labels_url":"https://api.github.com/repos/nicolargo/glances/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/nicolargo/glances/issues/520/comments","events_url":"https://api.github.com/repos/nicolargo/glances/issues/520/events","html_url":"https://github.com/nicolargo/glances/issues/520","id":59865017,"number":520,"title":"Improve Docker plugin with new stats","user":{"login":"nicolargo","id":776747,"avatar_url":"https://avatars.githubusercontent.com/u/776747?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolargo","html_url":"https://github.com/nicolargo","followers_url":"https://api.github.com/users/nicolargo/followers","following_url":"https://api.github.com/users/nicolargo/following{/other_user}","gists_url":"https://api.github.com/users/nicolargo/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolargo/subscriptions","organizations_url":"https://api.github.com/users/nicolargo/orgs","repos_url":"https://api.github.com/users/nicolargo/repos","events_url":"https://api.github.com/users/nicolargo/events{/privacy}","received_events_url":"https://api.github.com/users/nicolargo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nicolargo/glances/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"nicolargo","id":776747,"avatar_url":"https://avatars.githubusercontent.com/u/776747?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolargo","html_url":"https://github.com/nicolargo","followers_url":"https://api.github.com/users/nicolargo/followers","following_url":"https://api.github.com/users/nicolargo/following{/other_user}","gists_url":"https://api.github.com/users/nicolargo/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolargo/subscriptions","organizations_url":"https://api.github.com/users/nicolargo/orgs","repos_url":"https://api.github.com/users/nicolargo/repos","events_url":"https://api.github.com/users/nicolargo/events{/privacy}","received_events_url":"https://api.github.com/users/nicolargo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nicolargo/glances/milestones/18","html_url":"https://github.com/nicolargo/glances/milestones/Version%202.4","labels_url":"https://api.github.com/repos/nicolargo/glances/milestones/18/labels","id":958727,"number":18,"title":"Version 2.4","description":"","creator":{"login":"nicolargo","id":776747,"avatar_url":"https://avatars.githubusercontent.com/u/776747?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolargo","html_url":"https://github.com/nicolargo","followers_url":"https://api.github.com/users/nicolargo/followers","following_url":"https://api.github.com/users/nicolargo/following{/other_user}","gists_url":"https://api.github.com/users/nicolargo/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolargo/subscriptions","organizations_url":"https://api.github.com/users/nicolargo/orgs","repos_url":"https://api.github.com/users/nicolargo/repos","events_url":"https://api.github.com/users/nicolargo/events{/privacy}","received_events_url":"https://api.github.com/users/nicolargo/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":12,"state":"open","created_at":"2015-01-30T19:20:45Z","updated_at":"2015-03-04T21:29:01Z","due_on":"2015-03-30T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-03-04T21:29:01Z","updated_at":"2015-03-04T21:29:01Z","closed_at":null,"body":"The Docker API introduce a new stat command to grab per container stats:\r\n\r\n```\r\n{\"read\":\"2015-03-04T22:27:45.390931792+01:00\",\"network\":{\"rx_bytes\":7680,\"rx_packets\":60,\"rx_errors\":0,\"rx_dropped\":0,\"tx_bytes\":648,\"tx_packets\":8,\"tx_errors\":0,\"tx_dropped\":0},\"cpu_stats\":{\"cpu_usage\":{\"total_usage\":40890002,\"percpu_usage\":[6249068,5581157,22851209,6208568],\"usage_in_kernelmode\":0,\"usage_in_usermode\":10000000},\"system_cpu_usage\":53958200000000,\"throttling_data\":{\"periods\":0,\"throttled_periods\":0,\"throttled_time\":0}},\"memory_stats\":{\"usage\":5681152,\"max_usage\":5795840,\"stats\":{\"active_anon\":1372160,\"active_file\":36864,\"cache\":4325376,\"hierarchical_memory_limit\":18446744073709551615,\"inactive_anon\":12288,\"inactive_file\":4259840,\"mapped_file\":1638400,\"pgfault\":2297,\"pgmajfault\":34,\"pgpgin\":1685,\"pgpgout\":298,\"rss\":1355776,\"rss_huge\":0,\"total_active_anon\":1372160,\"total_active_file\":36864,\"total_cache\":4325376,\"total_inactive_anon\":12288,\"total_inactive_file\":4259840,\"total_mapped_file\":1638400,\"total_pgfault\":2297,\"total_pgmajfault\":34,\"total_pgpgin\":1685,\"total_pgpgout\":298,\"total_rss\":1355776,\"total_rss_huge\":0,\"total_unevictable\":0,\"total_writeback\":0,\"unevictable\":0,\"writeback\":0},\"failcnt\":0,\"limit\":8273547264},\"blkio_stats\":{\"io_service_bytes_recursive\":[{\"major\":8,\"minor\":0,\"op\":\"Read\",\"value\":4284416},{\"major\":8,\"minor\":0,\"op\":\"Write\",\"value\":0},{\"major\":8,\"minor\":0,\"op\":\"Sync\",\"value\":0},{\"major\":8,\"minor\":0,\"op\":\"Async\",\"value\":4284416},{\"major\":8,\"minor\":0,\"op\":\"Total\",\"value\":4284416}],\"io_serviced_recursive\":[{\"major\":8,\"minor\":0,\"op\":\"Read\",\"value\":94},{\"major\":8,\"minor\":0,\"op\":\"Write\",\"value\":0},{\"major\":8,\"minor\":0,\"op\":\"Sync\",\"value\":0},{\"major\":8,\"minor\":0,\"op\":\"Async\",\"value\":94},{\"major\":8,\"minor\":0,\"op\":\"Total\",\"value\":94}],\"io_queue_recursive\":[],\"io_service_time_recursive\":[],\"io_wait_time_recursive\":[],\"io_merged_recursive\":[],\"io_time_recursive\":[],\"sectors_recursive\":[]}}\r\n```\r\n\r\n*Need*: docker-py 1.0 or higer."}}