{"action":"created","comment":{"url":"https://api.github.com/repos/optimizely/tcollector/pulls/comments/54484622","id":54484622,"diff_hunk":"@@ -0,0 +1,72 @@\n+#!/usr/bin/python\n+\n+import json\n+import re\n+import sys\n+\n+from kafka import KafkaConsumer\n+\n+from collectors.lib import utils\n+\n+ENV = 'staging'\n+\n+def main(argv):\n+\n+    utils.drop_privileges()\n+\n+    # Pulls metrics from the \"samza_metrics\" Kafka topic\n+    consumer = KafkaConsumer('samza_metrics',\n+                           group_id='samza_metrics',","path":"collectors/0/samza_staging.py","position":19,"original_position":19,"commit_id":"b2f5977f1b0b3d0aad9d655b59982a00c44ae3ff","original_commit_id":"b2f5977f1b0b3d0aad9d655b59982a00c44ae3ff","user":{"login":"jasonxh","id":6090732,"avatar_url":"https://avatars.githubusercontent.com/u/6090732?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonxh","html_url":"https://github.com/jasonxh","followers_url":"https://api.github.com/users/jasonxh/followers","following_url":"https://api.github.com/users/jasonxh/following{/other_user}","gists_url":"https://api.github.com/users/jasonxh/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxh/subscriptions","organizations_url":"https://api.github.com/users/jasonxh/orgs","repos_url":"https://api.github.com/users/jasonxh/repos","events_url":"https://api.github.com/users/jasonxh/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxh/received_events","type":"User","site_admin":false},"body":"i think \"tcollector\" is better","created_at":"2016-02-29T21:51:56Z","updated_at":"2016-02-29T21:51:56Z","html_url":"https://github.com/optimizely/tcollector/pull/59#discussion_r54484622","pull_request_url":"https://api.github.com/repos/optimizely/tcollector/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/optimizely/tcollector/pulls/comments/54484622"},"html":{"href":"https://github.com/optimizely/tcollector/pull/59#discussion_r54484622"},"pull_request":{"href":"https://api.github.com/repos/optimizely/tcollector/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/optimizely/tcollector/pulls/59","id":60921578,"html_url":"https://github.com/optimizely/tcollector/pull/59","diff_url":"https://github.com/optimizely/tcollector/pull/59.diff","patch_url":"https://github.com/optimizely/tcollector/pull/59.patch","issue_url":"https://api.github.com/repos/optimizely/tcollector/issues/59","number":59,"state":"open","locked":false,"title":"Report staging samza metrics","user":{"login":"scabbage","id":363768,"avatar_url":"https://avatars.githubusercontent.com/u/363768?v=3","gravatar_id":"","url":"https://api.github.com/users/scabbage","html_url":"https://github.com/scabbage","followers_url":"https://api.github.com/users/scabbage/followers","following_url":"https://api.github.com/users/scabbage/following{/other_user}","gists_url":"https://api.github.com/users/scabbage/gists{/gist_id}","starred_url":"https://api.github.com/users/scabbage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scabbage/subscriptions","organizations_url":"https://api.github.com/users/scabbage/orgs","repos_url":"https://api.github.com/users/scabbage/repos","events_url":"https://api.github.com/users/scabbage/events{/privacy}","received_events_url":"https://api.github.com/users/scabbage/received_events","type":"User","site_admin":false},"body":"@optimizely/data-services @mikecdavis","created_at":"2016-02-26T23:39:38Z","updated_at":"2016-02-29T21:51:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cca0572cc9f154249584c25a811ba74e005d484f","assignee":{"login":"jasonxh","id":6090732,"avatar_url":"https://avatars.githubusercontent.com/u/6090732?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonxh","html_url":"https://github.com/jasonxh","followers_url":"https://api.github.com/users/jasonxh/followers","following_url":"https://api.github.com/users/jasonxh/following{/other_user}","gists_url":"https://api.github.com/users/jasonxh/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxh/subscriptions","organizations_url":"https://api.github.com/users/jasonxh/orgs","repos_url":"https://api.github.com/users/jasonxh/repos","events_url":"https://api.github.com/users/jasonxh/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxh/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/optimizely/tcollector/pulls/59/commits","review_comments_url":"https://api.github.com/repos/optimizely/tcollector/pulls/59/comments","review_comment_url":"https://api.github.com/repos/optimizely/tcollector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/optimizely/tcollector/issues/59/comments","statuses_url":"https://api.github.com/repos/optimizely/tcollector/statuses/b2f5977f1b0b3d0aad9d655b59982a00c44ae3ff","head":{"label":"optimizely:scabbage/NB-852-add-samza-metrics","ref":"scabbage/NB-852-add-samza-metrics","sha":"b2f5977f1b0b3d0aad9d655b59982a00c44ae3ff","user":{"login":"optimizely","id":1274132,"avatar_url":"https://avatars.githubusercontent.com/u/1274132?v=3","gravatar_id":"","url":"https://api.github.com/users/optimizely","html_url":"https://github.com/optimizely","followers_url":"https://api.github.com/users/optimizely/followers","following_url":"https://api.github.com/users/optimizely/following{/other_user}","gists_url":"https://api.github.com/users/optimizely/gists{/gist_id}","starred_url":"https://api.github.com/users/optimizely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimizely/subscriptions","organizations_url":"https://api.github.com/users/optimizely/orgs","repos_url":"https://api.github.com/users/optimizely/repos","events_url":"https://api.github.com/users/optimizely/events{/privacy}","received_events_url":"https://api.github.com/users/optimizely/received_events","type":"Organization","site_admin":false},"repo":{"id":13505232,"name":"tcollector","full_name":"optimizely/tcollector","owner":{"login":"optimizely","id":1274132,"avatar_url":"https://avatars.githubusercontent.com/u/1274132?v=3","gravatar_id":"","url":"https://api.github.com/users/optimizely","html_url":"https://github.com/optimizely","followers_url":"https://api.github.com/users/optimizely/followers","following_url":"https://api.github.com/users/optimizely/following{/other_user}","gists_url":"https://api.github.com/users/optimizely/gists{/gist_id}","starred_url":"https://api.github.com/users/optimizely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimizely/subscriptions","organizations_url":"https://api.github.com/users/optimizely/orgs","repos_url":"https://api.github.com/users/optimizely/repos","events_url":"https://api.github.com/users/optimizely/events{/privacy}","received_events_url":"https://api.github.com/users/optimizely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/optimizely/tcollector","description":"Data collection framework for OpenTSDB","fork":true,"url":"https://api.github.com/repos/optimizely/tcollector","forks_url":"https://api.github.com/repos/optimizely/tcollector/forks","keys_url":"https://api.github.com/repos/optimizely/tcollector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/optimizely/tcollector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/optimizely/tcollector/teams","hooks_url":"https://api.github.com/repos/optimizely/tcollector/hooks","issue_events_url":"https://api.github.com/repos/optimizely/tcollector/issues/events{/number}","events_url":"https://api.github.com/repos/optimizely/tcollector/events","assignees_url":"https://api.github.com/repos/optimizely/tcollector/assignees{/user}","branches_url":"https://api.github.com/repos/optimizely/tcollector/branches{/branch}","tags_url":"https://api.github.com/repos/optimizely/tcollector/tags","blobs_url":"https://api.github.com/repos/optimizely/tcollector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/optimizely/tcollector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/optimizely/tcollector/git/refs{/sha}","trees_url":"https://api.github.com/repos/optimizely/tcollector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/optimizely/tcollector/statuses/{sha}","languages_url":"https://api.github.com/repos/optimizely/tcollector/languages","stargazers_url":"https://api.github.com/repos/optimizely/tcollector/stargazers","contributors_url":"https://api.github.com/repos/optimizely/tcollector/contributors","subscribers_url":"https://api.github.com/repos/optimizely/tcollector/subscribers","subscription_url":"https://api.github.com/repos/optimizely/tcollector/subscription","commits_url":"https://api.github.com/repos/optimizely/tcollector/commits{/sha}","git_commits_url":"https://api.github.com/repos/optimizely/tcollector/git/commits{/sha}","comments_url":"https://api.github.com/repos/optimizely/tcollector/comments{/number}","issue_comment_url":"https://api.github.com/repos/optimizely/tcollector/issues/comments{/number}","contents_url":"https://api.github.com/repos/optimizely/tcollector/contents/{+path}","compare_url":"https://api.github.com/repos/optimizely/tcollector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/optimizely/tcollector/merges","archive_url":"https://api.github.com/repos/optimizely/tcollector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/optimizely/tcollector/downloads","issues_url":"https://api.github.com/repos/optimizely/tcollector/issues{/number}","pulls_url":"https://api.github.com/repos/optimizely/tcollector/pulls{/number}","milestones_url":"https://api.github.com/repos/optimizely/tcollector/milestones{/number}","notifications_url":"https://api.github.com/repos/optimizely/tcollector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/optimizely/tcollector/labels{/name}","releases_url":"https://api.github.com/repos/optimizely/tcollector/releases{/id}","deployments_url":"https://api.github.com/repos/optimizely/tcollector/deployments","created_at":"2013-10-11T17:35:33Z","updated_at":"2015-04-02T22:56:10Z","pushed_at":"2016-02-26T23:39:38Z","git_url":"git://github.com/optimizely/tcollector.git","ssh_url":"git@github.com:optimizely/tcollector.git","clone_url":"https://github.com/optimizely/tcollector.git","svn_url":"https://github.com/optimizely/tcollector","homepage":"http://opentsdb.net","size":5257,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"optimizely:master","ref":"master","sha":"70d64c369e717874000d3f41e5548eff98a0b192","user":{"login":"optimizely","id":1274132,"avatar_url":"https://avatars.githubusercontent.com/u/1274132?v=3","gravatar_id":"","url":"https://api.github.com/users/optimizely","html_url":"https://github.com/optimizely","followers_url":"https://api.github.com/users/optimizely/followers","following_url":"https://api.github.com/users/optimizely/following{/other_user}","gists_url":"https://api.github.com/users/optimizely/gists{/gist_id}","starred_url":"https://api.github.com/users/optimizely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimizely/subscriptions","organizations_url":"https://api.github.com/users/optimizely/orgs","repos_url":"https://api.github.com/users/optimizely/repos","events_url":"https://api.github.com/users/optimizely/events{/privacy}","received_events_url":"https://api.github.com/users/optimizely/received_events","type":"Organization","site_admin":false},"repo":{"id":13505232,"name":"tcollector","full_name":"optimizely/tcollector","owner":{"login":"optimizely","id":1274132,"avatar_url":"https://avatars.githubusercontent.com/u/1274132?v=3","gravatar_id":"","url":"https://api.github.com/users/optimizely","html_url":"https://github.com/optimizely","followers_url":"https://api.github.com/users/optimizely/followers","following_url":"https://api.github.com/users/optimizely/following{/other_user}","gists_url":"https://api.github.com/users/optimizely/gists{/gist_id}","starred_url":"https://api.github.com/users/optimizely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimizely/subscriptions","organizations_url":"https://api.github.com/users/optimizely/orgs","repos_url":"https://api.github.com/users/optimizely/repos","events_url":"https://api.github.com/users/optimizely/events{/privacy}","received_events_url":"https://api.github.com/users/optimizely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/optimizely/tcollector","description":"Data collection framework for OpenTSDB","fork":true,"url":"https://api.github.com/repos/optimizely/tcollector","forks_url":"https://api.github.com/repos/optimizely/tcollector/forks","keys_url":"https://api.github.com/repos/optimizely/tcollector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/optimizely/tcollector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/optimizely/tcollector/teams","hooks_url":"https://api.github.com/repos/optimizely/tcollector/hooks","issue_events_url":"https://api.github.com/repos/optimizely/tcollector/issues/events{/number}","events_url":"https://api.github.com/repos/optimizely/tcollector/events","assignees_url":"https://api.github.com/repos/optimizely/tcollector/assignees{/user}","branches_url":"https://api.github.com/repos/optimizely/tcollector/branches{/branch}","tags_url":"https://api.github.com/repos/optimizely/tcollector/tags","blobs_url":"https://api.github.com/repos/optimizely/tcollector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/optimizely/tcollector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/optimizely/tcollector/git/refs{/sha}","trees_url":"https://api.github.com/repos/optimizely/tcollector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/optimizely/tcollector/statuses/{sha}","languages_url":"https://api.github.com/repos/optimizely/tcollector/languages","stargazers_url":"https://api.github.com/repos/optimizely/tcollector/stargazers","contributors_url":"https://api.github.com/repos/optimizely/tcollector/contributors","subscribers_url":"https://api.github.com/repos/optimizely/tcollector/subscribers","subscription_url":"https://api.github.com/repos/optimizely/tcollector/subscription","commits_url":"https://api.github.com/repos/optimizely/tcollector/commits{/sha}","git_commits_url":"https://api.github.com/repos/optimizely/tcollector/git/commits{/sha}","comments_url":"https://api.github.com/repos/optimizely/tcollector/comments{/number}","issue_comment_url":"https://api.github.com/repos/optimizely/tcollector/issues/comments{/number}","contents_url":"https://api.github.com/repos/optimizely/tcollector/contents/{+path}","compare_url":"https://api.github.com/repos/optimizely/tcollector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/optimizely/tcollector/merges","archive_url":"https://api.github.com/repos/optimizely/tcollector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/optimizely/tcollector/downloads","issues_url":"https://api.github.com/repos/optimizely/tcollector/issues{/number}","pulls_url":"https://api.github.com/repos/optimizely/tcollector/pulls{/number}","milestones_url":"https://api.github.com/repos/optimizely/tcollector/milestones{/number}","notifications_url":"https://api.github.com/repos/optimizely/tcollector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/optimizely/tcollector/labels{/name}","releases_url":"https://api.github.com/repos/optimizely/tcollector/releases{/id}","deployments_url":"https://api.github.com/repos/optimizely/tcollector/deployments","created_at":"2013-10-11T17:35:33Z","updated_at":"2015-04-02T22:56:10Z","pushed_at":"2016-02-26T23:39:38Z","git_url":"git://github.com/optimizely/tcollector.git","ssh_url":"git@github.com:optimizely/tcollector.git","clone_url":"https://github.com/optimizely/tcollector.git","svn_url":"https://github.com/optimizely/tcollector","homepage":"http://opentsdb.net","size":5257,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/optimizely/tcollector/pulls/59"},"html":{"href":"https://github.com/optimizely/tcollector/pull/59"},"issue":{"href":"https://api.github.com/repos/optimizely/tcollector/issues/59"},"comments":{"href":"https://api.github.com/repos/optimizely/tcollector/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/optimizely/tcollector/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/optimizely/tcollector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/optimizely/tcollector/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/optimizely/tcollector/statuses/b2f5977f1b0b3d0aad9d655b59982a00c44ae3ff"}}}}