docs/self-hosting/advanced/observability/grafana.mdx
LobeHub supports advanced observability for self-hosted deployments using open-source tools:
We provided Docker Compose (docker-compose) file presets to bootstrap the observability stack with advanced self-hosting features.
This guide will help you set up and use these tools to monitor your LobeHub instance.
docker CLIdocker-compose plugin enabled (check through docker compose version)curl -O https://raw.githubusercontent.com/lobehub/lobehub/HEAD/docker-compose/production/grafana/docker-compose.yml
curl -O https://raw.githubusercontent.com/lobehub/lobehub/HEAD/docker-compose/production/grafana/.env.example
mv .env.example .env
Update the password & secrets in the .env file as needed.
Start the stack with the correct profile:
docker compose up -d
This will launch Grafana, Prometheus, Tempo, and the otel-collector alongside LobeHub with Casdoor, Minio, and other advanced services.
Click on "Explore" in the left sidebar to access the query editor to run ad-hoc queries against your Prometheus and Tempo data sources.
docker compose psdocker compose logs <service-name>For questions or feedback, open an issue on GitHub or join our community discussions.