Skip to content

Commit b52fa71

Browse files
补充stream+mysql文档。
1 parent 85f85d0 commit b52fa71

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
3. <http://localhost:8881/3>
2828

2929
## * 持久化配置:http+mysql *
30-
>默认采样是采用http请求至zipkin服务端,zipkin默认采用内存存储
30+
>默认采样是采用http请求至zipkin服务端,zipkin采用mysql存储
3131
3232
### 1.相关工程:
3333
1. spring-cloud-eureka-server-for-sleuth
@@ -50,5 +50,27 @@
5050
2. <http://localhost:8881/2>
5151
3. <http://localhost:8881/3>
5252

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存储采样数据。
5363
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>
5476

spring-cloud-sleuth-http-mysql-server/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<groupId>io.zipkin.java</groupId>
2020
<artifactId>zipkin-autoconfigure-ui</artifactId>
2121
</dependency>
22-
2322
<!-- zipkin-autoconfigure-storage-mysql -->
2423
<dependency>
2524
<groupId>io.zipkin.java</groupId>

0 commit comments

Comments
 (0)