当前位置:网站首页>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
边栏推荐
- Web界面元素的测试
- php使用redis实现分布式锁
- GTSAM中ISAM2和IncrementalFixedLagSmoother说明
- MySQL之数据类型
- LeetCode 732. 我的日程安排表 III
- 调用链监控Zipkin、sleuth搭建与整合
- Seven imperceptible truths in software testing
- 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
- LeetCode 729. 我的日程安排表 I
- The latest 2022 review of "graph classification research"
猜你喜欢

Gtest之TEST宏的用法

LeetCode 739. 每日温度

How to use the container reflection method encapsulated by thinkphp5.1 in business code

JWT-JSON WEB TOKEN

D - How Many Answers Are Wrong

Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete

IP day 16 VLAN MPLS configuration

Nodejs realizes the third-party login of Weibo

单元测试的意义

selenium源码通读·9 |DesiredCapabilities类分析
随机推荐
【Postman】动态变量(也称Mock函数)
Eigen稀疏矩阵操作
职场进阶指南:大厂人必看书籍推荐
[eolink] PC client installation
功能安全之故障(fault),错误(error),失效(failure)
Usage of test macro of GTEST
Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
Request forwarding and redirection
IDEA 新UI使用
数据库隔离级别
Eigen sparse matrix operation
[leetcode] day96 - the first unique character & ransom letter & letter ectopic word
Dynamic programming -- knapsack problem
LeetCode 739. 每日温度
properties文件
LeetCode 1200. 最小绝对差
[postman] dynamic variable (also known as mock function)
JDBC Requset 对应内容及功能介绍
Detailed explanation of BF and KMP
Overview of three core areas of Mathematics: geometry