目录
1.Sleuth是什么?
spring cloud sleuth提供了一套完整的服务跟踪的解决方案,在分布式系统中提供追踪解决方案并且兼容支持了zipkin
2.zipkin
下载zipkin,jar包启动,localhost:9411
3.微服务链路监控
pom配置:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
yml配置:
spring:
zipkin:
base-url: http://localhost:9411
sleuth:
samper:
probability: 1 #采样率值介于0到1之间,1表示全部采集