{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/29896338","id":29896338,"diff_hunk":"@@ -780,3 +852,74 @@ func HighLatencyRequests(c *client.Client, threshold time.Duration) (int, error)\n \n \treturn len(badMetrics), nil\n }\n+\n+// Retrieve metrics information\n+func getMetrics(c *client.Client) (string, error) {\n+\tbody, err := c.Get().AbsPath(\"/metrics\").DoRaw()\n+\tif err != nil {\n+\t\treturn \"\", err\n+\t}\n+\treturn string(body), nil\n+}\n+\n+// Retrieve debug information\n+func getDebugInfo(c *client.Client) (map[string]string, error) {","path":"test/e2e/util.go","position":274,"original_position":274,"commit_id":"e2ddf0638e4924fc799407aa8c0b7c3b63a7061c","original_commit_id":"e2ddf0638e4924fc799407aa8c0b7c3b63a7061c","user":{"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},"body":"For my own education - how can we use these debugging data? I only used it using ```go tool pprof```.","created_at":"2015-05-07T21:11:30Z","updated_at":"2015-05-07T21:11:30Z","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7573#discussion_r29896338","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/29896338"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7573#discussion_r29896338"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573","id":34481653,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7573","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7573.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7573.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7573","number":7573,"state":"open","locked":false,"title":"Added metrics/debug gathering methods to utils and used them in density ...","user":{"login":"rrati","id":87555,"avatar_url":"https://avatars.githubusercontent.com/u/87555?v=3","gravatar_id":"","url":"https://api.github.com/users/rrati","html_url":"https://github.com/rrati","followers_url":"https://api.github.com/users/rrati/followers","following_url":"https://api.github.com/users/rrati/following{/other_user}","gists_url":"https://api.github.com/users/rrati/gists{/gist_id}","starred_url":"https://api.github.com/users/rrati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrati/subscriptions","organizations_url":"https://api.github.com/users/rrati/orgs","repos_url":"https://api.github.com/users/rrati/repos","events_url":"https://api.github.com/users/rrati/events{/privacy}","received_events_url":"https://api.github.com/users/rrati/received_events","type":"User","site_admin":false},"body":"...#7572","created_at":"2015-04-30T17:21:37Z","updated_at":"2015-05-07T21:11:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51833033334d1c7064671819559af0370c16a1cf","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},"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7573/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/e2ddf0638e4924fc799407aa8c0b7c3b63a7061c","head":{"label":"rrati:performance-gathering-7572","ref":"performance-gathering-7572","sha":"e2ddf0638e4924fc799407aa8c0b7c3b63a7061c","user":{"login":"rrati","id":87555,"avatar_url":"https://avatars.githubusercontent.com/u/87555?v=3","gravatar_id":"","url":"https://api.github.com/users/rrati","html_url":"https://github.com/rrati","followers_url":"https://api.github.com/users/rrati/followers","following_url":"https://api.github.com/users/rrati/following{/other_user}","gists_url":"https://api.github.com/users/rrati/gists{/gist_id}","starred_url":"https://api.github.com/users/rrati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrati/subscriptions","organizations_url":"https://api.github.com/users/rrati/orgs","repos_url":"https://api.github.com/users/rrati/repos","events_url":"https://api.github.com/users/rrati/events{/privacy}","received_events_url":"https://api.github.com/users/rrati/received_events","type":"User","site_admin":false},"repo":{"id":29687789,"name":"kubernetes","full_name":"rrati/kubernetes","owner":{"login":"rrati","id":87555,"avatar_url":"https://avatars.githubusercontent.com/u/87555?v=3","gravatar_id":"","url":"https://api.github.com/users/rrati","html_url":"https://github.com/rrati","followers_url":"https://api.github.com/users/rrati/followers","following_url":"https://api.github.com/users/rrati/following{/other_user}","gists_url":"https://api.github.com/users/rrati/gists{/gist_id}","starred_url":"https://api.github.com/users/rrati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrati/subscriptions","organizations_url":"https://api.github.com/users/rrati/orgs","repos_url":"https://api.github.com/users/rrati/repos","events_url":"https://api.github.com/users/rrati/events{/privacy}","received_events_url":"https://api.github.com/users/rrati/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rrati/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/rrati/kubernetes","forks_url":"https://api.github.com/repos/rrati/kubernetes/forks","keys_url":"https://api.github.com/repos/rrati/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rrati/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rrati/kubernetes/teams","hooks_url":"https://api.github.com/repos/rrati/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/rrati/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/rrati/kubernetes/events","assignees_url":"https://api.github.com/repos/rrati/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/rrati/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/rrati/kubernetes/tags","blobs_url":"https://api.github.com/repos/rrati/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rrati/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rrati/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/rrati/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rrati/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/rrati/kubernetes/languages","stargazers_url":"https://api.github.com/repos/rrati/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/rrati/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/rrati/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/rrati/kubernetes/subscription","commits_url":"https://api.github.com/repos/rrati/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/rrati/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/rrati/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/rrati/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/rrati/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/rrati/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rrati/kubernetes/merges","archive_url":"https://api.github.com/repos/rrati/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rrati/kubernetes/downloads","issues_url":"https://api.github.com/repos/rrati/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/rrati/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/rrati/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/rrati/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rrati/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/rrati/kubernetes/releases{/id}","created_at":"2015-01-22T16:22:37Z","updated_at":"2015-05-01T15:45:11Z","pushed_at":"2015-05-07T18:40:55Z","git_url":"git://github.com/rrati/kubernetes.git","ssh_url":"git@github.com:rrati/kubernetes.git","clone_url":"https://github.com/rrati/kubernetes.git","svn_url":"https://github.com/rrati/kubernetes","homepage":"http://kubernetes.io","size":52376,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"6ab51f3bc053a39d6b0da8a933a91236b8adf6ea","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"GoogleCloudPlatform/kubernetes","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes","description":"Container Cluster Manager from Google","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/releases{/id}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-05-07T20:51:41Z","pushed_at":"2015-05-07T21:09:31Z","git_url":"git://github.com/GoogleCloudPlatform/kubernetes.git","ssh_url":"git@github.com:GoogleCloudPlatform/kubernetes.git","clone_url":"https://github.com/GoogleCloudPlatform/kubernetes.git","svn_url":"https://github.com/GoogleCloudPlatform/kubernetes","homepage":"http://kubernetes.io","size":255202,"stargazers_count":7537,"watchers_count":7537,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1526,"mirror_url":null,"open_issues_count":1011,"forks":1526,"open_issues":1011,"watchers":7537,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7573"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7573"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7573/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7573/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/e2ddf0638e4924fc799407aa8c0b7c3b63a7061c"}}}}