{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/75292186","id":75292186,"diff_hunk":"@@ -0,0 +1,195 @@\n+/*\n+Copyright 2016 The Kubernetes Authors.\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 node\n+\n+import (\n+\t\"sync\"\n+\t\"time\"\n+\n+\t\"k8s.io/kubernetes/pkg/api/unversioned\"\n+\n+\t\"github.com/golang/glog\"\n+\t\"github.com/prometheus/client_golang/prometheus\"\n+)\n+\n+const (\n+\tNodeControllerSubsystem = \"node_collector\"\n+\tZoneHealthStatisticKey  = \"zone_health\"\n+\tZoneSizeKey             = \"zone_size\"\n+\tZoneNoUnhealthyNodesKey = \"unhealty_nodes_in_zone\"\n+\tEvictionsIn10MinutesKey = \"10_minute_evictions\"\n+\tEvictionsIn1HourKey     = \"1_hour_evictions\"\n+)\n+\n+var (\n+\tZoneHealth = prometheus.NewGaugeVec(\n+\t\tprometheus.GaugeOpts{\n+\t\t\tSubsystem: NodeControllerSubsystem,\n+\t\t\tName:      ZoneHealthStatisticKey,\n+\t\t\tHelp:      \"Gauge measuring percentage of healty nodes per zone.\",\n+\t\t},\n+\t\t[]string{\"zone\"},\n+\t)\n+\tZoneSize = prometheus.NewGaugeVec(\n+\t\tprometheus.GaugeOpts{\n+\t\t\tSubsystem: NodeControllerSubsystem,\n+\t\t\tName:      ZoneSizeKey,\n+\t\t\tHelp:      \"Gauge measuring number of registered Nodes per zones.\",\n+\t\t},\n+\t\t[]string{\"zone\"},\n+\t)\n+\tUnhealthyNodes = prometheus.NewGaugeVec(\n+\t\tprometheus.GaugeOpts{\n+\t\t\tSubsystem: NodeControllerSubsystem,\n+\t\t\tName:      ZoneNoUnhealthyNodesKey,\n+\t\t\tHelp:      \"Gauge measuring number of not Ready Nodes per zones.\",\n+\t\t},\n+\t\t[]string{\"zone\"},\n+\t)\n+\tEvictions10Minutes = prometheus.NewGaugeVec(\n+\t\tprometheus.GaugeOpts{\n+\t\t\tSubsystem: NodeControllerSubsystem,\n+\t\t\tName:      EvictionsIn10MinutesKey,\n+\t\t\tHelp:      \"Gauge measuring number of Node evictions that happened in previous 10 minutes per zone.\",\n+\t\t},\n+\t\t[]string{\"zone\"},\n+\t)\n+\tEvictions1Hour = prometheus.NewGaugeVec(\n+\t\tprometheus.GaugeOpts{\n+\t\t\tSubsystem: NodeControllerSubsystem,\n+\t\t\tName:      EvictionsIn1HourKey,\n+\t\t\tHelp:      \"Gauge measuring number of Node evictions that happened in previous hour per zone.\",\n+\t\t},\n+\t\t[]string{\"zone\"},\n+\t)\n+)\n+\n+var registerMetrics sync.Once\n+\n+func Register() {\n+\tregisterMetrics.Do(func() {\n+\t\tprometheus.MustRegister(ZoneHealth)\n+\t\tprometheus.MustRegister(ZoneSize)\n+\t\tprometheus.MustRegister(UnhealthyNodes)\n+\t\tprometheus.MustRegister(Evictions10Minutes)\n+\t\tprometheus.MustRegister(Evictions1Hour)\n+\t})\n+}\n+\n+type eviction struct {\n+\tnode string\n+\ttime unversioned.Time\n+}\n+\n+type evictionData struct {\n+\tnodeEvictionCount map[string]map[string]int\n+\tnodeEvictionList  []eviction\n+\tnow               func() unversioned.Time\n+\twindowSize        time.Duration\n+\tsync.Mutex\n+}\n+\n+func newEvictionData(windowSize time.Duration) *evictionData {\n+\treturn &evictionData{\n+\t\tnodeEvictionCount: make(map[string]map[string]int),\n+\t\tnodeEvictionList:  make([]eviction, 0),\n+\t\tnow:               unversioned.Now,\n+\t\twindowSize:        windowSize,\n+\t}\n+}\n+\n+func (e *evictionData) slideWindow() {\n+\te.Lock()\n+\tdefer e.Unlock()\n+\tnow := e.now()\n+\tfirstInside := 0\n+\tfor k, v := range e.nodeEvictionList {\n+\t\tif e.nodeEvictionList[k].time.Add(e.windowSize).Before(now.Time) {\n+\t\t\tfirstInside++\n+\t\t\tzone := \"\"\n+\t\t\tfor z := range e.nodeEvictionCount {\n+\t\t\t\tif _, ok := e.nodeEvictionCount[z][v.node]; ok {\n+\t\t\t\t\tzone = z\n+\t\t\t\t\tbreak\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tif zone == \"\" {\n+\t\t\t\tglog.Warningf(\"EvictionData corruption - unknown zone for node %v\", v.node)\n+\t\t\t\tcontinue\n+\t\t\t}\n+\t\t\tif e.nodeEvictionCount[zone][v.node] > 1 {\n+\t\t\t\te.nodeEvictionCount[zone][v.node] = e.nodeEvictionCount[zone][v.node] - 1\n+\t\t\t} else {\n+\t\t\t\tdelete(e.nodeEvictionCount[zone], v.node)\n+\t\t\t}\n+\t\t} else {\n+\t\t\tbreak\n+\t\t}\n+\t}\n+\te.nodeEvictionList = e.nodeEvictionList[firstInside:]\n+}\n+\n+func (e *evictionData) registerEviction(node, zone string) {\n+\te.Lock()\n+\tdefer e.Unlock()\n+\n+\te.nodeEvictionList = append(e.nodeEvictionList, eviction{node: node, time: e.now()})\n+\tif _, ok := e.nodeEvictionCount[zone]; !ok {\n+\t\te.nodeEvictionCount[zone] = make(map[string]int)\n+\t}\n+\tif _, ok := e.nodeEvictionCount[zone][node]; !ok {\n+\t\te.nodeEvictionCount[zone][node] = 1\n+\t} else {\n+\t\te.nodeEvictionCount[zone][node] = e.nodeEvictionCount[zone][node] + 1\n+\t}\n+}\n+\n+// This is inefficient, but hopefully will be rarely called\n+func (e *evictionData) removeEviction(node, zone string) {\n+\te.Lock()\n+\tdefer e.Unlock()\n+\n+\tfor i := len(e.nodeEvictionList) - 1; i >= 0; i-- {\n+\t\tif e.nodeEvictionList[i].node == node {\n+\t\t\te.nodeEvictionList = append(e.nodeEvictionList[:i], e.nodeEvictionList[i+1:]...)\n+\t\t\tbreak\n+\t\t}\n+\t}\n+\tif e.nodeEvictionCount[zone][node] > 1 {\n+\t\te.nodeEvictionCount[zone][node] = e.nodeEvictionCount[zone][node] - 1\n+\t} else {\n+\t\tdelete(e.nodeEvictionCount[zone], node)\n+\t}\n+}\n+\n+func (e *evictionData) countEvictions(zone string) int {\n+\te.Lock()\n+\tdefer e.Unlock()\n+\treturn len(e.nodeEvictionCount[zone])\n+}\n+\n+func (e *evictionData) getZones() []string {\n+\tzones := make([]string, 0, len(e.nodeEvictionCount))\n+\tfor k := range e.nodeEvictionCount {\n+\t\tzones = append(zones, k)\n+\t}\n+\treturn zones\n+}\n+\n+func (e *evictionData) initZone(zone string) {","path":"pkg/controller/node/metrics.go","position":193,"original_position":193,"commit_id":"ab6d703297054cde87a0b43639bf34cb6d6cccff","original_commit_id":"ab6d703297054cde87a0b43639bf34cb6d6cccff","user":{"login":"wojtek-t","id":10743879,"avatar_url":"https://avatars.githubusercontent.com/u/10743879?v=3","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false},"body":"e.Lock()\r\ndefer e.Lock()","created_at":"2016-08-18T11:36:57Z","updated_at":"2016-08-18T11:36:57Z","html_url":"https://github.com/kubernetes/kubernetes/pull/30686#discussion_r75292186","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/75292186"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/30686#discussion_r75292186"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686","id":81491816,"html_url":"https://github.com/kubernetes/kubernetes/pull/30686","diff_url":"https://github.com/kubernetes/kubernetes/pull/30686.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/30686.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/30686","number":30686,"state":"open","locked":false,"title":"Add cluster health metrics to NodeController","user":{"login":"gmarek","id":1703842,"avatar_url":"https://avatars.githubusercontent.com/u/1703842?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarek","html_url":"https://github.com/gmarek","followers_url":"https://api.github.com/users/gmarek/followers","following_url":"https://api.github.com/users/gmarek/following{/other_user}","gists_url":"https://api.github.com/users/gmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarek/subscriptions","organizations_url":"https://api.github.com/users/gmarek/orgs","repos_url":"https://api.github.com/users/gmarek/repos","events_url":"https://api.github.com/users/gmarek/events{/privacy}","received_events_url":"https://api.github.com/users/gmarek/received_events","type":"User","site_admin":false},"body":"Follow up of #28832\r\n\r\nThis adds metrics to monitor cluster/zone status.\r\n\r\ncc @alex-mohr @fabioy @wojtek-t @Q-Lee\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30686)\n<!-- Reviewable:end -->\n","created_at":"2016-08-16T15:25:05Z","updated_at":"2016-08-18T11:36:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"423f5690aad52075e3454f0ad5e1308aaddbf3bd","assignee":{"login":"wojtek-t","id":10743879,"avatar_url":"https://avatars.githubusercontent.com/u/10743879?v=3","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false},"assignees":[{"login":"wojtek-t","id":10743879,"avatar_url":"https://avatars.githubusercontent.com/u/10743879?v=3","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/30686/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/ab6d703297054cde87a0b43639bf34cb6d6cccff","head":{"label":"gmarek:metrics","ref":"metrics","sha":"ab6d703297054cde87a0b43639bf34cb6d6cccff","user":{"login":"gmarek","id":1703842,"avatar_url":"https://avatars.githubusercontent.com/u/1703842?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarek","html_url":"https://github.com/gmarek","followers_url":"https://api.github.com/users/gmarek/followers","following_url":"https://api.github.com/users/gmarek/following{/other_user}","gists_url":"https://api.github.com/users/gmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarek/subscriptions","organizations_url":"https://api.github.com/users/gmarek/orgs","repos_url":"https://api.github.com/users/gmarek/repos","events_url":"https://api.github.com/users/gmarek/events{/privacy}","received_events_url":"https://api.github.com/users/gmarek/received_events","type":"User","site_admin":false},"repo":{"id":30216777,"name":"kubernetes","full_name":"gmarek/kubernetes","owner":{"login":"gmarek","id":1703842,"avatar_url":"https://avatars.githubusercontent.com/u/1703842?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarek","html_url":"https://github.com/gmarek","followers_url":"https://api.github.com/users/gmarek/followers","following_url":"https://api.github.com/users/gmarek/following{/other_user}","gists_url":"https://api.github.com/users/gmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarek/subscriptions","organizations_url":"https://api.github.com/users/gmarek/orgs","repos_url":"https://api.github.com/users/gmarek/repos","events_url":"https://api.github.com/users/gmarek/events{/privacy}","received_events_url":"https://api.github.com/users/gmarek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gmarek/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/gmarek/kubernetes","forks_url":"https://api.github.com/repos/gmarek/kubernetes/forks","keys_url":"https://api.github.com/repos/gmarek/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gmarek/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gmarek/kubernetes/teams","hooks_url":"https://api.github.com/repos/gmarek/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/gmarek/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/gmarek/kubernetes/events","assignees_url":"https://api.github.com/repos/gmarek/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/gmarek/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/gmarek/kubernetes/tags","blobs_url":"https://api.github.com/repos/gmarek/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gmarek/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gmarek/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/gmarek/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gmarek/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/gmarek/kubernetes/languages","stargazers_url":"https://api.github.com/repos/gmarek/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/gmarek/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/gmarek/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/gmarek/kubernetes/subscription","commits_url":"https://api.github.com/repos/gmarek/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/gmarek/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/gmarek/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/gmarek/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/gmarek/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/gmarek/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gmarek/kubernetes/merges","archive_url":"https://api.github.com/repos/gmarek/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gmarek/kubernetes/downloads","issues_url":"https://api.github.com/repos/gmarek/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/gmarek/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/gmarek/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/gmarek/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gmarek/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/gmarek/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/gmarek/kubernetes/deployments","created_at":"2015-02-03T00:37:49Z","updated_at":"2016-01-11T10:54:59Z","pushed_at":"2016-08-18T10:31:33Z","git_url":"git://github.com/gmarek/kubernetes.git","ssh_url":"git@github.com:gmarek/kubernetes.git","clone_url":"https://github.com/gmarek/kubernetes.git","svn_url":"https://github.com/gmarek/kubernetes","homepage":"http://kubernetes.io","size":306626,"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":"715f4f0978e5450ae39ffa9104029de0142de51c","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":20580498,"name":"kubernetes","full_name":"kubernetes/kubernetes","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/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes","forks_url":"https://api.github.com/repos/kubernetes/kubernetes/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes/deployments","created_at":"2014-06-06T22:56:04Z","updated_at":"2016-08-18T11:06:29Z","pushed_at":"2016-08-18T11:35:23Z","git_url":"git://github.com/kubernetes/kubernetes.git","ssh_url":"git@github.com:kubernetes/kubernetes.git","clone_url":"https://github.com/kubernetes/kubernetes.git","svn_url":"https://github.com/kubernetes/kubernetes","homepage":"http://kubernetes.io","size":531493,"stargazers_count":16185,"watchers_count":16185,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5179,"mirror_url":null,"open_issues_count":4227,"forks":5179,"open_issues":4227,"watchers":16185,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/30686"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/30686"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/30686/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/30686/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/ab6d703297054cde87a0b43639bf34cb6d6cccff"}}}}
{"actor":{"display_login":"wojtek-t"}}