{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/comments/101558355","pull_request_review_id":22290848,"id":101558355,"diff_hunk":"@@ -437,13 +437,22 @@ func filterServerMetrics(filter string) (map[int]*prometheus.GaugeVec, error) {\n }\n \n func main() {\n+\tconst pidFileHelpText = `Path to HAProxy pid file.","path":"haproxy_exporter.go","position":4,"original_position":4,"commit_id":"6b5b03b8c4d2cc0856c7249b56520dcf4dc3a843","original_commit_id":"6b5b03b8c4d2cc0856c7249b56520dcf4dc3a843","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":"This should be inlined.","created_at":"2017-02-16T16:14:13Z","updated_at":"2017-02-16T16:14:13Z","html_url":"https://github.com/prometheus/haproxy_exporter/pull/72#discussion_r101558355","pull_request_url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/comments/101558355"},"html":{"href":"https://github.com/prometheus/haproxy_exporter/pull/72#discussion_r101558355"},"pull_request":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72","id":106440766,"html_url":"https://github.com/prometheus/haproxy_exporter/pull/72","diff_url":"https://github.com/prometheus/haproxy_exporter/pull/72.diff","patch_url":"https://github.com/prometheus/haproxy_exporter/pull/72.patch","issue_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/72","number":72,"state":"open","locked":false,"title":"Improve help text of -haproxy.pid-file flag","user":{"login":"grobie","id":3432,"avatar_url":"https://avatars.githubusercontent.com/u/3432?v=3","gravatar_id":"","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false},"body":"Fixes #70.\r\n\r\n```\r\nUsage of ./haproxy_exporter:\r\n  -haproxy.pid-file string\r\n        Path to HAProxy pid file.\r\n\r\n        If provided, the standard process metrics get exported for the HAProxy\r\n        process, prefixed with 'haproxy_process_...'. The haproxy_process exporter\r\n        needs to have read access to files owned by the HAProxy process. Depends on\r\n        the availability of /proc.\r\n\r\n        https://prometheus.io/docs/instrumenting/writing_clientlibs/#process-metrics.\r\n  -haproxy.scrape-uri string\r\n        URI on which to scrape HAProxy. (default \"http://localhost/;csv\")\r\n  ...\r\n```\r\n@JensRantil ","created_at":"2017-02-16T02:03:19Z","updated_at":"2017-02-16T16:14:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7aa946353f25b6f4f964586181a3cf4af741480","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72/commits","review_comments_url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72/comments","review_comment_url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/72/comments","statuses_url":"https://api.github.com/repos/prometheus/haproxy_exporter/statuses/6b5b03b8c4d2cc0856c7249b56520dcf4dc3a843","head":{"label":"prometheus:grobie/document-haproxy-pid-file","ref":"grobie/document-haproxy-pid-file","sha":"6b5b03b8c4d2cc0856c7249b56520dcf4dc3a843","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":7939398,"name":"haproxy_exporter","full_name":"prometheus/haproxy_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/haproxy_exporter","description":"Simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption","fork":false,"url":"https://api.github.com/repos/prometheus/haproxy_exporter","forks_url":"https://api.github.com/repos/prometheus/haproxy_exporter/forks","keys_url":"https://api.github.com/repos/prometheus/haproxy_exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/haproxy_exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/haproxy_exporter/teams","hooks_url":"https://api.github.com/repos/prometheus/haproxy_exporter/hooks","issue_events_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/haproxy_exporter/events","assignees_url":"https://api.github.com/repos/prometheus/haproxy_exporter/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/haproxy_exporter/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/haproxy_exporter/tags","blobs_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/haproxy_exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/haproxy_exporter/languages","stargazers_url":"https://api.github.com/repos/prometheus/haproxy_exporter/stargazers","contributors_url":"https://api.github.com/repos/prometheus/haproxy_exporter/contributors","subscribers_url":"https://api.github.com/repos/prometheus/haproxy_exporter/subscribers","subscription_url":"https://api.github.com/repos/prometheus/haproxy_exporter/subscription","commits_url":"https://api.github.com/repos/prometheus/haproxy_exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/haproxy_exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/haproxy_exporter/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/haproxy_exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/haproxy_exporter/merges","archive_url":"https://api.github.com/repos/prometheus/haproxy_exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/haproxy_exporter/downloads","issues_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/haproxy_exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/haproxy_exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/haproxy_exporter/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/haproxy_exporter/releases{/id}","deployments_url":"https://api.github.com/repos/prometheus/haproxy_exporter/deployments","created_at":"2013-01-31T15:33:01Z","updated_at":"2017-02-16T06:16:07Z","pushed_at":"2017-02-16T02:05:48Z","git_url":"git://github.com/prometheus/haproxy_exporter.git","ssh_url":"git@github.com:prometheus/haproxy_exporter.git","clone_url":"https://github.com/prometheus/haproxy_exporter.git","svn_url":"https://github.com/prometheus/haproxy_exporter","homepage":"","size":795,"stargazers_count":80,"watchers_count":80,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":11,"forks":38,"open_issues":11,"watchers":80,"default_branch":"master"}},"base":{"label":"prometheus:master","ref":"master","sha":"f4e0b6544f191b9072be6a7f87d3b57d5a5a06f3","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":7939398,"name":"haproxy_exporter","full_name":"prometheus/haproxy_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/haproxy_exporter","description":"Simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption","fork":false,"url":"https://api.github.com/repos/prometheus/haproxy_exporter","forks_url":"https://api.github.com/repos/prometheus/haproxy_exporter/forks","keys_url":"https://api.github.com/repos/prometheus/haproxy_exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/haproxy_exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/haproxy_exporter/teams","hooks_url":"https://api.github.com/repos/prometheus/haproxy_exporter/hooks","issue_events_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/haproxy_exporter/events","assignees_url":"https://api.github.com/repos/prometheus/haproxy_exporter/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/haproxy_exporter/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/haproxy_exporter/tags","blobs_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/haproxy_exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/haproxy_exporter/languages","stargazers_url":"https://api.github.com/repos/prometheus/haproxy_exporter/stargazers","contributors_url":"https://api.github.com/repos/prometheus/haproxy_exporter/contributors","subscribers_url":"https://api.github.com/repos/prometheus/haproxy_exporter/subscribers","subscription_url":"https://api.github.com/repos/prometheus/haproxy_exporter/subscription","commits_url":"https://api.github.com/repos/prometheus/haproxy_exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/haproxy_exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/haproxy_exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/haproxy_exporter/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/haproxy_exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/haproxy_exporter/merges","archive_url":"https://api.github.com/repos/prometheus/haproxy_exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/haproxy_exporter/downloads","issues_url":"https://api.github.com/repos/prometheus/haproxy_exporter/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/haproxy_exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/haproxy_exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/haproxy_exporter/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/haproxy_exporter/releases{/id}","deployments_url":"https://api.github.com/repos/prometheus/haproxy_exporter/deployments","created_at":"2013-01-31T15:33:01Z","updated_at":"2017-02-16T06:16:07Z","pushed_at":"2017-02-16T02:05:48Z","git_url":"git://github.com/prometheus/haproxy_exporter.git","ssh_url":"git@github.com:prometheus/haproxy_exporter.git","clone_url":"https://github.com/prometheus/haproxy_exporter.git","svn_url":"https://github.com/prometheus/haproxy_exporter","homepage":"","size":795,"stargazers_count":80,"watchers_count":80,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":11,"forks":38,"open_issues":11,"watchers":80,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72"},"html":{"href":"https://github.com/prometheus/haproxy_exporter/pull/72"},"issue":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/72"},"comments":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/haproxy_exporter/statuses/6b5b03b8c4d2cc0856c7249b56520dcf4dc3a843"}}}}
{"actor":{"display_login":"brian-brazil"}}