building-resilient-microservices / observability

A microservice observability (Logs, Metrics and Traces) example
2 stars 2 forks source link

Microservice Observability Demo LinkedIn

Demo setup for Spring Boot 3 with Prometheus, Grafana, Loki, and Tempo to demonstrate Observability use-cases.

[!NOTE]
You must have Java 17 or latter and Maven 3 to run this project

brew install java
brew install maven

Start infrastructure dependencies

docker compose -p observability up 

Stop infrastructure dependencies

docker compose -p observability down

Stop infrastructure dependencies and purge data

docker compose -p observability down --volumes 

Start the demos

[!IMPORTANT]
Before run the demos, you need to add kafka host to your /etc/hosts

sudo -- sh -c -e "echo '127.0.0.1   kafka' >> /etc/hosts";

Run forrest, run.

./mvnw spring-boot:run -pl kafka-producer-demo
./mvnw spring-boot:run -pl kafka-consumer-demo

[!NOTE]
Take a look on Makefile, there are scripts to simulate latency, errors etc.

Local Infrastrucure Services