A springboot app that uses distributed logging to trace api call. This will simulate a call to a remote service by chaining a single call through 2 services. Uses prometheus to graph response times.
Once the project is done building, make
some api calls http://localhost:81
.
- goto http://localhost
- click on "Find a trace"
- search by "serviceName"
To see a graph of response times:
- Nav to http://localhost:82
- Classic UI
- Click Graph tab
- Search: 'scrape_series_added' or 'scrape_duration_second' or 'http_request_duration_ms_bucket'
- Duration 1m
- Click Graph tab
For health check:
- Nav to http://localhost:82
- Targetes
To see Prometheus dashboards:
- Nav to http://localhost:83
- Login with
admin/admin
- configuration -> datasources
- Select Prometheus
- dashboards
- import and click label
- dashboards
- Select Prometheus
To see Zipkin dashboards:
- Nav to http://localhost:83
- Login with
admin/admin
- Explore
- Change datasource to Zipkin
- groovy
- gradle
- springboot
- zitkin
- sleuth
- prometheus
- gradle:jdk11
- openzipkin/zipkin
- prom/prometheus
- grafana/grafana
sudo ./install.sh -u
- ZIPKIN DASHBOARD http://localhost
- API http://localhost:81
- Prometheus console http://localhost:82
- Grafana dashboards http://localhost:83
- Login with
admin/admin
- Login with
sudo ./install.sh -d
sudo ./install.sh -h
- https://spring.io/guides/gs/routing-and-filtering/
- https://github.com/openzipkin-attic/docker-zipkin/blob/master/docker-compose.yml
- https://cloud.spring.io/spring-cloud-sleuth/1.3.x/multi/multi__sending_spans_to_zipkin.html
- https://howtodoinjava.com/microservices/spring-cloud-zipkin-sleuth-tutorial/
- https://www.javainuse.com/spring/cloud-sleuth