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

Clone this repo:

Branches

  1. 67c15fa update deps by Jess Frazelle · 12 days ago master
  2. 334d252 fix arches by Jess Frazelle · 12 days ago
  3. 6c5d65c update generated project files by Jess Frazelle · 12 days ago
  4. 0b9e386 Bump version to v0.2.0 by Jess Frazelle · 2 months ago v0.2.0
  5. fd418c6 cleanup deadcode by Jess Frazelle · 2 months ago

magneto

Travis CI

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

Installation

Binaries

Via Go

$ go get github.com/genuinetools/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.2.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.