{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/Clever/ecs-rollover/pulls/7","id":75395198,"html_url":"https://github.com/Clever/ecs-rollover/pull/7","diff_url":"https://github.com/Clever/ecs-rollover/pull/7.diff","patch_url":"https://github.com/Clever/ecs-rollover/pull/7.patch","issue_url":"https://api.github.com/repos/Clever/ecs-rollover/issues/7","number":7,"state":"open","locked":false,"title":"rollover: print + sort by resource utilization per instance","user":{"login":"nathanleiby","id":102242,"avatar_url":"https://avatars.githubusercontent.com/u/102242?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleiby","html_url":"https://github.com/nathanleiby","followers_url":"https://api.github.com/users/nathanleiby/followers","following_url":"https://api.github.com/users/nathanleiby/following{/other_user}","gists_url":"https://api.github.com/users/nathanleiby/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleiby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleiby/subscriptions","organizations_url":"https://api.github.com/users/nathanleiby/orgs","repos_url":"https://api.github.com/users/nathanleiby/repos","events_url":"https://api.github.com/users/nathanleiby/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleiby/received_events","type":"User","site_admin":false},"body":"we sort by the sum of CPU and memory used, as a rough approximation. it\r\nfinds instances with poor overall utilization.\r\n\r\nExample output:\r\n\r\n```\r\n...\r\n72       - b1d45880-daa9-4e8c-ba15-999a9e0f07c1 (i-1bf4078c - us-west-1b) [ 26% cpu,  18% mem]\r\n73       - 72d059c3-a0e4-4132-a3b4-9d0e03b902d9 (i-69099bdc - us-west-1a) [ 28% cpu,  13% mem]\r\n74       - 911cd7d9-f187-4426-b1a5-cd2521360b8d (i-ea018a5f - us-west-1a) [ 24% cpu,  17% mem]\r\n75       - 9a27334e-fe24-4966-8b78-a91e04a629ec (i-c57be670 - us-west-1a) [ 16% cpu,  11% mem]\r\n76       - ec7a2318-c4fa-42a0-9197-35b1f3a70613 (i-ccca4579 - us-west-1a) [ 13% cpu,  12% mem]\r\n77       - f244d122-51b7-4bc1-b86e-98442a302601 (i-fb018a4e - us-west-1a) [ 10% cpu,   6% mem]\r\n78       - fff536df-c906-4c0e-9389-e34bddec7b37 (i-c77be672 - us-west-1a) [ 10% cpu,   6% mem]\r\nSpecify the indices - comma-separated (ex. \"1,2,4\") or inclusive range (ex. \"7-11\"):\r\n```\r\n","created_at":"2016-06-27T23:14:07Z","updated_at":"2016-06-27T23:14:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Clever/ecs-rollover/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Clever/ecs-rollover/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Clever/ecs-rollover/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Clever/ecs-rollover/issues/7/comments","statuses_url":"https://api.github.com/repos/Clever/ecs-rollover/statuses/017d6b4bdd3c3e33baaa199385afd20100151c10","head":{"label":"Clever:resource-utilization","ref":"resource-utilization","sha":"017d6b4bdd3c3e33baaa199385afd20100151c10","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":60639777,"name":"ecs-rollover","full_name":"Clever/ecs-rollover","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/ecs-rollover","description":"script to safely rollover ECS nodes without service interruption","fork":false,"url":"https://api.github.com/repos/Clever/ecs-rollover","forks_url":"https://api.github.com/repos/Clever/ecs-rollover/forks","keys_url":"https://api.github.com/repos/Clever/ecs-rollover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/ecs-rollover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/ecs-rollover/teams","hooks_url":"https://api.github.com/repos/Clever/ecs-rollover/hooks","issue_events_url":"https://api.github.com/repos/Clever/ecs-rollover/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/ecs-rollover/events","assignees_url":"https://api.github.com/repos/Clever/ecs-rollover/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/ecs-rollover/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/ecs-rollover/tags","blobs_url":"https://api.github.com/repos/Clever/ecs-rollover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/ecs-rollover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/ecs-rollover/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/ecs-rollover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/ecs-rollover/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/ecs-rollover/languages","stargazers_url":"https://api.github.com/repos/Clever/ecs-rollover/stargazers","contributors_url":"https://api.github.com/repos/Clever/ecs-rollover/contributors","subscribers_url":"https://api.github.com/repos/Clever/ecs-rollover/subscribers","subscription_url":"https://api.github.com/repos/Clever/ecs-rollover/subscription","commits_url":"https://api.github.com/repos/Clever/ecs-rollover/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/ecs-rollover/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/ecs-rollover/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/ecs-rollover/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/ecs-rollover/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/ecs-rollover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/ecs-rollover/merges","archive_url":"https://api.github.com/repos/Clever/ecs-rollover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/ecs-rollover/downloads","issues_url":"https://api.github.com/repos/Clever/ecs-rollover/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/ecs-rollover/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/ecs-rollover/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/ecs-rollover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/ecs-rollover/labels{/name}","releases_url":"https://api.github.com/repos/Clever/ecs-rollover/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/ecs-rollover/deployments","created_at":"2016-06-07T19:17:06Z","updated_at":"2016-06-08T21:29:23Z","pushed_at":"2016-06-27T23:14:07Z","git_url":"git://github.com/Clever/ecs-rollover.git","ssh_url":"git@github.com:Clever/ecs-rollover.git","clone_url":"https://github.com/Clever/ecs-rollover.git","svn_url":"https://github.com/Clever/ecs-rollover","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Clever:master","ref":"master","sha":"73c1797e43b9817f4e4d7a76c57d47cecdedd3c9","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":60639777,"name":"ecs-rollover","full_name":"Clever/ecs-rollover","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/ecs-rollover","description":"script to safely rollover ECS nodes without service interruption","fork":false,"url":"https://api.github.com/repos/Clever/ecs-rollover","forks_url":"https://api.github.com/repos/Clever/ecs-rollover/forks","keys_url":"https://api.github.com/repos/Clever/ecs-rollover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/ecs-rollover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/ecs-rollover/teams","hooks_url":"https://api.github.com/repos/Clever/ecs-rollover/hooks","issue_events_url":"https://api.github.com/repos/Clever/ecs-rollover/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/ecs-rollover/events","assignees_url":"https://api.github.com/repos/Clever/ecs-rollover/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/ecs-rollover/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/ecs-rollover/tags","blobs_url":"https://api.github.com/repos/Clever/ecs-rollover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/ecs-rollover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/ecs-rollover/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/ecs-rollover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/ecs-rollover/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/ecs-rollover/languages","stargazers_url":"https://api.github.com/repos/Clever/ecs-rollover/stargazers","contributors_url":"https://api.github.com/repos/Clever/ecs-rollover/contributors","subscribers_url":"https://api.github.com/repos/Clever/ecs-rollover/subscribers","subscription_url":"https://api.github.com/repos/Clever/ecs-rollover/subscription","commits_url":"https://api.github.com/repos/Clever/ecs-rollover/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/ecs-rollover/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/ecs-rollover/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/ecs-rollover/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/ecs-rollover/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/ecs-rollover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/ecs-rollover/merges","archive_url":"https://api.github.com/repos/Clever/ecs-rollover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/ecs-rollover/downloads","issues_url":"https://api.github.com/repos/Clever/ecs-rollover/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/ecs-rollover/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/ecs-rollover/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/ecs-rollover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/ecs-rollover/labels{/name}","releases_url":"https://api.github.com/repos/Clever/ecs-rollover/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/ecs-rollover/deployments","created_at":"2016-06-07T19:17:06Z","updated_at":"2016-06-08T21:29:23Z","pushed_at":"2016-06-27T23:14:07Z","git_url":"git://github.com/Clever/ecs-rollover.git","ssh_url":"git@github.com:Clever/ecs-rollover.git","clone_url":"https://github.com/Clever/ecs-rollover.git","svn_url":"https://github.com/Clever/ecs-rollover","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Clever/ecs-rollover/pulls/7"},"html":{"href":"https://github.com/Clever/ecs-rollover/pull/7"},"issue":{"href":"https://api.github.com/repos/Clever/ecs-rollover/issues/7"},"comments":{"href":"https://api.github.com/repos/Clever/ecs-rollover/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Clever/ecs-rollover/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Clever/ecs-rollover/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Clever/ecs-rollover/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Clever/ecs-rollover/statuses/017d6b4bdd3c3e33baaa199385afd20100151c10"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"nathanleiby"}}