当前位置:网站首页>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
边栏推荐
猜你喜欢
LeetCode 729. 我的日程安排表 I
Pat (Grade B) 2022 summer exam
Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
GTSAM中李群的運用
数字三角形模型 AcWing 1015. 摘花生
[Thesis code] SML part code reading
Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)
[eolink] PC client installation
10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module
[postman] the monitors monitoring API can run periodically
随机推荐
leaflet 地图
Detailed explanation of P problem, NP problem, NPC problem and NP hard problem
Fault, error, failure of functional safety
[API interface tool] Introduction to postman interface
《卓有成效的管理者》读书笔记
MySQL之数据类型
通过修改style设置打印页样式
【无App Push 通用测试方案
Overview of three core areas of Mathematics: algebra
【Postman】动态变量(也称Mock函数)
误差的基本知识
Reading notes of effective managers
Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
【Tera Term】黑猫带你学TTL脚本——嵌入式开发中串口自动化神技能
[web security] nodejs prototype chain pollution analysis
D - How Many Answers Are Wrong
[C language] string left rotation
GTSAM中李群的运用
公司視頻加速播放
CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全