{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/client_golang/pulls/comments/29432177","id":29432177,"diff_hunk":"@@ -0,0 +1,43 @@\n+package prometheus\n+\n+import (\n+\t\"runtime/debug\"\n+)\n+\n+type gcCollector struct {\n+\tnumGC      Gauge\n+\tpauseTotal Gauge\n+}\n+\n+// NewGCCollector returns a collector which exports metrics about the\n+// garbage collection stats of the current process.\n+func NewGCCollector() *gcCollector {\n+\treturn &gcCollector{\n+\t\tnumGC: NewGauge(GaugeOpts{\n+\t\t\tName: \"process_gc_num_total\",\n+\t\t\tHelp: \"Total number of garbage collector incovations for the current process.\",","path":"prometheus/gc_collector.go","position":18,"original_position":18,"commit_id":"b35296a636f6c16a1c043b8bf377a92386f6d3ea","original_commit_id":"b35296a636f6c16a1c043b8bf377a92386f6d3ea","user":{"login":"brian-brazil","id":7115638,"avatar_url":"https://avatars.githubusercontent.com/u/7115638?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-brazil","html_url":"https://github.com/brian-brazil","followers_url":"https://api.github.com/users/brian-brazil/followers","following_url":"https://api.github.com/users/brian-brazil/following{/other_user}","gists_url":"https://api.github.com/users/brian-brazil/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-brazil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-brazil/subscriptions","organizations_url":"https://api.github.com/users/brian-brazil/orgs","repos_url":"https://api.github.com/users/brian-brazil/repos","events_url":"https://api.github.com/users/brian-brazil/events{/privacy}","received_events_url":"https://api.github.com/users/brian-brazil/received_events","type":"User","site_admin":false},"body":"invocations\r\n\r\nThese two stats would be better as Summary without percentiles, as they're related Counters.","created_at":"2015-04-30T14:09:48Z","updated_at":"2015-04-30T14:09:48Z","html_url":"https://github.com/prometheus/client_golang/pull/113#discussion_r29432177","pull_request_url":"https://api.github.com/repos/prometheus/client_golang/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/prometheus/client_golang/pulls/comments/29432177"},"html":{"href":"https://github.com/prometheus/client_golang/pull/113#discussion_r29432177"},"pull_request":{"href":"https://api.github.com/repos/prometheus/client_golang/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/client_golang/pulls/113","id":34462378,"html_url":"https://github.com/prometheus/client_golang/pull/113","diff_url":"https://github.com/prometheus/client_golang/pull/113.diff","patch_url":"https://github.com/prometheus/client_golang/pull/113.patch","issue_url":"https://api.github.com/repos/prometheus/client_golang/issues/113","number":113,"state":"open","locked":false,"title":"Add garbage collection stats","user":{"login":"oliver006","id":1222339,"avatar_url":"https://avatars.githubusercontent.com/u/1222339?v=3","gravatar_id":"","url":"https://api.github.com/users/oliver006","html_url":"https://github.com/oliver006","followers_url":"https://api.github.com/users/oliver006/followers","following_url":"https://api.github.com/users/oliver006/following{/other_user}","gists_url":"https://api.github.com/users/oliver006/gists{/gist_id}","starred_url":"https://api.github.com/users/oliver006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliver006/subscriptions","organizations_url":"https://api.github.com/users/oliver006/orgs","repos_url":"https://api.github.com/users/oliver006/repos","events_url":"https://api.github.com/users/oliver006/events{/privacy}","received_events_url":"https://api.github.com/users/oliver006/received_events","type":"User","site_admin":false},"body":"This adds basic garbage collections stats to the metrics that are exported by default by the golang client.","created_at":"2015-04-30T14:02:33Z","updated_at":"2015-04-30T14:09:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3610c668b2f16c2b417895663a6af86824a04451","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/client_golang/pulls/113/commits","review_comments_url":"https://api.github.com/repos/prometheus/client_golang/pulls/113/comments","review_comment_url":"https://api.github.com/repos/prometheus/client_golang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/client_golang/issues/113/comments","statuses_url":"https://api.github.com/repos/prometheus/client_golang/statuses/b35296a636f6c16a1c043b8bf377a92386f6d3ea","head":{"label":"oliver006:add_gc_metrics","ref":"add_gc_metrics","sha":"b35296a636f6c16a1c043b8bf377a92386f6d3ea","user":{"login":"oliver006","id":1222339,"avatar_url":"https://avatars.githubusercontent.com/u/1222339?v=3","gravatar_id":"","url":"https://api.github.com/users/oliver006","html_url":"https://github.com/oliver006","followers_url":"https://api.github.com/users/oliver006/followers","following_url":"https://api.github.com/users/oliver006/following{/other_user}","gists_url":"https://api.github.com/users/oliver006/gists{/gist_id}","starred_url":"https://api.github.com/users/oliver006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliver006/subscriptions","organizations_url":"https://api.github.com/users/oliver006/orgs","repos_url":"https://api.github.com/users/oliver006/repos","events_url":"https://api.github.com/users/oliver006/events{/privacy}","received_events_url":"https://api.github.com/users/oliver006/received_events","type":"User","site_admin":false},"repo":{"id":34804905,"name":"client_golang","full_name":"oliver006/client_golang","owner":{"login":"oliver006","id":1222339,"avatar_url":"https://avatars.githubusercontent.com/u/1222339?v=3","gravatar_id":"","url":"https://api.github.com/users/oliver006","html_url":"https://github.com/oliver006","followers_url":"https://api.github.com/users/oliver006/followers","following_url":"https://api.github.com/users/oliver006/following{/other_user}","gists_url":"https://api.github.com/users/oliver006/gists{/gist_id}","starred_url":"https://api.github.com/users/oliver006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliver006/subscriptions","organizations_url":"https://api.github.com/users/oliver006/orgs","repos_url":"https://api.github.com/users/oliver006/repos","events_url":"https://api.github.com/users/oliver006/events{/privacy}","received_events_url":"https://api.github.com/users/oliver006/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oliver006/client_golang","description":"Prometheus instrumentation library for Go applications","fork":true,"url":"https://api.github.com/repos/oliver006/client_golang","forks_url":"https://api.github.com/repos/oliver006/client_golang/forks","keys_url":"https://api.github.com/repos/oliver006/client_golang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oliver006/client_golang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oliver006/client_golang/teams","hooks_url":"https://api.github.com/repos/oliver006/client_golang/hooks","issue_events_url":"https://api.github.com/repos/oliver006/client_golang/issues/events{/number}","events_url":"https://api.github.com/repos/oliver006/client_golang/events","assignees_url":"https://api.github.com/repos/oliver006/client_golang/assignees{/user}","branches_url":"https://api.github.com/repos/oliver006/client_golang/branches{/branch}","tags_url":"https://api.github.com/repos/oliver006/client_golang/tags","blobs_url":"https://api.github.com/repos/oliver006/client_golang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oliver006/client_golang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oliver006/client_golang/git/refs{/sha}","trees_url":"https://api.github.com/repos/oliver006/client_golang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oliver006/client_golang/statuses/{sha}","languages_url":"https://api.github.com/repos/oliver006/client_golang/languages","stargazers_url":"https://api.github.com/repos/oliver006/client_golang/stargazers","contributors_url":"https://api.github.com/repos/oliver006/client_golang/contributors","subscribers_url":"https://api.github.com/repos/oliver006/client_golang/subscribers","subscription_url":"https://api.github.com/repos/oliver006/client_golang/subscription","commits_url":"https://api.github.com/repos/oliver006/client_golang/commits{/sha}","git_commits_url":"https://api.github.com/repos/oliver006/client_golang/git/commits{/sha}","comments_url":"https://api.github.com/repos/oliver006/client_golang/comments{/number}","issue_comment_url":"https://api.github.com/repos/oliver006/client_golang/issues/comments{/number}","contents_url":"https://api.github.com/repos/oliver006/client_golang/contents/{+path}","compare_url":"https://api.github.com/repos/oliver006/client_golang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oliver006/client_golang/merges","archive_url":"https://api.github.com/repos/oliver006/client_golang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oliver006/client_golang/downloads","issues_url":"https://api.github.com/repos/oliver006/client_golang/issues{/number}","pulls_url":"https://api.github.com/repos/oliver006/client_golang/pulls{/number}","milestones_url":"https://api.github.com/repos/oliver006/client_golang/milestones{/number}","notifications_url":"https://api.github.com/repos/oliver006/client_golang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oliver006/client_golang/labels{/name}","releases_url":"https://api.github.com/repos/oliver006/client_golang/releases{/id}","created_at":"2015-04-29T16:27:47Z","updated_at":"2015-04-29T16:27:50Z","pushed_at":"2015-04-30T04:35:30Z","git_url":"git://github.com/oliver006/client_golang.git","ssh_url":"git@github.com:oliver006/client_golang.git","clone_url":"https://github.com/oliver006/client_golang.git","svn_url":"https://github.com/oliver006/client_golang","homepage":"","size":3425,"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":"prometheus:master","ref":"master","sha":"a7b24194e822a85201298a868b1fc9b5b493e901","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":7823926,"name":"client_golang","full_name":"prometheus/client_golang","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/client_golang","description":"Prometheus instrumentation library for Go applications","fork":false,"url":"https://api.github.com/repos/prometheus/client_golang","forks_url":"https://api.github.com/repos/prometheus/client_golang/forks","keys_url":"https://api.github.com/repos/prometheus/client_golang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/client_golang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/client_golang/teams","hooks_url":"https://api.github.com/repos/prometheus/client_golang/hooks","issue_events_url":"https://api.github.com/repos/prometheus/client_golang/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/client_golang/events","assignees_url":"https://api.github.com/repos/prometheus/client_golang/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/client_golang/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/client_golang/tags","blobs_url":"https://api.github.com/repos/prometheus/client_golang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/client_golang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/client_golang/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/client_golang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/client_golang/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/client_golang/languages","stargazers_url":"https://api.github.com/repos/prometheus/client_golang/stargazers","contributors_url":"https://api.github.com/repos/prometheus/client_golang/contributors","subscribers_url":"https://api.github.com/repos/prometheus/client_golang/subscribers","subscription_url":"https://api.github.com/repos/prometheus/client_golang/subscription","commits_url":"https://api.github.com/repos/prometheus/client_golang/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/client_golang/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/client_golang/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/client_golang/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/client_golang/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/client_golang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/client_golang/merges","archive_url":"https://api.github.com/repos/prometheus/client_golang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/client_golang/downloads","issues_url":"https://api.github.com/repos/prometheus/client_golang/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/client_golang/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/client_golang/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/client_golang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/client_golang/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/client_golang/releases{/id}","created_at":"2013-01-25T16:32:46Z","updated_at":"2015-04-30T13:57:30Z","pushed_at":"2015-04-30T14:02:33Z","git_url":"git://github.com/prometheus/client_golang.git","ssh_url":"git@github.com:prometheus/client_golang.git","clone_url":"https://github.com/prometheus/client_golang.git","svn_url":"https://github.com/prometheus/client_golang","homepage":"","size":3425,"stargazers_count":51,"watchers_count":51,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":11,"forks":13,"open_issues":11,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/client_golang/pulls/113"},"html":{"href":"https://github.com/prometheus/client_golang/pull/113"},"issue":{"href":"https://api.github.com/repos/prometheus/client_golang/issues/113"},"comments":{"href":"https://api.github.com/repos/prometheus/client_golang/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/client_golang/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/client_golang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/client_golang/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/client_golang/statuses/b35296a636f6c16a1c043b8bf377a92386f6d3ea"}}}}