File tree 2 files changed +23
-2
lines changed
spring-cloud-sleuth-http-mysql-server
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 27
27
3 . < http://localhost:8881/3 >
28
28
29
29
## * 持久化配置:http+mysql *
30
- > 默认采样是采用http请求至zipkin服务端,zipkin默认采用内存存储 。
30
+ > 默认采样是采用http请求至zipkin服务端,zipkin采用mysql存储 。
31
31
32
32
### 1.相关工程:
33
33
1 . spring-cloud-eureka-server-for-sleuth
50
50
2 . < http://localhost:8881/2 >
51
51
3 . < http://localhost:8881/3 >
52
52
53
+ ## * 持久化配置:stream+mysql *
54
+ > 采样是采用stream请求至zipkin服务端,zipkin采用mysql存储。
55
+
56
+ ### 1.相关工程:
57
+ 1 . spring-cloud-eureka-server-for-sleuth
58
+ > 注册中心
59
+ 2 . spring-cloud-sleuth-stream-client
60
+ > 微服务,本项目最多演示三层服务调用。
61
+ 3 . spring-cloud-sleuth-stream-server
62
+ > Zipkin服务,采用mysql存储采样数据。
53
63
64
+ ### 2.使用步骤:
65
+ 1 . 启动eureka注册中心:
66
+ > EurekaServerApplication.java
67
+ 2 . 启动三个微服务:
68
+ > a、b、c包下ServiceApplication.java
69
+ 3 . 启动zipkin服务:
70
+ > ZipkinServerApplication.java
71
+
72
+ ### 3.测试方法
73
+ 1 . < http://localhost:8881/1 >
74
+ 2 . < http://localhost:8881/2 >
75
+ 3 . < http://localhost:8881/3 >
54
76
Original file line number Diff line number Diff line change 19
19
<groupId >io.zipkin.java</groupId >
20
20
<artifactId >zipkin-autoconfigure-ui</artifactId >
21
21
</dependency >
22
-
23
22
<!-- zipkin-autoconfigure-storage-mysql -->
24
23
<dependency >
25
24
<groupId >io.zipkin.java</groupId >
You can’t perform that action at this time.
0 commit comments