{"action":"reopened","number":648,"pull_request":{"url":"https://api.github.com/repos/kubernetes/heapster/pulls/648","id":47418717,"html_url":"https://github.com/kubernetes/heapster/pull/648","diff_url":"https://github.com/kubernetes/heapster/pull/648.diff","patch_url":"https://github.com/kubernetes/heapster/pull/648.patch","issue_url":"https://api.github.com/repos/kubernetes/heapster/issues/648","number":648,"state":"open","locked":false,"title":"kafka sink (WIP) ","user":{"login":"huangyuqi","id":13324377,"avatar_url":"https://avatars.githubusercontent.com/u/13324377?v=3","gravatar_id":"","url":"https://api.github.com/users/huangyuqi","html_url":"https://github.com/huangyuqi","followers_url":"https://api.github.com/users/huangyuqi/followers","following_url":"https://api.github.com/users/huangyuqi/following{/other_user}","gists_url":"https://api.github.com/users/huangyuqi/gists{/gist_id}","starred_url":"https://api.github.com/users/huangyuqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangyuqi/subscriptions","organizations_url":"https://api.github.com/users/huangyuqi/orgs","repos_url":"https://api.github.com/users/huangyuqi/repos","events_url":"https://api.github.com/users/huangyuqi/events{/privacy}","received_events_url":"https://api.github.com/users/huangyuqi/received_events","type":"User","site_admin":false},"body":"Apache Kafka is publish-subscribe messaging rethought as a distributed commit log.\r\nKafka sink just transforms the monitoring metrics and events to kafka message with two topics: timeseriestopic, eventstopic.\r\n\r\nTo use the kafka sink add the following flag:\r\n```\r\n--sink=kafka:<KAFKA_SERVER_URL>[?<OPTIONS>]\r\n```\r\nNormally, kafka server has multi brokers, so brokers' list need be configured for producer.\r\nSo, we can set `KAFKA_SERVER_URL` to a dummy value, and provide kafka brokers' list in url's query string.\r\nBesides,the following options need be set in query string:\r\n\r\n* `timeseriestopic` - Kafka's topic for timeseries\r\n* `eventstopic` - Kafka's topic for events\r\n\r\nLike this:\r\n```\r\n--sink=kafka:http://kafka/?brokers=0.0.0.0:9092&brokers=0.0.0.0:9093&timeseriestopic=test&eventstopic=test \r\n```\r\n","created_at":"2015-10-12T13:20:31Z","updated_at":"2015-10-13T23:53:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bde68d347af34f019272857fe1f94b34cd41c79","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/heapster/pulls/648/commits","review_comments_url":"https://api.github.com/repos/kubernetes/heapster/pulls/648/comments","review_comment_url":"https://api.github.com/repos/kubernetes/heapster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/heapster/issues/648/comments","statuses_url":"https://api.github.com/repos/kubernetes/heapster/statuses/8819b06ab9c102122b1c3cc6b5644a87a43e60b6","head":{"label":"Huawei-PaaS:hw-kafka-sink","ref":"hw-kafka-sink","sha":"8819b06ab9c102122b1c3cc6b5644a87a43e60b6","user":{"login":"Huawei-PaaS","id":6876878,"avatar_url":"https://avatars.githubusercontent.com/u/6876878?v=3","gravatar_id":"","url":"https://api.github.com/users/Huawei-PaaS","html_url":"https://github.com/Huawei-PaaS","followers_url":"https://api.github.com/users/Huawei-PaaS/followers","following_url":"https://api.github.com/users/Huawei-PaaS/following{/other_user}","gists_url":"https://api.github.com/users/Huawei-PaaS/gists{/gist_id}","starred_url":"https://api.github.com/users/Huawei-PaaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huawei-PaaS/subscriptions","organizations_url":"https://api.github.com/users/Huawei-PaaS/orgs","repos_url":"https://api.github.com/users/Huawei-PaaS/repos","events_url":"https://api.github.com/users/Huawei-PaaS/events{/privacy}","received_events_url":"https://api.github.com/users/Huawei-PaaS/received_events","type":"Organization","site_admin":false},"repo":{"id":41338055,"name":"heapster","full_name":"Huawei-PaaS/heapster","owner":{"login":"Huawei-PaaS","id":6876878,"avatar_url":"https://avatars.githubusercontent.com/u/6876878?v=3","gravatar_id":"","url":"https://api.github.com/users/Huawei-PaaS","html_url":"https://github.com/Huawei-PaaS","followers_url":"https://api.github.com/users/Huawei-PaaS/followers","following_url":"https://api.github.com/users/Huawei-PaaS/following{/other_user}","gists_url":"https://api.github.com/users/Huawei-PaaS/gists{/gist_id}","starred_url":"https://api.github.com/users/Huawei-PaaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huawei-PaaS/subscriptions","organizations_url":"https://api.github.com/users/Huawei-PaaS/orgs","repos_url":"https://api.github.com/users/Huawei-PaaS/repos","events_url":"https://api.github.com/users/Huawei-PaaS/events{/privacy}","received_events_url":"https://api.github.com/users/Huawei-PaaS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Huawei-PaaS/heapster","description":"Compute Resource Usage Analysis and Monitoring of Container Clusters","fork":true,"url":"https://api.github.com/repos/Huawei-PaaS/heapster","forks_url":"https://api.github.com/repos/Huawei-PaaS/heapster/forks","keys_url":"https://api.github.com/repos/Huawei-PaaS/heapster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Huawei-PaaS/heapster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Huawei-PaaS/heapster/teams","hooks_url":"https://api.github.com/repos/Huawei-PaaS/heapster/hooks","issue_events_url":"https://api.github.com/repos/Huawei-PaaS/heapster/issues/events{/number}","events_url":"https://api.github.com/repos/Huawei-PaaS/heapster/events","assignees_url":"https://api.github.com/repos/Huawei-PaaS/heapster/assignees{/user}","branches_url":"https://api.github.com/repos/Huawei-PaaS/heapster/branches{/branch}","tags_url":"https://api.github.com/repos/Huawei-PaaS/heapster/tags","blobs_url":"https://api.github.com/repos/Huawei-PaaS/heapster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Huawei-PaaS/heapster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Huawei-PaaS/heapster/git/refs{/sha}","trees_url":"https://api.github.com/repos/Huawei-PaaS/heapster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Huawei-PaaS/heapster/statuses/{sha}","languages_url":"https://api.github.com/repos/Huawei-PaaS/heapster/languages","stargazers_url":"https://api.github.com/repos/Huawei-PaaS/heapster/stargazers","contributors_url":"https://api.github.com/repos/Huawei-PaaS/heapster/contributors","subscribers_url":"https://api.github.com/repos/Huawei-PaaS/heapster/subscribers","subscription_url":"https://api.github.com/repos/Huawei-PaaS/heapster/subscription","commits_url":"https://api.github.com/repos/Huawei-PaaS/heapster/commits{/sha}","git_commits_url":"https://api.github.com/repos/Huawei-PaaS/heapster/git/commits{/sha}","comments_url":"https://api.github.com/repos/Huawei-PaaS/heapster/comments{/number}","issue_comment_url":"https://api.github.com/repos/Huawei-PaaS/heapster/issues/comments{/number}","contents_url":"https://api.github.com/repos/Huawei-PaaS/heapster/contents/{+path}","compare_url":"https://api.github.com/repos/Huawei-PaaS/heapster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Huawei-PaaS/heapster/merges","archive_url":"https://api.github.com/repos/Huawei-PaaS/heapster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Huawei-PaaS/heapster/downloads","issues_url":"https://api.github.com/repos/Huawei-PaaS/heapster/issues{/number}","pulls_url":"https://api.github.com/repos/Huawei-PaaS/heapster/pulls{/number}","milestones_url":"https://api.github.com/repos/Huawei-PaaS/heapster/milestones{/number}","notifications_url":"https://api.github.com/repos/Huawei-PaaS/heapster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Huawei-PaaS/heapster/labels{/name}","releases_url":"https://api.github.com/repos/Huawei-PaaS/heapster/releases{/id}","created_at":"2015-08-25T02:23:32Z","updated_at":"2015-08-25T02:23:33Z","pushed_at":"2015-10-13T02:14:30Z","git_url":"git://github.com/Huawei-PaaS/heapster.git","ssh_url":"git@github.com:Huawei-PaaS/heapster.git","clone_url":"https://github.com/Huawei-PaaS/heapster.git","svn_url":"https://github.com/Huawei-PaaS/heapster","homepage":"","size":21003,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"kubernetes:master","ref":"master","sha":"5b904b61d789a72982160beaa6223db4c183a32e","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":23272510,"name":"heapster","full_name":"kubernetes/heapster","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/heapster","description":"Compute Resource Usage Analysis and Monitoring of Container Clusters","fork":false,"url":"https://api.github.com/repos/kubernetes/heapster","forks_url":"https://api.github.com/repos/kubernetes/heapster/forks","keys_url":"https://api.github.com/repos/kubernetes/heapster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/heapster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/heapster/teams","hooks_url":"https://api.github.com/repos/kubernetes/heapster/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/heapster/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/heapster/events","assignees_url":"https://api.github.com/repos/kubernetes/heapster/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/heapster/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/heapster/tags","blobs_url":"https://api.github.com/repos/kubernetes/heapster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/heapster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/heapster/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/heapster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/heapster/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/heapster/languages","stargazers_url":"https://api.github.com/repos/kubernetes/heapster/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/heapster/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/heapster/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/heapster/subscription","commits_url":"https://api.github.com/repos/kubernetes/heapster/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/heapster/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/heapster/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/heapster/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/heapster/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/heapster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/heapster/merges","archive_url":"https://api.github.com/repos/kubernetes/heapster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/heapster/downloads","issues_url":"https://api.github.com/repos/kubernetes/heapster/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/heapster/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/heapster/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/heapster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/heapster/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/heapster/releases{/id}","created_at":"2014-08-24T03:50:18Z","updated_at":"2015-10-13T15:13:07Z","pushed_at":"2015-10-13T21:21:34Z","git_url":"git://github.com/kubernetes/heapster.git","ssh_url":"git@github.com:kubernetes/heapster.git","clone_url":"https://github.com/kubernetes/heapster.git","svn_url":"https://github.com/kubernetes/heapster","homepage":"","size":24226,"stargazers_count":447,"watchers_count":447,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":115,"forks":120,"open_issues":115,"watchers":447,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/heapster/pulls/648"},"html":{"href":"https://github.com/kubernetes/heapster/pull/648"},"issue":{"href":"https://api.github.com/repos/kubernetes/heapster/issues/648"},"comments":{"href":"https://api.github.com/repos/kubernetes/heapster/issues/648/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/heapster/pulls/648/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/heapster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/heapster/pulls/648/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/heapster/statuses/8819b06ab9c102122b1c3cc6b5644a87a43e60b6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":6,"review_comments":0,"commits":1,"additions":6531,"deletions":0,"changed_files":41}}