{"action":"created","issue":{"url":"https://api.github.com/repos/eric/metriks-librato_metrics/issues/4","labels_url":"https://api.github.com/repos/eric/metriks-librato_metrics/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/eric/metriks-librato_metrics/issues/4/comments","events_url":"https://api.github.com/repos/eric/metriks-librato_metrics/issues/4/events","html_url":"https://github.com/eric/metriks-librato_metrics/pull/4","id":59369611,"number":4,"title":"We need to ensure to clean the data","user":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-01T00:51:22Z","updated_at":"2015-03-14T03:13:42Z","closed_at":"2015-03-14T03:12:42Z","pull_request":{"url":"https://api.github.com/repos/eric/metriks-librato_metrics/pulls/4","html_url":"https://github.com/eric/metriks-librato_metrics/pull/4","diff_url":"https://github.com/eric/metriks-librato_metrics/pull/4.diff","patch_url":"https://github.com/eric/metriks-librato_metrics/pull/4.patch"},"body":"If there is any error on Librato API, or any error in general on the\r\nHTTP connection, we still need to clear the data otherwise memory would\r\nleak.\r\n\r\nsee https://www.dropbox.com/s/zpo7obfcn27ek3o/Screenshot%202015-02-28%2019.32.04.png?dl=0\r\n\r\nYou can see that memory grows right after we stop getting data from `app`, `ruby.variance`. Also we can see in our logs lots of occurrences like: `LibratoMetrics: Broken pipe`.\r\nMy guess is that, at somepoint the data we are sending to Librato gets too big, and Librato closes the connection while we are sending. Regardless, we cannot leaky memory! \r\nThis is making us, on bundler-api, have to restart our servers as memory is leaking.\r\n\r\ncc @indirect @andremedeiros"},"comment":{"url":"https://api.github.com/repos/eric/metriks-librato_metrics/issues/comments/79767559","html_url":"https://github.com/eric/metriks-librato_metrics/pull/4#issuecomment-79767559","issue_url":"https://api.github.com/repos/eric/metriks-librato_metrics/issues/4","id":79767559,"user":{"login":"eric","id":470,"avatar_url":"https://avatars.githubusercontent.com/u/470?v=3","gravatar_id":"","url":"https://api.github.com/users/eric","html_url":"https://github.com/eric","followers_url":"https://api.github.com/users/eric/followers","following_url":"https://api.github.com/users/eric/following{/other_user}","gists_url":"https://api.github.com/users/eric/gists{/gist_id}","starred_url":"https://api.github.com/users/eric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric/subscriptions","organizations_url":"https://api.github.com/users/eric/orgs","repos_url":"https://api.github.com/users/eric/repos","events_url":"https://api.github.com/users/eric/events{/privacy}","received_events_url":"https://api.github.com/users/eric/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T03:13:42Z","updated_at":"2015-03-14T03:13:42Z","body":"```\r\nSuccessfully registered gem: metriks-librato_metrics (1.0.3)\r\n```"}}