Use Redis' MONITOR to draw things in a terminal

Related tags

redistop
Overview

Redis Top

Redistop uses MONITOR to watch Redis commands and shows per command and per host statistics.

Because MONITOR streams back all commands, its use comes at a cost.

Redistop uses INFO command too.

Example

Redis Top screenshot

Build

If you have recent golang dev enironment set, you can build it with the Makefile

make

If you need a Linux compilation, or juste using Docker:

make docker-build

License

GPL v3

Issues
  • Pass sampling period as arg

    Pass sampling period as arg

    Like 'top' and others, it would be useful to be able to pass the sampling period in seconds as a command arg, to adapt to different situations.

    opened by zerodeux 1
  • Using tcell/tview not termui

    Using tcell/tview not termui

    With termui, redistop use 5% CPU on my laptop, it's huge for a dummy application that write text on a terminal.

    pprof shows the guilty : termui with their signal and syscall.

    Showing top 10 nodes out of 118
          flat  flat%   sum%        cum   cum%
         160ms 20.00% 20.00%      160ms 20.00%  runtime.kevent
         100ms 12.50% 32.50%      100ms 12.50%  runtime.nanotime1
          80ms 10.00% 42.50%       80ms 10.00%  runtime.pthread_cond_signal
          70ms  8.75% 51.25%       70ms  8.75%  runtime.pthread_cond_wait
          70ms  8.75% 60.00%       70ms  8.75%  syscall.Syscall
          60ms  7.50% 67.50%       60ms  7.50%  runtime.madvise
          50ms  6.25% 73.75%       70ms  8.75%  runtime.injectglist
          30ms  3.75% 77.50%      190ms 23.75%  runtime.netpoll
          30ms  3.75% 81.25%       30ms  3.75%  runtime.pthread_kill
          20ms  2.50% 83.75%       20ms  2.50%  syscall.syscall
    

    Termui has display glitch, too.

    Lets use tcell and tview.

    opened by athoune 1
  • Sparkle lines

    Sparkle lines

    opened by athoune 0
  • You can choose frequency.

    You can choose frequency.

    opened by athoune 0
Owner
Factory
Factory
Type-safe Redis client for Golang

Redis client for Golang ❤️ Uptrace.dev - distributed traces, logs, and errors in one place Join Discord to ask questions. Documentation Reference Exam

null 11.7k Jun 13, 2021
Redis Sorted Sets Benchmark

redis-zbench-go Redis Sorted Sets Benchmark Overview This repo contains code to trigger load ( ZADD ) or query (ZRANGEBYLEX key min max) benchmarks, w

filipe oliveira 3 May 18, 2021
Distributed WebSocket broker

dSock dSock is a distributed WebSocket broker (in Go, using Redis). Clients can authenticate & connect, and you can send text/binary message as an API

Charles Crete 198 Apr 13, 2021
Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more)

gokv Simple key-value store abstraction and implementations for Go Contents Features Simple interface Implementations Value types Marshal formats Road

Philipp Gillé 343 Jun 15, 2021
redis client implement by golang, inspired by jedis.

godis redis client implement by golang, refers to jedis. this library implements most of redis command, include normal redis command, cluster command,

piaohao 89 Apr 7, 2021
Google Go Client and Connectors for Redis

Go-Redis Go Clients and Connectors for Redis. The initial release provides the interface and implementation supporting the (~) full set of current Red

Joubin Houshyar 434 Jun 9, 2021
Golang client for redislabs' ReJSON module with support for multilple redis clients (redigo, go-redis)

Go-ReJSON - a golang client for ReJSON (a JSON data type for Redis) Go-ReJSON is a Go client for ReJSON Redis Module. ReJSON is a Redis module that im

Nitish Malhotra 167 Jun 9, 2021
Redis client library for Go

go-redis go-redis is a Redis client library for the Go programming language. It's built on the skeleton of gomemcache. It is safe to use by multiple g

Alexandre Fiori 45 Jul 14, 2020
Go Redis Client

xredis Built on top of github.com/garyburd/redigo with the idea to simplify creating a Redis client, provide type safe calls and encapsulate the low l

Raed Shomali 15 Jun 2, 2021
Go client for Redis

Redigo Redigo is a Go client for the Redis database. Features A Print-like API with support for all Redis commands. Pipelining, including pipelined tr

null 8.4k Jun 12, 2021
Redis client Mock Provide mock test for redis query

Redis client Mock Provide mock test for redis query, Compatible with github.com/go-redis/redis/v8 Install Confirm that you are using redis.Client the

null 35 Jun 12, 2021
Use Redis' MONITOR to draw things in a terminal

Redis Top Redistop uses MONITOR to watch Redis commands and shows per command and per host statistics. Because MONITOR streams back all commands, its

Factory 12 Jun 3, 2021
godis - an old Redis client for Go

godis Implements a few database clients for Redis. There is a stable client and an experimental client, redis and exp, respectively. To use any of the

Simon Zimmermann 87 Feb 11, 2021
High-performance framework for building redis-protocol compatible TCP servers/services

Redeo The high-performance Swiss Army Knife for building redis-protocol compatible servers/services. Parts This repository is organised into multiple

Black Square Media 396 Jun 1, 2021