当前位置:网站首页>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
边栏推荐
猜你喜欢

D - How Many Answers Are Wrong

Properties file

MySQL之数据类型

The latest 2022 review of "graph classification research"

Investment strategy discussion and market scale prediction report of China's solid state high power amplifier industry from 2022 to 2028

Sqlmap tutorial (III) practical skills II

【eolink】PC客户端安装

MPLS test report

假设检验学习笔记

B - The Suspects
随机推荐
【Postman】动态变量(也称Mock函数)
B - The Suspects
Request forwarding and redirection
测试周期被压缩?教你9个方法去应对
Application of Lie group in gtsam
nodejs实现微博第三方登录
【C语言】qsort函数
P问题、NP问题、NPC问题、NP-hard问题详解
调用链监控Zipkin、sleuth搭建与整合
Redis 核心技术与实战之 基本架构:一个键值数据库包含什么?
Function of activation function
VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator
Manhattan distance sum - print diamond
LeetCode 729. 我的日程安排表 I
Eigen sparse matrix operation
Caused by:org. gradle. api. internal. plugins . PluginApplicationException: Failed to apply plugin
對數據安全的思考(轉載)
《卓有成效的管理者》读书笔记
Idea new UI usage
Web界面元素的测试