{"action":"created","comment":{"url":"https://api.github.com/repos/google/cadvisor/pulls/comments/49078492","id":49078492,"diff_hunk":"@@ -127,6 +127,21 @@ func NewPrometheusCollector(infoProvider infoProvider, f ContainerNameToLabelsFu\n \t\t\t\t\treturn values\n \t\t\t\t},\n \t\t\t}, {\n+\t\t\t\tname:        \"container_memory_stats\",\n+\t\t\t\thelp:        `Various memory statistics. See the section \"5.2 stat file\" of https://www.kernel.org/doc/Documentation/cgroups/memory.txt for details`,\n+\t\t\t\tvalueType:   prometheus.GaugeValue,\n+\t\t\t\textraLabels: []string{\"stat_name\"},","path":"metrics/prometheus.go","position":7,"original_position":7,"commit_id":"0b06645e3d5f9527760e5c074b0d9b1de3e139f7","original_commit_id":"0b06645e3d5f9527760e5c074b0d9b1de3e139f7","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"body":"nit: can we just make this `name`?","created_at":"2016-01-07T14:38:15Z","updated_at":"2016-01-07T14:38:15Z","html_url":"https://github.com/google/cadvisor/pull/1036#discussion_r49078492","pull_request_url":"https://api.github.com/repos/google/cadvisor/pulls/1036","_links":{"self":{"href":"https://api.github.com/repos/google/cadvisor/pulls/comments/49078492"},"html":{"href":"https://github.com/google/cadvisor/pull/1036#discussion_r49078492"},"pull_request":{"href":"https://api.github.com/repos/google/cadvisor/pulls/1036"}}},"pull_request":{"url":"https://api.github.com/repos/google/cadvisor/pulls/1036","id":55147011,"html_url":"https://github.com/google/cadvisor/pull/1036","diff_url":"https://github.com/google/cadvisor/pull/1036.diff","patch_url":"https://github.com/google/cadvisor/pull/1036.patch","issue_url":"https://api.github.com/repos/google/cadvisor/issues/1036","number":1036,"state":"open","locked":false,"title":"Expose all memory stats contained in memory.stat via API and /metrics","user":{"login":"guoshimin","id":11787293,"avatar_url":"https://avatars.githubusercontent.com/u/11787293?v=3","gravatar_id":"","url":"https://api.github.com/users/guoshimin","html_url":"https://github.com/guoshimin","followers_url":"https://api.github.com/users/guoshimin/followers","following_url":"https://api.github.com/users/guoshimin/following{/other_user}","gists_url":"https://api.github.com/users/guoshimin/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshimin/subscriptions","organizations_url":"https://api.github.com/users/guoshimin/orgs","repos_url":"https://api.github.com/users/guoshimin/repos","events_url":"https://api.github.com/users/guoshimin/events{/privacy}","received_events_url":"https://api.github.com/users/guoshimin/received_events","type":"User","site_admin":false},"body":"fixes #975 ","created_at":"2016-01-05T21:42:44Z","updated_at":"2016-01-07T14:38:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"573d9fbc9423018a069c4212075d80952a243eb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/cadvisor/pulls/1036/commits","review_comments_url":"https://api.github.com/repos/google/cadvisor/pulls/1036/comments","review_comment_url":"https://api.github.com/repos/google/cadvisor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/cadvisor/issues/1036/comments","statuses_url":"https://api.github.com/repos/google/cadvisor/statuses/0b06645e3d5f9527760e5c074b0d9b1de3e139f7","head":{"label":"guoshimin:exposeall","ref":"exposeall","sha":"0b06645e3d5f9527760e5c074b0d9b1de3e139f7","user":{"login":"guoshimin","id":11787293,"avatar_url":"https://avatars.githubusercontent.com/u/11787293?v=3","gravatar_id":"","url":"https://api.github.com/users/guoshimin","html_url":"https://github.com/guoshimin","followers_url":"https://api.github.com/users/guoshimin/followers","following_url":"https://api.github.com/users/guoshimin/following{/other_user}","gists_url":"https://api.github.com/users/guoshimin/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshimin/subscriptions","organizations_url":"https://api.github.com/users/guoshimin/orgs","repos_url":"https://api.github.com/users/guoshimin/repos","events_url":"https://api.github.com/users/guoshimin/events{/privacy}","received_events_url":"https://api.github.com/users/guoshimin/received_events","type":"User","site_admin":false},"repo":{"id":47213554,"name":"cadvisor","full_name":"guoshimin/cadvisor","owner":{"login":"guoshimin","id":11787293,"avatar_url":"https://avatars.githubusercontent.com/u/11787293?v=3","gravatar_id":"","url":"https://api.github.com/users/guoshimin","html_url":"https://github.com/guoshimin","followers_url":"https://api.github.com/users/guoshimin/followers","following_url":"https://api.github.com/users/guoshimin/following{/other_user}","gists_url":"https://api.github.com/users/guoshimin/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshimin/subscriptions","organizations_url":"https://api.github.com/users/guoshimin/orgs","repos_url":"https://api.github.com/users/guoshimin/repos","events_url":"https://api.github.com/users/guoshimin/events{/privacy}","received_events_url":"https://api.github.com/users/guoshimin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guoshimin/cadvisor","description":"Analyzes resource usage and performance characteristics of running containers.","fork":true,"url":"https://api.github.com/repos/guoshimin/cadvisor","forks_url":"https://api.github.com/repos/guoshimin/cadvisor/forks","keys_url":"https://api.github.com/repos/guoshimin/cadvisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guoshimin/cadvisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guoshimin/cadvisor/teams","hooks_url":"https://api.github.com/repos/guoshimin/cadvisor/hooks","issue_events_url":"https://api.github.com/repos/guoshimin/cadvisor/issues/events{/number}","events_url":"https://api.github.com/repos/guoshimin/cadvisor/events","assignees_url":"https://api.github.com/repos/guoshimin/cadvisor/assignees{/user}","branches_url":"https://api.github.com/repos/guoshimin/cadvisor/branches{/branch}","tags_url":"https://api.github.com/repos/guoshimin/cadvisor/tags","blobs_url":"https://api.github.com/repos/guoshimin/cadvisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guoshimin/cadvisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guoshimin/cadvisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/guoshimin/cadvisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guoshimin/cadvisor/statuses/{sha}","languages_url":"https://api.github.com/repos/guoshimin/cadvisor/languages","stargazers_url":"https://api.github.com/repos/guoshimin/cadvisor/stargazers","contributors_url":"https://api.github.com/repos/guoshimin/cadvisor/contributors","subscribers_url":"https://api.github.com/repos/guoshimin/cadvisor/subscribers","subscription_url":"https://api.github.com/repos/guoshimin/cadvisor/subscription","commits_url":"https://api.github.com/repos/guoshimin/cadvisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/guoshimin/cadvisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/guoshimin/cadvisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/guoshimin/cadvisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/guoshimin/cadvisor/contents/{+path}","compare_url":"https://api.github.com/repos/guoshimin/cadvisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guoshimin/cadvisor/merges","archive_url":"https://api.github.com/repos/guoshimin/cadvisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guoshimin/cadvisor/downloads","issues_url":"https://api.github.com/repos/guoshimin/cadvisor/issues{/number}","pulls_url":"https://api.github.com/repos/guoshimin/cadvisor/pulls{/number}","milestones_url":"https://api.github.com/repos/guoshimin/cadvisor/milestones{/number}","notifications_url":"https://api.github.com/repos/guoshimin/cadvisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guoshimin/cadvisor/labels{/name}","releases_url":"https://api.github.com/repos/guoshimin/cadvisor/releases{/id}","created_at":"2015-12-01T19:53:07Z","updated_at":"2015-12-01T19:53:10Z","pushed_at":"2016-01-05T04:13:18Z","git_url":"git://github.com/guoshimin/cadvisor.git","ssh_url":"git@github.com:guoshimin/cadvisor.git","clone_url":"https://github.com/guoshimin/cadvisor.git","svn_url":"https://github.com/guoshimin/cadvisor","homepage":"","size":19080,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"google:master","ref":"master","sha":"38cf3a0972e1bfdf83d81d7f16a7249663ffbe50","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":20653934,"name":"cadvisor","full_name":"google/cadvisor","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/cadvisor","description":"Analyzes resource usage and performance characteristics of running containers.","fork":false,"url":"https://api.github.com/repos/google/cadvisor","forks_url":"https://api.github.com/repos/google/cadvisor/forks","keys_url":"https://api.github.com/repos/google/cadvisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/cadvisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/cadvisor/teams","hooks_url":"https://api.github.com/repos/google/cadvisor/hooks","issue_events_url":"https://api.github.com/repos/google/cadvisor/issues/events{/number}","events_url":"https://api.github.com/repos/google/cadvisor/events","assignees_url":"https://api.github.com/repos/google/cadvisor/assignees{/user}","branches_url":"https://api.github.com/repos/google/cadvisor/branches{/branch}","tags_url":"https://api.github.com/repos/google/cadvisor/tags","blobs_url":"https://api.github.com/repos/google/cadvisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/cadvisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/cadvisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/cadvisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/cadvisor/statuses/{sha}","languages_url":"https://api.github.com/repos/google/cadvisor/languages","stargazers_url":"https://api.github.com/repos/google/cadvisor/stargazers","contributors_url":"https://api.github.com/repos/google/cadvisor/contributors","subscribers_url":"https://api.github.com/repos/google/cadvisor/subscribers","subscription_url":"https://api.github.com/repos/google/cadvisor/subscription","commits_url":"https://api.github.com/repos/google/cadvisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/cadvisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/cadvisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/cadvisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/cadvisor/contents/{+path}","compare_url":"https://api.github.com/repos/google/cadvisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/cadvisor/merges","archive_url":"https://api.github.com/repos/google/cadvisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/cadvisor/downloads","issues_url":"https://api.github.com/repos/google/cadvisor/issues{/number}","pulls_url":"https://api.github.com/repos/google/cadvisor/pulls{/number}","milestones_url":"https://api.github.com/repos/google/cadvisor/milestones{/number}","notifications_url":"https://api.github.com/repos/google/cadvisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/cadvisor/labels{/name}","releases_url":"https://api.github.com/repos/google/cadvisor/releases{/id}","created_at":"2014-06-09T16:36:33Z","updated_at":"2016-01-07T03:49:32Z","pushed_at":"2016-01-07T14:32:46Z","git_url":"git://github.com/google/cadvisor.git","ssh_url":"git@github.com:google/cadvisor.git","clone_url":"https://github.com/google/cadvisor.git","svn_url":"https://github.com/google/cadvisor","homepage":"","size":23015,"stargazers_count":3325,"watchers_count":3325,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":427,"mirror_url":null,"open_issues_count":126,"forks":427,"open_issues":126,"watchers":3325,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/cadvisor/pulls/1036"},"html":{"href":"https://github.com/google/cadvisor/pull/1036"},"issue":{"href":"https://api.github.com/repos/google/cadvisor/issues/1036"},"comments":{"href":"https://api.github.com/repos/google/cadvisor/issues/1036/comments"},"review_comments":{"href":"https://api.github.com/repos/google/cadvisor/pulls/1036/comments"},"review_comment":{"href":"https://api.github.com/repos/google/cadvisor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/cadvisor/pulls/1036/commits"},"statuses":{"href":"https://api.github.com/repos/google/cadvisor/statuses/0b06645e3d5f9527760e5c074b0d9b1de3e139f7"}}}}