2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-25 07:12:17 +08:00
asynq/tools/asynqmon
2020-01-18 21:00:33 -08:00
..
cmd Add rmq command to asynqmon 2020-01-14 06:02:00 -08:00
main.go Add license comment to all src files 2020-01-02 18:13:16 -08:00
README.md [ci skip] Add readme for asynqmon tool 2020-01-18 21:00:33 -08:00

Asynqmon

Asynqmon is a CLI tool to monitor the queues managed by asynq package.

In order to use the tool, compile it using the following command:

go get github.com/hibiken/asynq/tools/asynqmon

This will create the asynqmon executable under your $GOPATH/bin directory.

Quick Start

Asynqmon tool has a few commands to inspect the state of tasks and queues.

Run asynqmon help to see all the available commands.

Asynqmon needs to connect to a redis-server to inspect the state of queues and tasks. Use flags to specify the options to connect to the redis-server used by your application.

By default, Asynqmon will try to connect to a redis server running at localhost:6379.

Stats

Stats command gives the overview of the current state of tasks and queues. Run it in conjunction with watch command to repeatedly run stats.

Example:

watch -n 3 asynqmon stats

This will run asynqmon stats command every 3 seconds.

Gif