{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/node_exporter/pulls/comments/24264380","id":24264380,"diff_hunk":"@@ -98,7 +101,11 @@ func (c *statCollector) Update(ch chan<- prometheus.Metric) (err error) {\n \t\t\t}\n \t\t\t// Only some of these may be present, depending on kernel version.\n \t\t\tcpuFields := []string{\"user\", \"nice\", \"system\", \"idle\", \"iowait\", \"irq\", \"softirq\", \"steal\", \"guest\"}\n-\t\t\tfor i, v := range parts[1 : len(cpuFields)+1] {\n+\t\t\texFieldNum := len(cpuFields)+1","path":"collector/stat.go","position":15,"original_position":15,"commit_id":"5c7c09d4a15c9c37b7fb9b9dc6a65a0a64aac075","original_commit_id":"5c7c09d4a15c9c37b7fb9b9dc6a65a0a64aac075","user":{"login":"juliusv","id":538008,"avatar_url":"https://avatars.githubusercontent.com/u/538008?v=3","gravatar_id":"","url":"https://api.github.com/users/juliusv","html_url":"https://github.com/juliusv","followers_url":"https://api.github.com/users/juliusv/followers","following_url":"https://api.github.com/users/juliusv/following{/other_user}","gists_url":"https://api.github.com/users/juliusv/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusv/subscriptions","organizations_url":"https://api.github.com/users/juliusv/orgs","repos_url":"https://api.github.com/users/juliusv/repos","events_url":"https://api.github.com/users/juliusv/events{/privacy}","received_events_url":"https://api.github.com/users/juliusv/received_events","type":"User","site_admin":false},"body":"Variable-naming-wise, I've been trying to figure out what \"ex\" could mean (meaning that should probably be clarified). What's the intended meaning?","created_at":"2015-02-06T19:19:59Z","updated_at":"2015-02-06T19:19:59Z","html_url":"https://github.com/prometheus/node_exporter/pull/39#discussion_r24264380","pull_request_url":"https://api.github.com/repos/prometheus/node_exporter/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/prometheus/node_exporter/pulls/comments/24264380"},"html":{"href":"https://github.com/prometheus/node_exporter/pull/39#discussion_r24264380"},"pull_request":{"href":"https://api.github.com/repos/prometheus/node_exporter/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/node_exporter/pulls/39","id":28831731,"html_url":"https://github.com/prometheus/node_exporter/pull/39","diff_url":"https://github.com/prometheus/node_exporter/pull/39.diff","patch_url":"https://github.com/prometheus/node_exporter/pull/39.patch","issue_url":"https://api.github.com/repos/prometheus/node_exporter/issues/39","number":39,"state":"open","locked":false,"title":"Fixed panic when parsing /proc/stat on 2.6.32-25-pve","user":{"login":"DSpeichert","id":1254971,"avatar_url":"https://avatars.githubusercontent.com/u/1254971?v=3","gravatar_id":"","url":"https://api.github.com/users/DSpeichert","html_url":"https://github.com/DSpeichert","followers_url":"https://api.github.com/users/DSpeichert/followers","following_url":"https://api.github.com/users/DSpeichert/following{/other_user}","gists_url":"https://api.github.com/users/DSpeichert/gists{/gist_id}","starred_url":"https://api.github.com/users/DSpeichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSpeichert/subscriptions","organizations_url":"https://api.github.com/users/DSpeichert/orgs","repos_url":"https://api.github.com/users/DSpeichert/repos","events_url":"https://api.github.com/users/DSpeichert/events{/privacy}","received_events_url":"https://api.github.com/users/DSpeichert/received_events","type":"User","site_admin":false},"body":"Fixes issue described in #38\r\n/proc/stat reports a blank line which needs to be ignored.\r\nOld kernels misses one CPU time field, this needs to be ignored too.","created_at":"2015-02-06T18:44:53Z","updated_at":"2015-02-06T19:19:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23a3acc16fe84eedfdffd76f8afbe1a954a5ea1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/node_exporter/pulls/39/commits","review_comments_url":"https://api.github.com/repos/prometheus/node_exporter/pulls/39/comments","review_comment_url":"https://api.github.com/repos/prometheus/node_exporter/pulls/comments/{number}","comments_url":"https://api.github.com/repos/prometheus/node_exporter/issues/39/comments","statuses_url":"https://api.github.com/repos/prometheus/node_exporter/statuses/5c7c09d4a15c9c37b7fb9b9dc6a65a0a64aac075","head":{"label":"DSpeichert:master","ref":"master","sha":"5c7c09d4a15c9c37b7fb9b9dc6a65a0a64aac075","user":{"login":"DSpeichert","id":1254971,"avatar_url":"https://avatars.githubusercontent.com/u/1254971?v=3","gravatar_id":"","url":"https://api.github.com/users/DSpeichert","html_url":"https://github.com/DSpeichert","followers_url":"https://api.github.com/users/DSpeichert/followers","following_url":"https://api.github.com/users/DSpeichert/following{/other_user}","gists_url":"https://api.github.com/users/DSpeichert/gists{/gist_id}","starred_url":"https://api.github.com/users/DSpeichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSpeichert/subscriptions","organizations_url":"https://api.github.com/users/DSpeichert/orgs","repos_url":"https://api.github.com/users/DSpeichert/repos","events_url":"https://api.github.com/users/DSpeichert/events{/privacy}","received_events_url":"https://api.github.com/users/DSpeichert/received_events","type":"User","site_admin":false},"repo":{"id":30426037,"name":"node_exporter","full_name":"DSpeichert/node_exporter","owner":{"login":"DSpeichert","id":1254971,"avatar_url":"https://avatars.githubusercontent.com/u/1254971?v=3","gravatar_id":"","url":"https://api.github.com/users/DSpeichert","html_url":"https://github.com/DSpeichert","followers_url":"https://api.github.com/users/DSpeichert/followers","following_url":"https://api.github.com/users/DSpeichert/following{/other_user}","gists_url":"https://api.github.com/users/DSpeichert/gists{/gist_id}","starred_url":"https://api.github.com/users/DSpeichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSpeichert/subscriptions","organizations_url":"https://api.github.com/users/DSpeichert/orgs","repos_url":"https://api.github.com/users/DSpeichert/repos","events_url":"https://api.github.com/users/DSpeichert/events{/privacy}","received_events_url":"https://api.github.com/users/DSpeichert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DSpeichert/node_exporter","description":"Exporter for machine metrics","fork":true,"url":"https://api.github.com/repos/DSpeichert/node_exporter","forks_url":"https://api.github.com/repos/DSpeichert/node_exporter/forks","keys_url":"https://api.github.com/repos/DSpeichert/node_exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DSpeichert/node_exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DSpeichert/node_exporter/teams","hooks_url":"https://api.github.com/repos/DSpeichert/node_exporter/hooks","issue_events_url":"https://api.github.com/repos/DSpeichert/node_exporter/issues/events{/number}","events_url":"https://api.github.com/repos/DSpeichert/node_exporter/events","assignees_url":"https://api.github.com/repos/DSpeichert/node_exporter/assignees{/user}","branches_url":"https://api.github.com/repos/DSpeichert/node_exporter/branches{/branch}","tags_url":"https://api.github.com/repos/DSpeichert/node_exporter/tags","blobs_url":"https://api.github.com/repos/DSpeichert/node_exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DSpeichert/node_exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DSpeichert/node_exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/DSpeichert/node_exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DSpeichert/node_exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/DSpeichert/node_exporter/languages","stargazers_url":"https://api.github.com/repos/DSpeichert/node_exporter/stargazers","contributors_url":"https://api.github.com/repos/DSpeichert/node_exporter/contributors","subscribers_url":"https://api.github.com/repos/DSpeichert/node_exporter/subscribers","subscription_url":"https://api.github.com/repos/DSpeichert/node_exporter/subscription","commits_url":"https://api.github.com/repos/DSpeichert/node_exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/DSpeichert/node_exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/DSpeichert/node_exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/DSpeichert/node_exporter/issues/comments/{number}","contents_url":"https://api.github.com/repos/DSpeichert/node_exporter/contents/{+path}","compare_url":"https://api.github.com/repos/DSpeichert/node_exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DSpeichert/node_exporter/merges","archive_url":"https://api.github.com/repos/DSpeichert/node_exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DSpeichert/node_exporter/downloads","issues_url":"https://api.github.com/repos/DSpeichert/node_exporter/issues{/number}","pulls_url":"https://api.github.com/repos/DSpeichert/node_exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/DSpeichert/node_exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/DSpeichert/node_exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DSpeichert/node_exporter/labels{/name}","releases_url":"https://api.github.com/repos/DSpeichert/node_exporter/releases{/id}","created_at":"2015-02-06T18:11:38Z","updated_at":"2015-02-06T18:44:22Z","pushed_at":"2015-02-06T18:44:22Z","git_url":"git://github.com/DSpeichert/node_exporter.git","ssh_url":"git@github.com:DSpeichert/node_exporter.git","clone_url":"https://github.com/DSpeichert/node_exporter.git","svn_url":"https://github.com/DSpeichert/node_exporter","homepage":"http://prometheus.io/","size":2685,"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":"202bbe16fd8ba2b01b67372460ad0a372930cc50","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":9524057,"name":"node_exporter","full_name":"prometheus/node_exporter","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/node_exporter","description":"Exporter for machine metrics","fork":false,"url":"https://api.github.com/repos/prometheus/node_exporter","forks_url":"https://api.github.com/repos/prometheus/node_exporter/forks","keys_url":"https://api.github.com/repos/prometheus/node_exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/node_exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/node_exporter/teams","hooks_url":"https://api.github.com/repos/prometheus/node_exporter/hooks","issue_events_url":"https://api.github.com/repos/prometheus/node_exporter/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/node_exporter/events","assignees_url":"https://api.github.com/repos/prometheus/node_exporter/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/node_exporter/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/node_exporter/tags","blobs_url":"https://api.github.com/repos/prometheus/node_exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/node_exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/node_exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/node_exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/node_exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/node_exporter/languages","stargazers_url":"https://api.github.com/repos/prometheus/node_exporter/stargazers","contributors_url":"https://api.github.com/repos/prometheus/node_exporter/contributors","subscribers_url":"https://api.github.com/repos/prometheus/node_exporter/subscribers","subscription_url":"https://api.github.com/repos/prometheus/node_exporter/subscription","commits_url":"https://api.github.com/repos/prometheus/node_exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/node_exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/node_exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/node_exporter/issues/comments/{number}","contents_url":"https://api.github.com/repos/prometheus/node_exporter/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/node_exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/node_exporter/merges","archive_url":"https://api.github.com/repos/prometheus/node_exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/node_exporter/downloads","issues_url":"https://api.github.com/repos/prometheus/node_exporter/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/node_exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/node_exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/node_exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/node_exporter/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/node_exporter/releases{/id}","created_at":"2013-04-18T14:44:52Z","updated_at":"2015-02-06T16:40:17Z","pushed_at":"2015-02-05T17:08:54Z","git_url":"git://github.com/prometheus/node_exporter.git","ssh_url":"git@github.com:prometheus/node_exporter.git","clone_url":"https://github.com/prometheus/node_exporter.git","svn_url":"https://github.com/prometheus/node_exporter","homepage":"http://prometheus.io/","size":2685,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/node_exporter/pulls/39"},"html":{"href":"https://github.com/prometheus/node_exporter/pull/39"},"issue":{"href":"https://api.github.com/repos/prometheus/node_exporter/issues/39"},"comments":{"href":"https://api.github.com/repos/prometheus/node_exporter/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/node_exporter/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/node_exporter/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/prometheus/node_exporter/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/node_exporter/statuses/5c7c09d4a15c9c37b7fb9b9dc6a65a0a64aac075"}}}}