docker下启动zipkin
docker run -d --restart=unless-stopped -p 9411:9411 openzipkin/zipkin
依赖:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-zipkin</artifactId> </dependency>
application.yml配置:
spring: zipkin: base-url: http://127.0.0.1:9411/ sleuth: sampler: probability: 1
启动类添加注解
@EnableHystrixDashboard