Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitxon/java-spring-monitoring
Spring App tracing and monitoring (Grafana, Zipkin, SBA)
https://github.com/bitxon/java-spring-monitoring
grafana prometheus spring spring-boot-admin zipkin
Last synced: about 2 months ago
JSON representation
Spring App tracing and monitoring (Grafana, Zipkin, SBA)
- Host: GitHub
- URL: https://github.com/bitxon/java-spring-monitoring
- Owner: bitxon
- Created: 2023-08-25T10:41:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-13T16:07:59.000Z (5 months ago)
- Last Synced: 2024-08-13T19:19:56.394Z (5 months ago)
- Topics: grafana, prometheus, spring, spring-boot-admin, zipkin
- Language: Java
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Spring Monitoring
## Run
### In Docker (All)
1. Start containers
- `docker compose --profile all up -d --build`
2. Run load-test:
- `artillery run artillery-load-test.yml`### In Kubernetes (skaffold)
1. Start cluster
- `minikube start --cpus=3 --memory=4000`
2. Run apps:
- `skaffold dev`
3. Run load-test:
- `artillery run artillery-load-test.yml`### In Local (Spring on Local, Infra in Docker)
1. Start containers
- `docker compose up -d`
2. Run apps:
- `mvn -pl price-service -am spring-boot:run`
- `mvn -pl order-service -am spring-boot:run`
- `mvn -pl spring-boot-admin -am spring-boot:run`
3. Run load-test:
- `artillery run artillery-load-test.yml`---
## Test[Open - Zipkin](http://localhost:9411)\
[Open - Spring Admin](http://localhost:9999/wallboard)\
[Open - Prometheus](http://localhost:9090/targets)\
[Open - Grafana](http://localhost:3000/d/d3092176-b514-4046-90e9-61554c809dec)```shell
curl --location 'http://localhost:8090/price/iphone' \
--header 'x-request-id: A8j24hu81b33' \
--header 'x-application-id: Web'
``````shell
curl --location 'http://localhost:8080/order' \
--request POST \
--header 'Content-Type: application/json' \
--header 'x-request-id: Ju439a8o1yr4' \
--header 'x-application-id: Web' \
--data '{
"productIdentifier": "iphone",
"productName": "N/A",
"quantity": 3
}'
```---
## Useful Links
[Spring Boot Grafana Dashboards](https://grafana.com/grafana/dashboards/?search=spring+boot)\
[Spring Boot 3 Dashboard file for Grafana](https://grafana.com/grafana/dashboards/19004-spring-boot-statistics/)\
[Get Artillery](https://www.artillery.io/docs/get-started/get-artillery)