Pipe runc (OCI compatible) events to a stats TUI (Text User Interface).

Clone this repo:

Branches

Tags

  1. cd35355 add coverage to travis by Jess Frazelle · 6 days ago master
  2. 39a3e02 update deps by Jess Frazelle · 6 days ago
  3. 919d830 fix travis by Jess Frazelle · 6 days ago
  4. e643097 Bump version to v0.1.0 by Jess Frazelle · 8 weeks ago v0.1.0
  5. 57e2f88 cleanup by Jess Frazelle · 8 weeks ago

magneto

Travis CI

Pipe runc events to a stats TUI (Text User Interface).

Installation

Binaries

Via Go

$ go get github.com/jessfraz/magneto

Usage

$ sudo runc events <container_id> | magneto
CPU %   MEM USAGE / LIMIT       MEM %     NET I/O               BLOCK I/O        PIDS
1.84%   108.8 MiB / 3.902 GiB   1.38%     54.86 MB / 792.8 kB   26.64 MB / 0 B   4

chrome.png

Usage with the docker-runc command that ships with docker

$ sudo docker-runc -root /run/docker/runtime-runc/moby events <container_id> | magneto
CPU %               MEM USAGE / LIMIT   MEM %               NET I/O             BLOCK I/O           PIDS
100.12%             452KiB / 8EiB       0.00%               0B / 0B             0B / 0B             2
$ magneto --help
                                  _
 _ __ ___   __ _  __ _ _ __   ___| |_ ___
| '_ ` _ \ / _` |/ _` | '_ \ / _ \ __/ _ \
| | | | | | (_| | (_| | | | |  __/ || (_) |
|_| |_| |_|\__,_|\__, |_| |_|\___|\__\___/
                 |___/

 Pipe runc events to a stats TUI (Text User Interface).
 Version: v0.1.0
 Build: 30036e2

  -d    run in debug mode
  -v    print version and exit (shorthand)
  -version
        print version and exit

NOTE: Almost all this is the exact same as docker stats, so thanks to everyone who made that possible.