Code Monkey home page Code Monkey logo

rrtop's Introduction

rrtop

[r]ust [r]edis [top]

Tool for monitoring redis server.

Screenshots:

blackbird color scheme rrtop one dark color scheme rrtop

Install:

Fetch the latest release

Install (linux x86_64)

sudo wget https://github.com/wojciech-zurek/rrtop/releases/download/v0.1.0/rrtop-x86_64-unknown-linux-gnu -O /usr/local/bin/rrtop
sudo chmod +x /usr/local/bin/rrtop

Install (linux arm64)

sudo wget https://github.com/wojciech-zurek/rrtop/releases/download/v0.1.0/rrtop-aarch64-unknown-linux-gnu -O /usr/local/bin/rrtop
sudo chmod +x /usr/local/bin/rrtop

Install (aarch64-linux-android, termux, tested on Gemini PDA)

wget https://github.com/wojciech-zurek/rrtop/releases/download/v0.1.0/rrtop-aarch64-linux-android -O $HOME/../usr/bin/rrtop
chmod +x $HOME/../usr/bin/rrtop

Install (windows x86_64)

Fetch windows version: windows release

Clone, self-build, run (linux):

git clone [email protected]:wojciech-zurek/rrtop.git

cd rrtop

RUSTFLAGS="-C target-cpu=native" cargo build --release

sudo cp target/release/rrtop /bin/rrtop

rrtop --help

Features:

rrtop is an application that allows you to monitor your redis server.

  • latency,
  • uptime,
  • server version,
  • pid,
  • role,
  • cpu sys utilization,
  • cpu user utilization,
  • op/s,
  • total commands,
  • network usage:
    • total rx,
    • rx/s,
    • total tx,
    • tx/s.
  • memory usage:
    • max memory,
    • used memory,
    • rss memory,
    • fragmentation ratio.
  • hit rate,
  • total keys number,
  • keys to expire,
  • keys expired/s,
  • evicted keys/s,
  • command stats (with ratio), sort by:
    • call,
    • usec,
    • usec per call.
  • slow log:
    • id,
    • time,
    • exec time,
    • command,
    • client ip/socket file,
    • client name (if set).
  • raw info.

Project status:

  • alpha (more testing needed),
  • ui - layout, widgets may change in the future.

Requirements:

  • rust (for self compiling/building),
  • redis :),
  • modern terminal (like tilix) with true colors support,
  • min terminal size: 60x13 (more is better).

Supported redis version:

  • 5
  • 6

Other versions not tested.

Usage:

rrtop 0.1.0
Wojciech Żurek
[R]ust [R]edis [Top] - tool for monitoring redis server.

USAGE:
    rrtop [OPTIONS]

FLAGS:
        --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c <color-scheme>              Color scheme. [default: default] [possible values: blackbird, bw,
                                   default, dracula, nord, one-dark, solarized-dark]
    -t <connection-timeout>        Connection timeout in seconds [default: 5]
    -d <draw-background>           Draw background [default: true]
    -f <file-log-path>             Set file log path
    -h <host>                      Server hostname. [default: 127.0.0.1]
    -a <password>                  Password to use when connecting to the server.
    -p <port>                      Server port. [default: 6379]
    -s <socket>                    Server socket (overrides hostname and port).
    -r <tick-rate>                 Tick rate in seconds. Be careful. [default: 2.0]
    -u <username>                  User name to use when connecting to the server.
    -w <worker-number>             Worker number. Be careful. [default: 1]

How to connect:

via tcp:

# default host and port
rrtop

# custom host and port
rrtop -h 192.168.2.2 -p 6379

# custom host, port and password
rrtop -h 192.168.2.2 -p 6379 -a 123456

# custom user and password
rrtop -u test -a 123456

via unix socket:

# simple usage
rrtop -s path/to/socket/file

# custom password
rrtop -s path/to/socket/file -a 123456

Supported color schemes:

  • blackbird.
  • bw,
  • default,
  • dracula,
  • nord,
  • one-dark,
  • solarized-dark

How to change color scheme:

# use -c option
rrtop -c blackbird

Todo:

  • fix bugs :), optimize code, clean code,
  • support REDISCLI_AUTH for password auth,
  • more test,
  • support more metrics,
  • support more themes

Known issues:

  • no windows test,
  • no mac os test

More screenshots

nord color scheme rrtop dracula color scheme rrtop solarized dark color scheme rrtop raw info rrtop android, termux rrtop

Some inspiration came from:

  • bpytop,
  • ytop,
  • redis-stat

License

MIT see LICENSE for the full license text.

rrtop's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isgasho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.