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.
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
Find /metrics output at http://127.0.0.1:9501/metrics
Find Prometheus server at http://127.0.0.1:9090/
- Find
http://127.0.0.1:3000/login
, the default username and password areopenswoole:openswoole
. - Import Open Swoole Dashboard at
http://127.0.0.1:3000/dashboard/import
, enter ID15418
and hit load button. - Send some traffic with wrk using
wrk -t4 -c16 -d5 --latency http://127.0.0.1:9501/
- Have fun with OpenSwoole Dashboard