This is a sample project to demonstrate how to use OpenTelemetry with Spring Boot, Jaeger, Prometheus and Grafana.
- Java 11
- Docker
- Docker Compose
- Maven
- Git
- cURL
- Clone this repository
- Run
mvn clean package
to build the project - Run
docker-compose up -d
to start the services - Run
curl http:https://localhost:8080/api/product/1
to generate some traces - Open
http:https://localhost:16686
to see the traces in Jaeger - Open
http:https://localhost:3000
to see the metrics in Grafana - Login to Grafana with
admin
as username and password - Add a new Prometheus data source with URL
http:https://prometheus:9090
- Import the dashboard
4701
from Grafana - Open the dashboard and see the metrics
- Run
docker-compose down
to stop the services