{"action":"created","issue":{"url":"https://api.github.com/repos/snowplow/snowplow/issues/3635","repository_url":"https://api.github.com/repos/snowplow/snowplow","labels_url":"https://api.github.com/repos/snowplow/snowplow/issues/3635/labels{/name}","comments_url":"https://api.github.com/repos/snowplow/snowplow/issues/3635/comments","events_url":"https://api.github.com/repos/snowplow/snowplow/issues/3635/events","html_url":"https://github.com/snowplow/snowplow/pull/3635","id":299336288,"number":3635,"title":"[scala-stream-collector] Expose metrics over jmx","user":{"login":"jspc","id":810133,"avatar_url":"https://avatars2.githubusercontent.com/u/810133?v=4","gravatar_id":"","url":"https://api.github.com/users/jspc","html_url":"https://github.com/jspc","followers_url":"https://api.github.com/users/jspc/followers","following_url":"https://api.github.com/users/jspc/following{/other_user}","gists_url":"https://api.github.com/users/jspc/gists{/gist_id}","starred_url":"https://api.github.com/users/jspc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jspc/subscriptions","organizations_url":"https://api.github.com/users/jspc/orgs","repos_url":"https://api.github.com/users/jspc/repos","events_url":"https://api.github.com/users/jspc/events{/privacy}","received_events_url":"https://api.github.com/users/jspc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-22T12:33:52Z","updated_at":"2018-02-22T14:46:53Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/snowplow/snowplow/pulls/3635","html_url":"https://github.com/snowplow/snowplow/pull/3635","diff_url":"https://github.com/snowplow/snowplow/pull/3635.diff","patch_url":"https://github.com/snowplow/snowplow/pull/3635.patch"},"body":"The ability to determine whether or not the stream collector is doing much without interrogating/ pattern matching logs is useful for scaling events and debugging.\r\n\r\nThis PR introduces a custom mbean which starts to expose useful information. Hooking it into `jmxtrans` with the following config (for example):\r\n\r\n```xml\r\n    <query objectName=\"com.snowplowanalytics.snowplow.collectors.scalastream.monitoring:type=ScalaCollector\" attribute=\"Latest\"\r\n           resultAlias=\"scalastream.Latest\" />\r\n    <query objectName=\"com.snowplowanalytics.snowplow.collectors.scalastream.monitoring:type=ScalaCollector\" attribute=\"Requests\"\r\n           resultAlias=\"scalastream.Requests\" />\r\n    <query objectName=\"com.snowplowanalytics.snowplow.collectors.scalastream.monitoring:type=ScalaCollector\" attribute=\"SuccessfulRequests\"\r\n           resultAlias=\"scalastream.SuccessfulRequests\"/>\r\n    <query objectName=\"com.snowplowanalytics.snowplow.collectors.scalastream.monitoring:type=ScalaCollector\" attribute=\"FailedRequests\"\r\n           resultAlias=\"scalastream.FailedRequests\"/>\r\n```\r\n\r\nWould allow a developer to interrogate metrics like:\r\n\r\n```\r\nscalastream.Latest 1519302379 1519302389\r\nscalastream.Requests 1 1519302389\r\nscalastream.SuccessfulRequests 0 1519302389\r\nscalastream.FailedRequests 1 1519302389\r\n```"},"comment":{"url":"https://api.github.com/repos/snowplow/snowplow/issues/comments/367703201","html_url":"https://github.com/snowplow/snowplow/pull/3635#issuecomment-367703201","issue_url":"https://api.github.com/repos/snowplow/snowplow/issues/3635","id":367703201,"user":{"login":"jspc","id":810133,"avatar_url":"https://avatars2.githubusercontent.com/u/810133?v=4","gravatar_id":"","url":"https://api.github.com/users/jspc","html_url":"https://github.com/jspc","followers_url":"https://api.github.com/users/jspc/followers","following_url":"https://api.github.com/users/jspc/following{/other_user}","gists_url":"https://api.github.com/users/jspc/gists{/gist_id}","starred_url":"https://api.github.com/users/jspc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jspc/subscriptions","organizations_url":"https://api.github.com/users/jspc/orgs","repos_url":"https://api.github.com/users/jspc/repos","events_url":"https://api.github.com/users/jspc/events{/privacy}","received_events_url":"https://api.github.com/users/jspc/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T14:46:53Z","updated_at":"2018-02-22T14:46:53Z","author_association":"NONE","body":"@BenFradet - thanks for assigning yourself to this PR. I've sorted the thing I caught earlier."}}
{"actor":{"display_login":"jspc"}}