当前位置:网站首页>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
边栏推荐
- 2022 software testing workflow to know
- IDEA 新UI使用
- Postman核心功能解析-参数化和测试报告
- 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
- RestTemplate、Feign实现Token传递
- 全程实现单点登录功能和请求被取消报错“cancelToken“ of undefined的解决方法
- 【eolink】PC客户端安装
- 浅谈专项测试之弱网络测试
- 数学三大核心领域概述:几何
- LeetCode 739. 每日温度
猜你喜欢
随机推荐
[postman] collections configuration running process
Idea new UI usage
还在为如何编写Web自动化测试用例而烦恼嘛?资深测试工程师手把手教你Selenium 测试用例编写
[postman] collections - run the imported data file of the configuration
Fault, error, failure of functional safety
GTSAM中李群的運用
使用Nacos管理配置
[C language] qsort function
D - How Many Answers Are Wrong
LeetCode 729. 我的日程安排表 I
win10无法操作(删除、剪切)文件
GTSAM中李群的运用
Hypothesis testing learning notes
JDBC Requset 对应内容及功能介绍
Isam2 and incrementalfixedlagsmooth instructions in gtsam
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
Redis 核心技术与实战之 基本架构:一个键值数据库包含什么?
MPLS test report
Dynamic programming -- knapsack problem
10M25DCF484C8G(FPGA) AMY-6M-0002 BGA GPS模块









