{"action":"created","comment":{"url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/comments/74575147","id":74575147,"diff_hunk":"@@ -22,201 +22,467 @@ limitations under the License.\n package docker\n \n import (\n-\t\"encoding/json\"\n+\t\"errors\"\n \t\"fmt\"\n \t\"os\"\n-\t\"path/filepath\"\n+\t\"strconv\"\n \t\"strings\"\n \t\"time\"\n \n-\t\"github.com/opencontainers/runc/libcontainer/cgroups\"\n-\n \t\"github.com/intelsdi-x/snap-plugin-collector-docker/client\"\n-\ttls \"github.com/intelsdi-x/snap-plugin-collector-docker/tools\"\n \t\"github.com/intelsdi-x/snap-plugin-collector-docker/wrapper\"\n \t\"github.com/intelsdi-x/snap/control/plugin\"\n \t\"github.com/intelsdi-x/snap/control/plugin/cpolicy\"\n \t\"github.com/intelsdi-x/snap/core\"\n+\n+\tdock \"github.com/fsouza/go-dockerclient\"\n+\tutils \"github.com/intelsdi-x/snap-plugin-utilities/ns\"\n )\n \n const (\n \t// namespace vendor prefix\n \tNS_VENDOR = \"intel\"\n-\t// namespace os prefix\n-\tNS_CLASS = \"linux\"\n \t// namespace plugin name\n \tNS_PLUGIN = \"docker\"","path":"docker/docker.go","position":32,"original_position":32,"commit_id":"717a4017249dcf804adaad2827d62bf04e6eb8b9","original_commit_id":"717a4017249dcf804adaad2827d62bf04e6eb8b9","user":{"login":"katarzyna-z","id":16666942,"avatar_url":"https://avatars.githubusercontent.com/u/16666942?v=3","gravatar_id":"","url":"https://api.github.com/users/katarzyna-z","html_url":"https://github.com/katarzyna-z","followers_url":"https://api.github.com/users/katarzyna-z/followers","following_url":"https://api.github.com/users/katarzyna-z/following{/other_user}","gists_url":"https://api.github.com/users/katarzyna-z/gists{/gist_id}","starred_url":"https://api.github.com/users/katarzyna-z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katarzyna-z/subscriptions","organizations_url":"https://api.github.com/users/katarzyna-z/orgs","repos_url":"https://api.github.com/users/katarzyna-z/repos","events_url":"https://api.github.com/users/katarzyna-z/events{/privacy}","received_events_url":"https://api.github.com/users/katarzyna-z/received_events","type":"User","site_admin":false},"body":"This comment should start with NS_PLUGIN","created_at":"2016-08-12T11:13:47Z","updated_at":"2016-08-12T11:13:47Z","html_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker/pull/32#discussion_r74575147","pull_request_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/comments/74575147"},"html":{"href":"https://github.com/intelsdi-x/snap-plugin-collector-docker/pull/32#discussion_r74575147"},"pull_request":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32","id":81082714,"html_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker/pull/32","diff_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker/pull/32.diff","patch_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker/pull/32.patch","issue_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues/32","number":32,"state":"open","locked":false,"title":"Migration kubesnap collector to snap - WIP","user":{"login":"IzabellaRaulin","id":11335874,"avatar_url":"https://avatars.githubusercontent.com/u/11335874?v=3","gravatar_id":"","url":"https://api.github.com/users/IzabellaRaulin","html_url":"https://github.com/IzabellaRaulin","followers_url":"https://api.github.com/users/IzabellaRaulin/followers","following_url":"https://api.github.com/users/IzabellaRaulin/following{/other_user}","gists_url":"https://api.github.com/users/IzabellaRaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/IzabellaRaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzabellaRaulin/subscriptions","organizations_url":"https://api.github.com/users/IzabellaRaulin/orgs","repos_url":"https://api.github.com/users/IzabellaRaulin/repos","events_url":"https://api.github.com/users/IzabellaRaulin/events{/privacy}","received_events_url":"https://api.github.com/users/IzabellaRaulin/received_events","type":"User","site_admin":false},"body":"\r\n\r\nTo do:\r\n- [ ] unit tests","created_at":"2016-08-12T08:19:30Z","updated_at":"2016-08-12T11:13:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ede528b6295dd660f093432b07e765810c8b3d85","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32/commits","review_comments_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32/comments","review_comment_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues/32/comments","statuses_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/statuses/717a4017249dcf804adaad2827d62bf04e6eb8b9","head":{"label":"IzabellaRaulin:migration_from_kubesnap","ref":"migration_from_kubesnap","sha":"717a4017249dcf804adaad2827d62bf04e6eb8b9","user":{"login":"IzabellaRaulin","id":11335874,"avatar_url":"https://avatars.githubusercontent.com/u/11335874?v=3","gravatar_id":"","url":"https://api.github.com/users/IzabellaRaulin","html_url":"https://github.com/IzabellaRaulin","followers_url":"https://api.github.com/users/IzabellaRaulin/followers","following_url":"https://api.github.com/users/IzabellaRaulin/following{/other_user}","gists_url":"https://api.github.com/users/IzabellaRaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/IzabellaRaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzabellaRaulin/subscriptions","organizations_url":"https://api.github.com/users/IzabellaRaulin/orgs","repos_url":"https://api.github.com/users/IzabellaRaulin/repos","events_url":"https://api.github.com/users/IzabellaRaulin/events{/privacy}","received_events_url":"https://api.github.com/users/IzabellaRaulin/received_events","type":"User","site_admin":false},"repo":{"id":58521165,"name":"snap-plugin-collector-docker","full_name":"IzabellaRaulin/snap-plugin-collector-docker","owner":{"login":"IzabellaRaulin","id":11335874,"avatar_url":"https://avatars.githubusercontent.com/u/11335874?v=3","gravatar_id":"","url":"https://api.github.com/users/IzabellaRaulin","html_url":"https://github.com/IzabellaRaulin","followers_url":"https://api.github.com/users/IzabellaRaulin/followers","following_url":"https://api.github.com/users/IzabellaRaulin/following{/other_user}","gists_url":"https://api.github.com/users/IzabellaRaulin/gists{/gist_id}","starred_url":"https://api.github.com/users/IzabellaRaulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzabellaRaulin/subscriptions","organizations_url":"https://api.github.com/users/IzabellaRaulin/orgs","repos_url":"https://api.github.com/users/IzabellaRaulin/repos","events_url":"https://api.github.com/users/IzabellaRaulin/events{/privacy}","received_events_url":"https://api.github.com/users/IzabellaRaulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IzabellaRaulin/snap-plugin-collector-docker","description":"snap plugin for collecting metrics from Docker","fork":true,"url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker","forks_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/forks","keys_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/teams","hooks_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/hooks","issue_events_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/issues/events{/number}","events_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/events","assignees_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/assignees{/user}","branches_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/branches{/branch}","tags_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/tags","blobs_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/languages","stargazers_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/stargazers","contributors_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/contributors","subscribers_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/subscribers","subscription_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/subscription","commits_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/contents/{+path}","compare_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/merges","archive_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/downloads","issues_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/issues{/number}","pulls_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/labels{/name}","releases_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/releases{/id}","deployments_url":"https://api.github.com/repos/IzabellaRaulin/snap-plugin-collector-docker/deployments","created_at":"2016-05-11T06:53:37Z","updated_at":"2016-05-11T06:53:38Z","pushed_at":"2016-08-12T09:08:28Z","git_url":"git://github.com/IzabellaRaulin/snap-plugin-collector-docker.git","ssh_url":"git@github.com:IzabellaRaulin/snap-plugin-collector-docker.git","clone_url":"https://github.com/IzabellaRaulin/snap-plugin-collector-docker.git","svn_url":"https://github.com/IzabellaRaulin/snap-plugin-collector-docker","homepage":"http://intelsdi-x.github.io/snap/","size":90,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"intelsdi-x:master","ref":"master","sha":"4e58ede0ca82e5e95d311524905e6d4a6ffefb49","user":{"login":"intelsdi-x","id":8398747,"avatar_url":"https://avatars.githubusercontent.com/u/8398747?v=3","gravatar_id":"","url":"https://api.github.com/users/intelsdi-x","html_url":"https://github.com/intelsdi-x","followers_url":"https://api.github.com/users/intelsdi-x/followers","following_url":"https://api.github.com/users/intelsdi-x/following{/other_user}","gists_url":"https://api.github.com/users/intelsdi-x/gists{/gist_id}","starred_url":"https://api.github.com/users/intelsdi-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intelsdi-x/subscriptions","organizations_url":"https://api.github.com/users/intelsdi-x/orgs","repos_url":"https://api.github.com/users/intelsdi-x/repos","events_url":"https://api.github.com/users/intelsdi-x/events{/privacy}","received_events_url":"https://api.github.com/users/intelsdi-x/received_events","type":"Organization","site_admin":false},"repo":{"id":45380537,"name":"snap-plugin-collector-docker","full_name":"intelsdi-x/snap-plugin-collector-docker","owner":{"login":"intelsdi-x","id":8398747,"avatar_url":"https://avatars.githubusercontent.com/u/8398747?v=3","gravatar_id":"","url":"https://api.github.com/users/intelsdi-x","html_url":"https://github.com/intelsdi-x","followers_url":"https://api.github.com/users/intelsdi-x/followers","following_url":"https://api.github.com/users/intelsdi-x/following{/other_user}","gists_url":"https://api.github.com/users/intelsdi-x/gists{/gist_id}","starred_url":"https://api.github.com/users/intelsdi-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intelsdi-x/subscriptions","organizations_url":"https://api.github.com/users/intelsdi-x/orgs","repos_url":"https://api.github.com/users/intelsdi-x/repos","events_url":"https://api.github.com/users/intelsdi-x/events{/privacy}","received_events_url":"https://api.github.com/users/intelsdi-x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker","description":"Collects Docker container runtime metrics","fork":false,"url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker","forks_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/forks","keys_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/teams","hooks_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/hooks","issue_events_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues/events{/number}","events_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/events","assignees_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/assignees{/user}","branches_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/branches{/branch}","tags_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/tags","blobs_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/languages","stargazers_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/stargazers","contributors_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/contributors","subscribers_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/subscribers","subscription_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/subscription","commits_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/contents/{+path}","compare_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/merges","archive_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/downloads","issues_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues{/number}","pulls_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/labels{/name}","releases_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/releases{/id}","deployments_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/deployments","created_at":"2015-11-02T08:07:34Z","updated_at":"2016-07-15T21:20:03Z","pushed_at":"2016-08-12T09:08:28Z","git_url":"git://github.com/intelsdi-x/snap-plugin-collector-docker.git","ssh_url":"git@github.com:intelsdi-x/snap-plugin-collector-docker.git","clone_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker.git","svn_url":"https://github.com/intelsdi-x/snap-plugin-collector-docker","homepage":"http://snap-telemetry.io/","size":61,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32"},"html":{"href":"https://github.com/intelsdi-x/snap-plugin-collector-docker/pull/32"},"issue":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues/32"},"comments":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-docker/statuses/717a4017249dcf804adaad2827d62bf04e6eb8b9"}}}}
{"actor":{"display_login":"katarzyna-z"}}