{"action":"created","comment":{"url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/comments/224878891","pull_request_review_id":164361376,"id":224878891,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDg3ODg5MQ==","diff_hunk":"@@ -0,0 +1,27 @@\n+class AkitaCollector < PrometheusExporter::Server::CollectorBase\n+\n+  def initialize\n+    @verified_users_cnt = PrometheusExporter::Metric::Counter.new('verified_users_count', 'Total # of verified accounts')\n+    @all_users_cnt = PrometheusExporter::Metric::Counter.new('all_users_count', 'Total # of accounts created (verified & unverified)')\n+    @mutex = Mutex.new\n+  end\n+\n+  def process(str)\n+    obj = JSON.parse(str)\n+    @mutex.synchronize do\n+      if verified_cnt = obj[\"verified_users_count\"]\n+        @verified_users_cnt.observe(verified_cnt)","path":"akita/opt/prometheus/prometheus-exporter/akita_collector.rb","position":13,"original_position":13,"commit_id":"acb4c5ee98ef4cb0deaf7e539547ccc9b59f6ec7","original_commit_id":"acb4c5ee98ef4cb0deaf7e539547ccc9b59f6ec7","user":{"login":"sgatchell","id":1165691,"node_id":"MDQ6VXNlcjExNjU2OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1165691?v=4","gravatar_id":"","url":"https://api.github.com/users/sgatchell","html_url":"https://github.com/sgatchell","followers_url":"https://api.github.com/users/sgatchell/followers","following_url":"https://api.github.com/users/sgatchell/following{/other_user}","gists_url":"https://api.github.com/users/sgatchell/gists{/gist_id}","starred_url":"https://api.github.com/users/sgatchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgatchell/subscriptions","organizations_url":"https://api.github.com/users/sgatchell/orgs","repos_url":"https://api.github.com/users/sgatchell/repos","events_url":"https://api.github.com/users/sgatchell/events{/privacy}","received_events_url":"https://api.github.com/users/sgatchell/received_events","type":"User","site_admin":false},"body":"oops wrong library, sorry","created_at":"2018-10-12T18:33:16Z","updated_at":"2018-10-12T18:33:16Z","html_url":"https://github.com/PLOS-Formulas/akita-formula/pull/24#discussion_r224878891","pull_request_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/comments/224878891"},"html":{"href":"https://github.com/PLOS-Formulas/akita-formula/pull/24#discussion_r224878891"},"pull_request":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24"}},"in_reply_to_id":224877778},"pull_request":{"url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24","id":219823196,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5ODIzMTk2","html_url":"https://github.com/PLOS-Formulas/akita-formula/pull/24","diff_url":"https://github.com/PLOS-Formulas/akita-formula/pull/24.diff","patch_url":"https://github.com/PLOS-Formulas/akita-formula/pull/24.patch","issue_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/24","number":24,"state":"open","locked":false,"title":"NAC-285: Akita Prometheus Exporter (upstart + env)","user":{"login":"mbowen","id":7374875,"node_id":"MDQ6VXNlcjczNzQ4NzU=","avatar_url":"https://avatars3.githubusercontent.com/u/7374875?v=4","gravatar_id":"","url":"https://api.github.com/users/mbowen","html_url":"https://github.com/mbowen","followers_url":"https://api.github.com/users/mbowen/followers","following_url":"https://api.github.com/users/mbowen/following{/other_user}","gists_url":"https://api.github.com/users/mbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/mbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbowen/subscriptions","organizations_url":"https://api.github.com/users/mbowen/orgs","repos_url":"https://api.github.com/users/mbowen/repos","events_url":"https://api.github.com/users/mbowen/events{/privacy}","received_events_url":"https://api.github.com/users/mbowen/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-02T19:46:41Z","updated_at":"2018-10-12T18:33:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c6d764d678719e9a85c35903938cef5fbc977c5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24/commits","review_comments_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24/comments","review_comment_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/24/comments","statuses_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/statuses/acb4c5ee98ef4cb0deaf7e539547ccc9b59f6ec7","head":{"label":"PLOS-Formulas:NAC-285","ref":"NAC-285","sha":"acb4c5ee98ef4cb0deaf7e539547ccc9b59f6ec7","user":{"login":"PLOS-Formulas","id":16492523,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDkyNTIz","avatar_url":"https://avatars0.githubusercontent.com/u/16492523?v=4","gravatar_id":"","url":"https://api.github.com/users/PLOS-Formulas","html_url":"https://github.com/PLOS-Formulas","followers_url":"https://api.github.com/users/PLOS-Formulas/followers","following_url":"https://api.github.com/users/PLOS-Formulas/following{/other_user}","gists_url":"https://api.github.com/users/PLOS-Formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/PLOS-Formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLOS-Formulas/subscriptions","organizations_url":"https://api.github.com/users/PLOS-Formulas/orgs","repos_url":"https://api.github.com/users/PLOS-Formulas/repos","events_url":"https://api.github.com/users/PLOS-Formulas/events{/privacy}","received_events_url":"https://api.github.com/users/PLOS-Formulas/received_events","type":"Organization","site_admin":false},"repo":{"id":85855018,"node_id":"MDEwOlJlcG9zaXRvcnk4NTg1NTAxOA==","name":"akita-formula","full_name":"PLOS-Formulas/akita-formula","private":false,"owner":{"login":"PLOS-Formulas","id":16492523,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDkyNTIz","avatar_url":"https://avatars0.githubusercontent.com/u/16492523?v=4","gravatar_id":"","url":"https://api.github.com/users/PLOS-Formulas","html_url":"https://github.com/PLOS-Formulas","followers_url":"https://api.github.com/users/PLOS-Formulas/followers","following_url":"https://api.github.com/users/PLOS-Formulas/following{/other_user}","gists_url":"https://api.github.com/users/PLOS-Formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/PLOS-Formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLOS-Formulas/subscriptions","organizations_url":"https://api.github.com/users/PLOS-Formulas/orgs","repos_url":"https://api.github.com/users/PLOS-Formulas/repos","events_url":"https://api.github.com/users/PLOS-Formulas/events{/privacy}","received_events_url":"https://api.github.com/users/PLOS-Formulas/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PLOS-Formulas/akita-formula","description":null,"fork":false,"url":"https://api.github.com/repos/PLOS-Formulas/akita-formula","forks_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/forks","keys_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/teams","hooks_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/hooks","issue_events_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/events{/number}","events_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/events","assignees_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/assignees{/user}","branches_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/branches{/branch}","tags_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/tags","blobs_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/refs{/sha}","trees_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/statuses/{sha}","languages_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/languages","stargazers_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/stargazers","contributors_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/contributors","subscribers_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/subscribers","subscription_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/subscription","commits_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/commits{/sha}","git_commits_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/commits{/sha}","comments_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/comments{/number}","issue_comment_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/comments{/number}","contents_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/contents/{+path}","compare_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/merges","archive_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/downloads","issues_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues{/number}","pulls_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls{/number}","milestones_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/milestones{/number}","notifications_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/labels{/name}","releases_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/releases{/id}","deployments_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/deployments","created_at":"2017-03-22T17:07:51Z","updated_at":"2018-09-20T22:54:23Z","pushed_at":"2018-10-03T17:46:07Z","git_url":"git://github.com/PLOS-Formulas/akita-formula.git","ssh_url":"git@github.com:PLOS-Formulas/akita-formula.git","clone_url":"https://github.com/PLOS-Formulas/akita-formula.git","svn_url":"https://github.com/PLOS-Formulas/akita-formula","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"PLOS-Formulas:dev","ref":"dev","sha":"753c34db1ada066d79b4d823ca4426ebf97c5ba8","user":{"login":"PLOS-Formulas","id":16492523,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDkyNTIz","avatar_url":"https://avatars0.githubusercontent.com/u/16492523?v=4","gravatar_id":"","url":"https://api.github.com/users/PLOS-Formulas","html_url":"https://github.com/PLOS-Formulas","followers_url":"https://api.github.com/users/PLOS-Formulas/followers","following_url":"https://api.github.com/users/PLOS-Formulas/following{/other_user}","gists_url":"https://api.github.com/users/PLOS-Formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/PLOS-Formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLOS-Formulas/subscriptions","organizations_url":"https://api.github.com/users/PLOS-Formulas/orgs","repos_url":"https://api.github.com/users/PLOS-Formulas/repos","events_url":"https://api.github.com/users/PLOS-Formulas/events{/privacy}","received_events_url":"https://api.github.com/users/PLOS-Formulas/received_events","type":"Organization","site_admin":false},"repo":{"id":85855018,"node_id":"MDEwOlJlcG9zaXRvcnk4NTg1NTAxOA==","name":"akita-formula","full_name":"PLOS-Formulas/akita-formula","private":false,"owner":{"login":"PLOS-Formulas","id":16492523,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDkyNTIz","avatar_url":"https://avatars0.githubusercontent.com/u/16492523?v=4","gravatar_id":"","url":"https://api.github.com/users/PLOS-Formulas","html_url":"https://github.com/PLOS-Formulas","followers_url":"https://api.github.com/users/PLOS-Formulas/followers","following_url":"https://api.github.com/users/PLOS-Formulas/following{/other_user}","gists_url":"https://api.github.com/users/PLOS-Formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/PLOS-Formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLOS-Formulas/subscriptions","organizations_url":"https://api.github.com/users/PLOS-Formulas/orgs","repos_url":"https://api.github.com/users/PLOS-Formulas/repos","events_url":"https://api.github.com/users/PLOS-Formulas/events{/privacy}","received_events_url":"https://api.github.com/users/PLOS-Formulas/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PLOS-Formulas/akita-formula","description":null,"fork":false,"url":"https://api.github.com/repos/PLOS-Formulas/akita-formula","forks_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/forks","keys_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/teams","hooks_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/hooks","issue_events_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/events{/number}","events_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/events","assignees_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/assignees{/user}","branches_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/branches{/branch}","tags_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/tags","blobs_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/refs{/sha}","trees_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/statuses/{sha}","languages_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/languages","stargazers_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/stargazers","contributors_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/contributors","subscribers_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/subscribers","subscription_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/subscription","commits_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/commits{/sha}","git_commits_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/git/commits{/sha}","comments_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/comments{/number}","issue_comment_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/comments{/number}","contents_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/contents/{+path}","compare_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/merges","archive_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/downloads","issues_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues{/number}","pulls_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls{/number}","milestones_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/milestones{/number}","notifications_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/labels{/name}","releases_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/releases{/id}","deployments_url":"https://api.github.com/repos/PLOS-Formulas/akita-formula/deployments","created_at":"2017-03-22T17:07:51Z","updated_at":"2018-09-20T22:54:23Z","pushed_at":"2018-10-03T17:46:07Z","git_url":"git://github.com/PLOS-Formulas/akita-formula.git","ssh_url":"git@github.com:PLOS-Formulas/akita-formula.git","clone_url":"https://github.com/PLOS-Formulas/akita-formula.git","svn_url":"https://github.com/PLOS-Formulas/akita-formula","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24"},"html":{"href":"https://github.com/PLOS-Formulas/akita-formula/pull/24"},"issue":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/24"},"comments":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/PLOS-Formulas/akita-formula/statuses/acb4c5ee98ef4cb0deaf7e539547ccc9b59f6ec7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sgatchell"}}