asynq的控制面板
Go to file
2021-10-12 15:35:56 -07:00
.github Add FUNDING.yml 2021-10-03 09:27:34 -07:00
cmd/asynqmon make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
internal make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
ui Fix typo 2021-09-30 06:03:52 -07:00
.dockerignore Add option to use Docker container to run Asynqmon 2021-04-05 16:35:15 -07:00
.gitignore make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
CHANGELOG.md v0.2.1 2021-07-30 05:56:24 -07:00
conversion_helpers.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
Dockerfile make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
go.mod make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
go.sum make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
LICENSE Add README and LICENSE files 2021-01-30 19:18:44 -08:00
Makefile make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
queue_handlers.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
README.md Update readme 2021-09-07 17:03:15 -07:00
redis_info_handlers.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
router.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
scheduler_entry_handlers.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
server_handlers.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
static.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00
task_handlers.go make server & router reusable outside asynqmon package 2021-10-12 15:35:56 -07:00

Asynqmon logo

A modern web based tool for monitoring & administrating Asynq queues, tasks and message broker

Version Compatibility

Asynq version WebUI (asynqmon) version
0.18.x 0.2.x
0.16.x, 0.17.x 0.1.x

Install

Release binaries

You can download the release binary for your system from the releases page.

Docker image

To pull the Docker image:

# Pull the latest image
docker pull hibiken/asynqmon

# Or specify the image by tag
docker pull hibiken/asynqmon[:tag]

Building from source

To build Asynqmon from source code, make sure you have Go installed (download). Version 1.16 or higher is required. You also need Node.js and Yarn installed in order to build the frontend assets.

Download the source code of this repository and then run:

make build

The asynqmon binary should be created in the current directory.

Building Docker image locally

To build Docker image locally, run:

make docker

Run

To use the defaults, simply run and open http://localhost:8080.

# with a local binary
./asynqmon

# with docker
docker run --rm \
    --name asynqmon \
    -p 8080:8080 \
    hibiken/asynqmon

By default, Asynqmon web server listens on port 8080 and connects to a Redis server running on 127.0.0.1:6379.

To see all available flags, run:

# with a local binary
./asynqmon --help

# with Docker
docker run hibiken/asynqmon --help

Here's the available flags:

Note: Use --redis-url to specify address, db-number, and password with one flag value; Alternatively, use --redis-addr, --redis-db, and --redis-password to specify each value.

Flag Description Default
--port(int) port number to use for web ui server 8080
---redis-url(string) URL to redis server ""
--redis-addr(string) address of redis server to connect to "127.0.0.1:6379"
--redis-db(int) redis database number 0
--redis-password(string) password to use when connecting to redis server ""
--redis-cluster-nodes(string) comma separated list of host:port addresses of cluster nodes ""
--redis-tls(string) server name for TLS validation used when connecting to redis server ""
--redis-insecure-tls(bool) disable TLS certificate host checks false

Examples

# with a local binary; custom port and connect to redis server at localhost:6380
./asynqmon --port=3000 --redis-addr=localhost:6380

# with Docker (connect to a Redis server running on the host machine)
docker run --rm \
    --name asynqmon \
    -p 3000:3000 \
    hibiken/asynqmon --port=3000 --redis-addr=host.docker.internal:6380

# with Docker (connect to a Redis server running in the Docker container)
docker run --rm \
    --name asynqmon \
    --network dev-network \
    -p 8080:8080 \
    hibiken/asynqmon --redis-addr=dev-redis:6379

Next, go to localhost:8080 and see Asynqmon dashboard:

Web UI Queues View

Tasks view

Web UI TasksView

Settings and adaptive dark mode

Web UI Settings and adaptive dark mode

License

Copyright (c) 2019-present Ken Hibino and Contributors. Asynqmon is free and open-source software licensed under the MIT License. Official logo was created by Vic Shóstak and distributed under Creative Commons license (CC0 1.0 Universal).