Skip to content

openswoole/dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Swoole Dashboard

Latest Stable Version License GitHub stars Twitter

This is the example repo of using Open Swoole Metrics in v4.9.0 to bootstrap an Open Swoole Dashboard with Metrics in Open Swoole, Grafana and Prometheus.

Docker and Docker Compose are requried.

Bootstrap Open Swoole Dashboard

Make sure openswoole version >= 4.9.0:

docker pull openswoole/swoole:latest
docker run --rm openswoole/swoole:latest php --ri openswoole

Start the demo server and dashboard:

git clone git@github.com:openswoole/dashboard.git
cd dashboard
docker-compose up

Open Swoole Metrics

Find /metrics output at http://127.0.0.1:9501/metrics

Prometheus UI

Find Prometheus server at http://127.0.0.1:9090/

Open Swoole Metrics

Grafana Dashboard

  1. Find http://127.0.0.1:3000/login, the default username and password are openswoole:openswoole.
  2. Import Open Swoole Dashboard at http://127.0.0.1:3000/dashboard/import, enter ID 15418 and hit load button.
  3. Send some traffic with wrk using wrk -t4 -c16 -d5 --latency http://127.0.0.1:9501/
  4. Have fun with OpenSwoole Dashboard

Open Swoole Dashboard