{"action":"created","issue":{"url":"https://api.github.com/repos/aphyr/riemann-tools/issues/120","labels_url":"https://api.github.com/repos/aphyr/riemann-tools/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/aphyr/riemann-tools/issues/120/comments","events_url":"https://api.github.com/repos/aphyr/riemann-tools/issues/120/events","html_url":"https://github.com/aphyr/riemann-tools/pull/120","id":95837390,"number":120,"title":"Added docker-health tool","user":{"login":"shanielh","id":746471,"avatar_url":"https://avatars.githubusercontent.com/u/746471?v=3","gravatar_id":"","url":"https://api.github.com/users/shanielh","html_url":"https://github.com/shanielh","followers_url":"https://api.github.com/users/shanielh/followers","following_url":"https://api.github.com/users/shanielh/following{/other_user}","gists_url":"https://api.github.com/users/shanielh/gists{/gist_id}","starred_url":"https://api.github.com/users/shanielh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanielh/subscriptions","organizations_url":"https://api.github.com/users/shanielh/orgs","repos_url":"https://api.github.com/users/shanielh/repos","events_url":"https://api.github.com/users/shanielh/events{/privacy}","received_events_url":"https://api.github.com/users/shanielh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-18T16:16:47Z","updated_at":"2015-09-26T23:16:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aphyr/riemann-tools/pulls/120","html_url":"https://github.com/aphyr/riemann-tools/pull/120","diff_url":"https://github.com/aphyr/riemann-tools/pull/120.diff","patch_url":"https://github.com/aphyr/riemann-tools/pull/120.patch"},"body":"Hi! \r\n\r\nI've created the docker-health tool that I was talking about in #119 \r\n\r\nIt works using the docker remote API and the `/container/_/stats` command (without stream).\r\n\r\nSome open issues : \r\n\r\n* I could have made it _better_ using the \"streaming\" mode of the stats command, But this is out of my league in Ruby\r\n* I could have made it run _faster_ using some parallel for-each instead of normal for-each\r\n* The `host` that given for each container is determined by the host and container name (eg. `host-container`)\r\n* No `load` option for this one, because the tick time is every 10 seconds, I think that it's alright, If people will want `load`, they can use riemann streams to mimic the behaviour\r\n* The disk usage is still working using the code in `riemann-health` tool\r\n* I've added dependency on `docker-api` gem\r\n\r\nThis is how it looks \r\n\r\n![screen shot 2015-07-18 at 7 10 43 pm](https://cloud.githubusercontent.com/assets/746471/8762429/29e28984-2d81-11e5-973c-20d2244b5d37.png)"},"comment":{"url":"https://api.github.com/repos/aphyr/riemann-tools/issues/comments/143503854","html_url":"https://github.com/aphyr/riemann-tools/pull/120#issuecomment-143503854","issue_url":"https://api.github.com/repos/aphyr/riemann-tools/issues/120","id":143503854,"user":{"login":"aphyr","id":3748,"avatar_url":"https://avatars.githubusercontent.com/u/3748?v=3","gravatar_id":"","url":"https://api.github.com/users/aphyr","html_url":"https://github.com/aphyr","followers_url":"https://api.github.com/users/aphyr/followers","following_url":"https://api.github.com/users/aphyr/following{/other_user}","gists_url":"https://api.github.com/users/aphyr/gists{/gist_id}","starred_url":"https://api.github.com/users/aphyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphyr/subscriptions","organizations_url":"https://api.github.com/users/aphyr/orgs","repos_url":"https://api.github.com/users/aphyr/repos","events_url":"https://api.github.com/users/aphyr/events{/privacy}","received_events_url":"https://api.github.com/users/aphyr/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T23:16:07Z","updated_at":"2015-09-26T23:16:07Z","body":"Seems good to me! Thanks @shanielh. Sorry bout the delay, been incredibly busy with work and conferences recently."}}