An open API service indexing awesome lists of open source software.

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).

Awesome Lists containing this project

README

        

# magneto

[![make-all](https://github.com/genuinetools/magneto/workflows/make%20all/badge.svg)](https://github.com/genuinetools/magneto/actions?query=workflow%3A%22make+all%22)
[![make-image](https://github.com/genuinetools/magneto/workflows/make%20image/badge.svg)](https://github.com/genuinetools/magneto/actions?query=workflow%3A%22make+image%22)
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/genuinetools/magneto)
[![Github All Releases](https://img.shields.io/github/downloads/genuinetools/magneto/total.svg?style=for-the-badge)](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
```

![chrome.png](chrome.png)

**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.