spring cloud集成链路监控zipkin

1. pom中引入依赖

        <dependency>
            <groupId>org.springframework.cloudgroupId>
            <artifactId>spring-cloud-sleuth-zipkinartifactId>
        dependency>

2. yml配置文件中添加zipkin相关配置

spring:
  sleuth:
    sampler:
      probability: 1.0
  zipkin:
    base-url: http://192.100.2.66:9411/
    locator:
      discovery:
        enabled: false
    discoveryClientEnabled: false
    sender:
      type: web

3. 查看链路监控信息

浏览器中输入链路监控地址:http://192.100.2.66:9411/zipkin/
spring cloud集成链路监控zipkin_第1张图片

你可能感兴趣的:(链路监控)