{"action":"created","issue":{"url":"https://api.github.com/repos/stamf/shocker/issues/33","labels_url":"https://api.github.com/repos/stamf/shocker/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/stamf/shocker/issues/33/comments","events_url":"https://api.github.com/repos/stamf/shocker/issues/33/events","html_url":"https://github.com/stamf/shocker/issues/33","id":121485833,"number":33,"title":"shocker-list","user":{"login":"yoshuawuyts","id":2467194,"avatar_url":"https://avatars.githubusercontent.com/u/2467194?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-10T13:34:16Z","updated_at":"2015-12-10T13:59:04Z","closed_at":null,"body":"I think we'd want to expose the following information:\r\n- image name\r\n- container name\r\n- ip\r\n\r\nDocker exposes:\r\n```txt\r\ncontainer_id,image,command,created,status,ports,names\r\n```\r\n```txt\r\n$ docker ps\r\nCONTAINER ID        IMAGE                        COMMAND                CREATED              STATUS              PORTS               NAMES\r\n4c01db0b339c        ubuntu:12.04                 bash                   17 seconds ago       Up 16 seconds       3300-3310/tcp       webapp\r\nd7886598dbe2        crosbymichael/redis:latest   /redis-server --dir    33 minutes ago       Up 33 minutes       6379/tcp            redis,webapp/db\r\n```\r\n\r\nMostly on the fence about the `command` field, as once a container is started, any number of commands can be run in it. Also: `cpu,mem,network,disk` quotas might be interesting to show; both total and `%` usage. Probably also want to keep the log fields <80 chars if we can; though that might be hard haha.\r\n\r\nRelated to GH-30."},"comment":{"url":"https://api.github.com/repos/stamf/shocker/issues/comments/163626748","html_url":"https://github.com/stamf/shocker/issues/33#issuecomment-163626748","issue_url":"https://api.github.com/repos/stamf/shocker/issues/33","id":163626748,"user":{"login":"yoshuawuyts","id":2467194,"avatar_url":"https://avatars.githubusercontent.com/u/2467194?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T13:59:04Z","updated_at":"2015-12-10T13:59:04Z","body":"__list style, static data only__\r\n```txt\r\n$ shocker status\r\nNAME         STATE    IP            PORTS\r\nmy-gateway   running  127.0.0.1/24  80,443\r\nmy-api       running  127.0.0.3/24\r\nmy-database  running  127.0.0.2/24\r\n```\r\n\r\n__status style, dynamic data too!__\r\n```txt\r\n$ shocker status\r\nNAME         STATE    IP            CPU  MEM  PORTS\r\nmy-gateway   running  127.0.0.1/24  2%   3%   80,443\r\nmy-api       running  127.0.0.3/24  12%  21%\r\nmy-database  running  127.0.0.2/24  24%  18%\r\n```\r\nHere it would be `%` cpu of the host machine; see which processes are running hot. Showing quotas by default might be misleading. Perhaps show more with flags? Is `--top` even needed if we have this?"}}