Zipkin is an open source distributed tracking system, open-source by Twitter, dedicated to collecting timing data for services to address latency issues in microservices architectures, including data collection, storage, discovery, and presentation. Its theoretical model comes from the Google Dapper paper. Each microservices reports timing data to Zipkin, and Zipkin generates a dependency graph through the Zipkin UI based on the call relationship, showing how many trace requests pass through each service, which allows developers to easily collect and analyze data through a Web front end, such as the processing time of each request service , it can conveniently monitor the bottleneck in the system.
Zipkin Service Side
Regarding the service side of Zipkin, after using the Spring Boot 2.x version, the official is not recommended to customize the compilation, you can directly use the compiled jar package, details: https://github.com/openzipkin/zipkin/issues/ 1962, and the previous @enablezipkinserver has been @deprecated, and the test environment can be run quickly through official scripts or Docker.
Using scripts
Curl-ssl https://zipkin.io/quickstart.sh | bash-sJava-jar Zipkin.jar
Using Docker
sudo YumRemove Docker docker-client docker-client-latest Docker-common docker-latest docker-latest-logrotate docker-logrotate Docker-selinux Docker-engine-selinux docker-enginesudo Yum Install-YYum-utils device-mapper-persistent-Data lvm2#Yum-config-manager--add-repo https://Download.docker.com/linux/centos/docker-ce.repoYum-config-manager--add-repo http://Mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.reposudo Yum Installdocker-CEsudoSystemctl Enable Docker &&Systemctl start Dockersudosystemctl Status DockersudoSystemctl daemon-Reloadsudosystemctl Restart Dockerdocker run-d-p9411:9411Openzipkin/zipkin
Spring Cloud Micro-service Distributed Link Tracking sleuth and Zipkin