Coder Social home page Coder Social logo

gearman_gtop's Introduction

gearman_gtop

A gearman_top replacement written in go

Differences

  • Scrolling
  • Sorting
  • Filtering

Usage

Command line options

Usage of gearman_gtop:
  -a, --all[=false]: Show all queues, even if the have no workers or jobs
  -e, --exclude="": Exclude queues containing this string. Can provide multiple separated by commas.
  -h, --host="localhost:4730": Gearmand host to connect to. Specify multiple separated by ';'
  -i, --include="": Include queues containing this string. Can provide multiple separated by commas.
  -l, --log[=false]: Log debug to /tmp/gearman_gtop.log
  -r, --regex="": Queries must match this regex. See https://github.com/google/re2/wiki/Syntax for supported syntax.
      --sort="1": Index of the column to sort by

Runtime

  • Pressing 1 through 4 will sort by the relavent column
  • q to quit

gearman_gtop's People

Contributors

nickpeirson avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gearman_gtop's Issues

Filter by Wildcard / Regex

There are times when I want to filter by a wildcard / regex, currently attempting to filter by either returns the following error:

$ gearman_gtop -sort=2 '-filterInclude=ekm.+Order' '-filterExclude=fail,stale'
panic: runtime error: index out of range

goroutine 16 [running]:
runtime.panic(0x5888a0, 0x6a333c)
    /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
main.drawStatus(0x6a6f98, 0x0, 0x0, 0x8, 0x6, 0x7, 0x7, 0x0, 0x29, 0xa5)
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:266 +0x4da
main.redraw(0x6a6f98, 0x0, 0x0, 0x8, 0x6, 0x7, 0x7, 0x0)
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:410 +0x5c
main.main()
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:443 +0x36b

goroutine 19 [finalizer wait]:
runtime.park(0x417d00, 0x6a6ad0, 0x6a55e9)
    /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x6a6ad0, 0x6a55e9)
    /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 20 [runnable]:
os/signal.loop()
    /usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32

goroutine 21 [runnable]:
github.com/nsf/termbox-go.func·001()
    /Users/nickpeirson/go/src/github.com/nsf/termbox-go/api.go:87 +0x41a
created by github.com/nsf/termbox-go.Init
    /Users/nickpeirson/go/src/github.com/nsf/termbox-go/api.go:106 +0x82e

goroutine 22 [sleep]:
time.Sleep(0x3b920b49)
    /usr/local/go/src/pkg/runtime/time.goc:39 +0x31
main.getStatus(0xc208004360)
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:189 +0x64f
created by main.main
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:437 +0x1d0

goroutine 23 [select]:
github.com/nsf/termbox-go.PollEvent(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /Users/nickpeirson/go/src/github.com/nsf/termbox-go/api.go:245 +0x396
main.handleEvents(0xc20802a8c0, 0xc208004480, 0xc2080043c0, 0xc208004420)
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:307 +0x29
created by main.main
    /Users/nickpeirson/go/src/github.com/nickpeirson/gearman_gtop/gearman_gtop.go:438 +0x20f

-q quiet (by default?)

gearman_top has a -q option for hiding inactive queues (no workers or jobs). This is useful, as while scrolling is big +, not having to is usually more useful for development.

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.