https://github.com/genuinetools/magneto
Pipe runc (OCI compatible) events to a stats TUI (Text User Interface).
https://github.com/genuinetools/magneto
cgroups cli containers docker linux oci opencontainers runc stats
Last synced: 15 days ago
JSON representation
Pipe runc (OCI compatible) events to a stats TUI (Text User Interface).
- Host: GitHub
- URL: https://github.com/genuinetools/magneto
- Owner: genuinetools
- License: mit
- Created: 2016-01-16T04:48:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T20:09:32.000Z (over 4 years ago)
- Last Synced: 2025-04-08T15:49:45.270Z (about 1 month ago)
- Topics: cgroups, cli, containers, docker, linux, oci, opencontainers, runc, stats
- Language: Go
- Homepage:
- Size: 4.1 MB
- Stars: 46
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# magneto
[](https://github.com/genuinetools/magneto/actions?query=workflow%3A%22make+all%22)
[](https://github.com/genuinetools/magneto/actions?query=workflow%3A%22make+image%22)
[](https://godoc.org/github.com/genuinetools/magneto)
[](https://github.com/genuinetools/magneto/releases)Pipe runc events to a stats TUI (Text User Interface).
**Table of Contents**
- [Installation](#installation)
- [Binaries](#binaries)
- [Via Go](#via-go)
- [Usage](#usage)## Installation
#### Binaries
For installation instructions from binaries please visit the [Releases Page](https://github.com/genuinetools/magneto/releases).
#### Via Go
```console
$ go get github.com/genuinetools/magneto
```## Usage
```console
$ sudo runc events | 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
```
**Usage with the `docker-runc` command that ships with docker**
```console
$ sudo docker-runc -root /run/docker/runtime-runc/moby events | magneto
CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
100.12% 452KiB / 8EiB 0.00% 0B / 0B 0B / 0B 2
``````console
$ magneto -h
magneto - Pipe runc events to a stats TUI (Text User Interface).Usage: magneto
Flags:
-d enable debug logging (default: false)
Commands:
version Show the version information.
```**NOTE:** Almost all this is the exact same as `docker stats`, so thanks to
everyone who made that possible.