当前位置:网站首页>Construction and integration of Zipkin and sleuth for call chain monitoring
Construction and integration of Zipkin and sleuth for call chain monitoring
2022-07-06 06:15:00 【Snow peak expensive】
List of articles
Preface
sleuth yes spring-clude Distributed tracking solution for
Calls between microservices are divided into 4 Step
- cs client-send
- sr server-receive
- ss server-send
- cr client-receive
Therefore, the monitoring of the call chain is divided into four records , Who sent it is recorded , Who receives it , And time , Time consuming, etc , A piece of data is recorded as a span( span ), A group of four is recorded as trace( track )
One 、Zipkin、sleuth Build and integrate
1. Plus dependence
spring-cloud-starter-zipkin Contains spring-cloud-starter-sleuth
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
2. download zipkin
https://search.maven.org/remote_content?g=io.zipkin.java&a=zipkin-server&v=LATEST&c=exec
zipkin yes spring-boot project ,java -jar Start it up port 9411
Access address http://localhost:9411
3. Add configuration
spring:
zipkin:
base-url: http://localhost:9411
sleuth:
sampler:
probability: 1.0 # Sampling rate Default 0.1
4. test
Access to microservices :http://localhost:8084/users/{id}
Click to display 4 Data is one trace
边栏推荐
猜你喜欢
随机推荐
Dynamic programming -- knapsack problem
[postman] collections configuration running process
Linux regularly backs up MySQL database
Bit operation rules
properties文件
IPv6 comprehensive experiment
对数据安全的思考(转载)
isam2运行流程
leaflet 地图
Manhattan distance and Manhattan rectangle - print back font matrix
[course notes] Compilation Principle
Company video accelerated playback
二维码的前世今生 与 六大测试点梳理
Interface test: what are the components of the URL in fiddler
2022 software testing workflow to know
Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
浅谈专项测试之弱网络测试
ContentType的作用
Embedded point test of app