To setup a monitoring dashboard, you can use the following docker compose file: [examples/monitoring/docker-compose.yaml](../examples/monitoring/docker-compose.yaml).
Assume you have sglang server running at `localhost:30000`.
To start the monitoring dashboard (prometheus + grafana), cd to `examples/monitoring` and run:
```bash
docker compose -f compose.yaml -p monitoring up
```
Then you can access the Grafana dashboard at http://localhost:3000.
### Grafana Dashboard
To import the Grafana dashboard, click `+` -> `Import` -> `Upload JSON file` -> `Upload` and select [grafana.json](../examples/monitoring/grafana.json).