{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/contrib/pulls/comments/68898227","id":68898227,"diff_hunk":"@@ -0,0 +1,412 @@\n+/*\n+Copyright 2016 The Kubernetes Authors All rights reserved.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+package monitor\n+\n+import (\n+\t\"fmt\"\n+\t\"time\"\n+\n+\tv3 \"google.golang.org/api/monitoring/v3\"\n+\t\"k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/stats\"\n+)\n+\n+var (\n+\treservedCoresMD = &metricMetadata{","path":"kubelet-to-gcm/monitor/kubelet_to_gcm.go","position":28,"original_position":28,"commit_id":"a747b7bbbd55594f93377f9a5e120f47bc0b095c","original_commit_id":"a747b7bbbd55594f93377f9a5e120f47bc0b095c","user":{"login":"mwielgus","id":11994812,"avatar_url":"https://avatars.githubusercontent.com/u/11994812?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielgus","html_url":"https://github.com/mwielgus","followers_url":"https://api.github.com/users/mwielgus/followers","following_url":"https://api.github.com/users/mwielgus/following{/other_user}","gists_url":"https://api.github.com/users/mwielgus/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielgus/subscriptions","organizations_url":"https://api.github.com/users/mwielgus/orgs","repos_url":"https://api.github.com/users/mwielgus/repos","events_url":"https://api.github.com/users/mwielgus/events{/privacy}","received_events_url":"https://api.github.com/users/mwielgus/received_events","type":"User","site_admin":false},"body":"What is the difference between this metrics and metrics exposed by kubelet in summary api?","created_at":"2016-06-29T07:37:30Z","updated_at":"2016-06-29T07:37:30Z","html_url":"https://github.com/kubernetes/contrib/pull/1191#discussion_r68898227","pull_request_url":"https://api.github.com/repos/kubernetes/contrib/pulls/1191","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/comments/68898227"},"html":{"href":"https://github.com/kubernetes/contrib/pull/1191#discussion_r68898227"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1191"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/contrib/pulls/1191","id":73435576,"html_url":"https://github.com/kubernetes/contrib/pull/1191","diff_url":"https://github.com/kubernetes/contrib/pull/1191.diff","patch_url":"https://github.com/kubernetes/contrib/pull/1191.patch","issue_url":"https://api.github.com/repos/kubernetes/contrib/issues/1191","number":1191,"state":"open","locked":false,"title":"Kubelet monitoring","user":{"login":"Q-Lee","id":13410337,"avatar_url":"https://avatars.githubusercontent.com/u/13410337?v=3","gravatar_id":"","url":"https://api.github.com/users/Q-Lee","html_url":"https://github.com/Q-Lee","followers_url":"https://api.github.com/users/Q-Lee/followers","following_url":"https://api.github.com/users/Q-Lee/following{/other_user}","gists_url":"https://api.github.com/users/Q-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/Q-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Q-Lee/subscriptions","organizations_url":"https://api.github.com/users/Q-Lee/orgs","repos_url":"https://api.github.com/users/Q-Lee/repos","events_url":"https://api.github.com/users/Q-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/Q-Lee/received_events","type":"User","site_admin":false},"body":"Sidecar to monitor a single kubelet, and push results to the GCM v3 API.","created_at":"2016-06-10T21:02:03Z","updated_at":"2016-06-29T07:37:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3f7bf78118e666e0cf2b7239721ced9793f0e1f","assignee":{"login":"fgrzadkowski","id":10820726,"avatar_url":"https://avatars.githubusercontent.com/u/10820726?v=3","gravatar_id":"","url":"https://api.github.com/users/fgrzadkowski","html_url":"https://github.com/fgrzadkowski","followers_url":"https://api.github.com/users/fgrzadkowski/followers","following_url":"https://api.github.com/users/fgrzadkowski/following{/other_user}","gists_url":"https://api.github.com/users/fgrzadkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/fgrzadkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgrzadkowski/subscriptions","organizations_url":"https://api.github.com/users/fgrzadkowski/orgs","repos_url":"https://api.github.com/users/fgrzadkowski/repos","events_url":"https://api.github.com/users/fgrzadkowski/events{/privacy}","received_events_url":"https://api.github.com/users/fgrzadkowski/received_events","type":"User","site_admin":false},"assignees":[{"login":"fgrzadkowski","id":10820726,"avatar_url":"https://avatars.githubusercontent.com/u/10820726?v=3","gravatar_id":"","url":"https://api.github.com/users/fgrzadkowski","html_url":"https://github.com/fgrzadkowski","followers_url":"https://api.github.com/users/fgrzadkowski/followers","following_url":"https://api.github.com/users/fgrzadkowski/following{/other_user}","gists_url":"https://api.github.com/users/fgrzadkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/fgrzadkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgrzadkowski/subscriptions","organizations_url":"https://api.github.com/users/fgrzadkowski/orgs","repos_url":"https://api.github.com/users/fgrzadkowski/repos","events_url":"https://api.github.com/users/fgrzadkowski/events{/privacy}","received_events_url":"https://api.github.com/users/fgrzadkowski/received_events","type":"User","site_admin":false},{"login":"mwielgus","id":11994812,"avatar_url":"https://avatars.githubusercontent.com/u/11994812?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielgus","html_url":"https://github.com/mwielgus","followers_url":"https://api.github.com/users/mwielgus/followers","following_url":"https://api.github.com/users/mwielgus/following{/other_user}","gists_url":"https://api.github.com/users/mwielgus/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielgus/subscriptions","organizations_url":"https://api.github.com/users/mwielgus/orgs","repos_url":"https://api.github.com/users/mwielgus/repos","events_url":"https://api.github.com/users/mwielgus/events{/privacy}","received_events_url":"https://api.github.com/users/mwielgus/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/contrib/pulls/1191/commits","review_comments_url":"https://api.github.com/repos/kubernetes/contrib/pulls/1191/comments","review_comment_url":"https://api.github.com/repos/kubernetes/contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/contrib/issues/1191/comments","statuses_url":"https://api.github.com/repos/kubernetes/contrib/statuses/a747b7bbbd55594f93377f9a5e120f47bc0b095c","head":{"label":"Q-Lee:kubelet-monitoring","ref":"kubelet-monitoring","sha":"a747b7bbbd55594f93377f9a5e120f47bc0b095c","user":{"login":"Q-Lee","id":13410337,"avatar_url":"https://avatars.githubusercontent.com/u/13410337?v=3","gravatar_id":"","url":"https://api.github.com/users/Q-Lee","html_url":"https://github.com/Q-Lee","followers_url":"https://api.github.com/users/Q-Lee/followers","following_url":"https://api.github.com/users/Q-Lee/following{/other_user}","gists_url":"https://api.github.com/users/Q-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/Q-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Q-Lee/subscriptions","organizations_url":"https://api.github.com/users/Q-Lee/orgs","repos_url":"https://api.github.com/users/Q-Lee/repos","events_url":"https://api.github.com/users/Q-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/Q-Lee/received_events","type":"User","site_admin":false},"repo":{"id":51333020,"name":"contrib","full_name":"Q-Lee/contrib","owner":{"login":"Q-Lee","id":13410337,"avatar_url":"https://avatars.githubusercontent.com/u/13410337?v=3","gravatar_id":"","url":"https://api.github.com/users/Q-Lee","html_url":"https://github.com/Q-Lee","followers_url":"https://api.github.com/users/Q-Lee/followers","following_url":"https://api.github.com/users/Q-Lee/following{/other_user}","gists_url":"https://api.github.com/users/Q-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/Q-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Q-Lee/subscriptions","organizations_url":"https://api.github.com/users/Q-Lee/orgs","repos_url":"https://api.github.com/users/Q-Lee/repos","events_url":"https://api.github.com/users/Q-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/Q-Lee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Q-Lee/contrib","description":"This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core.","fork":true,"url":"https://api.github.com/repos/Q-Lee/contrib","forks_url":"https://api.github.com/repos/Q-Lee/contrib/forks","keys_url":"https://api.github.com/repos/Q-Lee/contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Q-Lee/contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Q-Lee/contrib/teams","hooks_url":"https://api.github.com/repos/Q-Lee/contrib/hooks","issue_events_url":"https://api.github.com/repos/Q-Lee/contrib/issues/events{/number}","events_url":"https://api.github.com/repos/Q-Lee/contrib/events","assignees_url":"https://api.github.com/repos/Q-Lee/contrib/assignees{/user}","branches_url":"https://api.github.com/repos/Q-Lee/contrib/branches{/branch}","tags_url":"https://api.github.com/repos/Q-Lee/contrib/tags","blobs_url":"https://api.github.com/repos/Q-Lee/contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Q-Lee/contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Q-Lee/contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/Q-Lee/contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Q-Lee/contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/Q-Lee/contrib/languages","stargazers_url":"https://api.github.com/repos/Q-Lee/contrib/stargazers","contributors_url":"https://api.github.com/repos/Q-Lee/contrib/contributors","subscribers_url":"https://api.github.com/repos/Q-Lee/contrib/subscribers","subscription_url":"https://api.github.com/repos/Q-Lee/contrib/subscription","commits_url":"https://api.github.com/repos/Q-Lee/contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/Q-Lee/contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/Q-Lee/contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/Q-Lee/contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/Q-Lee/contrib/contents/{+path}","compare_url":"https://api.github.com/repos/Q-Lee/contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Q-Lee/contrib/merges","archive_url":"https://api.github.com/repos/Q-Lee/contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Q-Lee/contrib/downloads","issues_url":"https://api.github.com/repos/Q-Lee/contrib/issues{/number}","pulls_url":"https://api.github.com/repos/Q-Lee/contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/Q-Lee/contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/Q-Lee/contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Q-Lee/contrib/labels{/name}","releases_url":"https://api.github.com/repos/Q-Lee/contrib/releases{/id}","deployments_url":"https://api.github.com/repos/Q-Lee/contrib/deployments","created_at":"2016-02-08T22:49:45Z","updated_at":"2016-02-08T22:49:47Z","pushed_at":"2016-06-23T18:41:34Z","git_url":"git://github.com/Q-Lee/contrib.git","ssh_url":"git@github.com:Q-Lee/contrib.git","clone_url":"https://github.com/Q-Lee/contrib.git","svn_url":"https://github.com/Q-Lee/contrib","homepage":"","size":29901,"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":"kubernetes:master","ref":"master","sha":"6baa2d59f737ac3d3a6dc92738a0cab1fd17b63b","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":40686014,"name":"contrib","full_name":"kubernetes/contrib","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/contrib","description":"This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core. Consider creating a new repo instead.","fork":false,"url":"https://api.github.com/repos/kubernetes/contrib","forks_url":"https://api.github.com/repos/kubernetes/contrib/forks","keys_url":"https://api.github.com/repos/kubernetes/contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/contrib/teams","hooks_url":"https://api.github.com/repos/kubernetes/contrib/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/contrib/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/contrib/events","assignees_url":"https://api.github.com/repos/kubernetes/contrib/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/contrib/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/contrib/tags","blobs_url":"https://api.github.com/repos/kubernetes/contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/contrib/languages","stargazers_url":"https://api.github.com/repos/kubernetes/contrib/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/contrib/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/contrib/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/contrib/subscription","commits_url":"https://api.github.com/repos/kubernetes/contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/contrib/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/contrib/merges","archive_url":"https://api.github.com/repos/kubernetes/contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/contrib/downloads","issues_url":"https://api.github.com/repos/kubernetes/contrib/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/contrib/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/contrib/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/contrib/deployments","created_at":"2015-08-13T23:18:26Z","updated_at":"2016-06-29T02:04:16Z","pushed_at":"2016-06-29T07:30:12Z","git_url":"git://github.com/kubernetes/contrib.git","ssh_url":"git@github.com:kubernetes/contrib.git","clone_url":"https://github.com/kubernetes/contrib.git","svn_url":"https://github.com/kubernetes/contrib","homepage":"","size":54147,"stargazers_count":344,"watchers_count":344,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":343,"mirror_url":null,"open_issues_count":240,"forks":343,"open_issues":240,"watchers":344,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1191"},"html":{"href":"https://github.com/kubernetes/contrib/pull/1191"},"issue":{"href":"https://api.github.com/repos/kubernetes/contrib/issues/1191"},"comments":{"href":"https://api.github.com/repos/kubernetes/contrib/issues/1191/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1191/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1191/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/contrib/statuses/a747b7bbbd55594f93377f9a5e120f47bc0b095c"}}}}
{"actor":{"display_login":"mwielgus"}}