mfussenegger / crate-top

A top for Crate.IO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crate-top

A top for Crate.IO

ctop is ispired by the awesome interactive process monitoring tool htop. ctop should be a similar tool, but for monitoring a Crate.IO cluster.

Screenshot of ctop in action

Usage

git clone
cd crate-top
python3.4 bootstrap.py
bin/buildout -N
$ bin/ctop --help
usage: CrateTop [-h] [--hosts HOSTS]

optional arguments:
  -h, --help            show this help message and exit
  --hosts HOSTS, --crate-hosts HOSTS
                        Comma separated list of Crate hosts to connect to.

Hotkeys

  • 1 ... toggle detail bars for CPU, PROC, MEM, HEAP, DISK
  • 2 ... toggle detail bars for NET I/O, DISK I/O
  • f1 ... enable/disable job logging (this also sets the stats.jobs_log cluster setting)

Known Issues

  • Small terminal sizes will raise CanvasErrors because of content overflow

Todo

  • display disk usage
  • display disk i/o
  • display network i/o
  • display node names in detail views
  • use multiprocessing to perform http requests
  • coloring of i/o stats
  • responsive i/o widget

About

A top for Crate.IO

License:Apache License 2.0


Languages

Language:Python 100.0%