当前位置:网站首页>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
边栏推荐
- Reading notes of effective managers
- 【Postman】Collections配置运行过程
- 對數據安全的思考(轉載)
- 【Postman】测试(Tests)脚本编写和断言详解
- Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
- Overview of three core areas of Mathematics: algebra
- JDBC Requset 对应内容及功能介绍
- php使用redis实现分布式锁
- ContentType的作用
- F - True Liars (种类并查集+DP)
猜你喜欢
随机推荐
CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
黑猫带你学UFS协议第8篇:UFS初始化详解(Boot Operation)
MySQL之数据类型
联合索引的左匹配原则
职场进阶指南:大厂人必看书籍推荐
IDEA 新UI使用
LeetCode 732. 我的日程安排表 III
【Postman】动态变量(也称Mock函数)
一文揭开,测试外包公司的真 相
黑猫带你学UFS协议第18篇:UFS如何配置逻辑单元(LU Management)
leaflet 地图
JMeter做接口测试,如何提取登录Cookie
Win10 cannot operate (delete, cut) files
Function of activation function
Nodejs realizes the third-party login of Weibo
[API interface tool] Introduction to postman interface
《卓有成效的管理者》读书笔记
(5) Explanation of yolo-v3 core source code (3)
Réflexions sur la sécurité des données (réimpression)
进程和线程的理解
![[web security] nodejs prototype chain pollution analysis](/img/c5/256ab30e796f0859387585873cee8b.jpg)





![[eolink] PC client installation](/img/91/8b3c4264e544b14f926e91edddf18d.png)

