forked from hibiken/asynq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci skip] Add readme for asynqmon tool
- Loading branch information
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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](/docs/assets/asynqmon_stats.gif) |