{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/Hystrix/issues/958","labels_url":"https://api.github.com/repos/Netflix/Hystrix/issues/958/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/Hystrix/issues/958/comments","events_url":"https://api.github.com/repos/Netflix/Hystrix/issues/958/events","html_url":"https://github.com/Netflix/Hystrix/issues/958","id":113322217,"number":958,"title":"How do I expose hystrix.stream in the Prana sidecar?","user":{"login":"uharband","id":11019326,"avatar_url":"https://avatars.githubusercontent.com/u/11019326?v=3","gravatar_id":"","url":"https://api.github.com/users/uharband","html_url":"https://github.com/uharband","followers_url":"https://api.github.com/users/uharband/followers","following_url":"https://api.github.com/users/uharband/following{/other_user}","gists_url":"https://api.github.com/users/uharband/gists{/gist_id}","starred_url":"https://api.github.com/users/uharband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uharband/subscriptions","organizations_url":"https://api.github.com/users/uharband/orgs","repos_url":"https://api.github.com/users/uharband/repos","events_url":"https://api.github.com/users/uharband/events{/privacy}","received_events_url":"https://api.github.com/users/uharband/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Netflix/Hystrix/labels/metrics","name":"metrics","color":"bfdadc"},{"url":"https://api.github.com/repos/Netflix/Hystrix/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-26T10:03:21Z","updated_at":"2015-10-27T18:14:40Z","closed_at":null,"body":"Hi,\r\n\r\nas the Prana sidecar is a standalone java application, is there any way to expose the hystrix.stream?\r\n\r\nThanks,\r\n\r\nUzi"},"comment":{"url":"https://api.github.com/repos/Netflix/Hystrix/issues/comments/151595480","html_url":"https://github.com/Netflix/Hystrix/issues/958#issuecomment-151595480","issue_url":"https://api.github.com/repos/Netflix/Hystrix/issues/958","id":151595480,"user":{"login":"mattrjacobs","id":205579,"avatar_url":"https://avatars.githubusercontent.com/u/205579?v=3","gravatar_id":"","url":"https://api.github.com/users/mattrjacobs","html_url":"https://github.com/mattrjacobs","followers_url":"https://api.github.com/users/mattrjacobs/followers","following_url":"https://api.github.com/users/mattrjacobs/following{/other_user}","gists_url":"https://api.github.com/users/mattrjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrjacobs/subscriptions","organizations_url":"https://api.github.com/users/mattrjacobs/orgs","repos_url":"https://api.github.com/users/mattrjacobs/repos","events_url":"https://api.github.com/users/mattrjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/mattrjacobs/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T18:14:40Z","updated_at":"2015-10-27T18:14:40Z","body":"To rephrase your question: In a non-container app like Prana, how should the metrics stream get exposed?\r\n\r\nIf I'm rephrasing it properly, then right now the only consumer of the `HystrixMetricsPoller` is the `HystrixMetricsStreamServlet`.  There are other consumers possible that don't fit the metrics into a servlet.  \r\n\r\nOne such option is `com.netflix.hystrix.contrib.xnetty.metricsstream.HystrixMetricsStreamHandler`, which produces SSE metrics in an RxNetty event loop.\r\n\r\nIf that doesn't fit your needs, then you could consume the `HystrixMetricsPoller` any way you choose and hook that up to your standalone Java app.  I don't know enough about Prana to say how that would work precisely. \r\n\r\nIf you have a solution that makes sense, then feel free to submit a PR and we can see if it would be general-purpose enough to fix in one of the hystrix-contrib modules, or would be better as a custom Prana consumer."}}