{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/heapster/issues/648","labels_url":"https://api.github.com/repos/kubernetes/heapster/issues/648/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/heapster/issues/648/comments","events_url":"https://api.github.com/repos/kubernetes/heapster/issues/648/events","html_url":"https://github.com/kubernetes/heapster/pull/648","id":110973712,"number":648,"title":"kafka sink ","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},"labels":[{"url":"https://api.github.com/repos/kubernetes/heapster/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-10-12T13:20:31Z","updated_at":"2015-10-31T00:12:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/heapster/pulls/648","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"},"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"},"comment":{"url":"https://api.github.com/repos/kubernetes/heapster/issues/comments/152677224","html_url":"https://github.com/kubernetes/heapster/pull/648#issuecomment-152677224","issue_url":"https://api.github.com/repos/kubernetes/heapster/issues/648","id":152677224,"user":{"login":"vishh","id":7063592,"avatar_url":"https://avatars.githubusercontent.com/u/7063592?v=3","gravatar_id":"","url":"https://api.github.com/users/vishh","html_url":"https://github.com/vishh","followers_url":"https://api.github.com/users/vishh/followers","following_url":"https://api.github.com/users/vishh/following{/other_user}","gists_url":"https://api.github.com/users/vishh/gists{/gist_id}","starred_url":"https://api.github.com/users/vishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishh/subscriptions","organizations_url":"https://api.github.com/users/vishh/orgs","repos_url":"https://api.github.com/users/vishh/repos","events_url":"https://api.github.com/users/vishh/events{/privacy}","received_events_url":"https://api.github.com/users/vishh/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T00:12:30Z","updated_at":"2015-10-31T00:12:30Z","body":"@huangyuqi: Is this PR ready for review? Have you addressed the pending comments?"}}