Grafana is an open-source platform for turning application metrics into interactive dashboards, graphs, and gauges. It provides a unified view of application health, performance, and activity by querying sources such as Prometheus. section 9.3
A practical Grafana setup for a Spring AI application follows these steps:
- Start a Grafana server alongside the application, Qdrant, and Prometheus with Docker Compose. section 9.3
- Open Grafana at http://localhost:3000 and sign in with the initial admin credentials. section 9.3
- Add Prometheus as a data source and configure the Prometheus server URL. section 9.3
- Submit requests to the application so metrics exist before creating dashboard panels and time-series graphs. section 9.3
services:
# ...
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
networks:
- net
# ...
volumes:
# ...
grafana-storage: {}
Use the Docker Compose service definition to run Grafana on port 3000 with persistent storage and the shared application network. section 9.3








