当前位置:网站首页>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
边栏推荐
- Thoughts on data security (Reprint)
- LeetCode 729. 我的日程安排表 I
- Cognitive introspection
- Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)
- Properties file
- 自定义指定路由上的Gateway过滤器工厂
- 全程实现单点登录功能和请求被取消报错“cancelToken“ of undefined的解决方法
- [postman] collections - run the imported data file of the configuration
- 职场进阶指南:大厂人必看书籍推荐
- IPv6 comprehensive experiment
猜你喜欢
Application du Groupe Li dans gtsam
[C language] string left rotation
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
【微信小程序】搭建开发工具环境
GTSAM中李群的運用
What are the test sites for tunnel engineering?
曼哈顿距离和-打印菱形
Digital triangle model acwing 1015 Picking flowers
Embedded point test of app
About PHP startup, mongodb cannot find the specified module
随机推荐
Overview of three core areas of Mathematics: algebra
RestTemplate、Feign实现Token传递
ContentType的作用
LeetCode 732. 我的日程安排表 III
properties文件
[eolink] PC client installation
【Tera Term】黑猫带你学TTL脚本——嵌入式开发中串口自动化神技能
Dynamic programming -- knapsack problem
JMeter做接口测试,如何提取登录Cookie
Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)
【无App Push 通用测试方案
[postman] the monitors monitoring API can run periodically
Summary of anomaly detection methods
Redis 核心技术与实战之 基本架构:一个键值数据库包含什么?
公司视频加速播放
Testing and debugging of multithreaded applications
JDBC Requset 对应内容及功能介绍
VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator
Request forwarding and redirection
Accélération de la lecture vidéo de l'entreprise