当前位置:网站首页>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
边栏推荐
- ICLR 2022 spotlight | analog transformer: time series anomaly detection method based on correlation difference
- 进程和线程的理解
- 10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module
- 功能安全之故障(fault),错误(error),失效(failure)
- 黑猫带你学UFS协议第18篇:UFS如何配置逻辑单元(LU Management)
- IPv6 comprehensive experiment
- Win10 cannot operate (delete, cut) files
- Accélération de la lecture vidéo de l'entreprise
- D - How Many Answers Are Wrong
- 對數據安全的思考(轉載)
猜你喜欢
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
Seven imperceptible truths in software testing
10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module
【Postman】Monitors 监测API可定时周期运行
技术分享 | 常见接口协议解析
Sqlmap tutorial (III) practical skills II
Understanding of processes and threads
Detailed explanation of BF and KMP
[postman] collections - run the imported data file of the configuration
【C语言】字符串左旋
随机推荐
Réflexions sur la sécurité des données (réimpression)
单元测试的意义
Dynamic programming -- knapsack problem
Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)
MySQL之数据类型
Embedded point test of app
Usage of test macro of GTEST
[API interface tool] Introduction to postman interface
leaflet 地图
Digital triangle model acwing 1015 Picking flowers
Caused by:org. gradle. api. internal. plugins . PluginApplicationException: Failed to apply plugin
Isam2 and incrementalfixedlagsmooth instructions in gtsam
[postman] test script writing and assertion details
JWT-JSON WEB TOKEN
D - How Many Answers Are Wrong
[postman] collections - run the imported data file of the configuration
Online and offline problems
LeetCode 731. 我的日程安排表 II
Application du Groupe Li dans gtsam
GTSAM中李群的运用