File tree Expand file tree Collapse file tree 9 files changed +65
-0
lines changed Expand file tree Collapse file tree 9 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 39
39
<artifactId >spring-cloud-starter-netflix-eureka-client</artifactId >
40
40
</dependency >
41
41
42
+ <dependency >
43
+ <groupId >org.springframework.cloud</groupId >
44
+ <artifactId >spring-cloud-starter-sleuth</artifactId >
45
+ </dependency >
46
+
47
+ <dependency >
48
+ <groupId >org.springframework.cloud</groupId >
49
+ <artifactId >spring-cloud-sleuth-zipkin</artifactId >
50
+ </dependency >
51
+
42
52
<dependency >
43
53
<groupId >com.hrk</groupId >
44
54
<artifactId >clients</artifactId >
Original file line number Diff line number Diff line change 1
1
server :
2
2
port : 8080
3
+
3
4
spring :
4
5
application :
5
6
name : customer
7
+
6
8
datasource :
7
9
password : password
8
10
url : jdbc:postgresql://localhost:5434/customer
9
11
username : hrk
12
+
10
13
jpa :
11
14
hibernate :
12
15
ddl-auto : create-drop
@@ -15,6 +18,10 @@ spring:
15
18
dialect : org.hibernate.dialect.PostgreSQLDialect
16
19
format_sql : true
17
20
show-sql : true
21
+
22
+ zipkin :
23
+ base-url : http://localhost:9411
24
+
18
25
eureka :
19
26
client :
20
27
service-url :
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ services:
27
27
networks :
28
28
- postgres
29
29
restart : unless-stopped
30
+ zipkin :
31
+ image : openzipkin/zipkin
32
+ container_name : zipkin
33
+ ports :
34
+ - " 9411:9411"
30
35
31
36
networks :
32
37
postgres :
Original file line number Diff line number Diff line change 22
22
<groupId >org.springframework.cloud</groupId >
23
23
<artifactId >spring-cloud-starter-netflix-eureka-server</artifactId >
24
24
</dependency >
25
+
26
+ <dependency >
27
+ <groupId >org.springframework.cloud</groupId >
28
+ <artifactId >spring-cloud-starter-sleuth</artifactId >
29
+ </dependency >
30
+
31
+ <dependency >
32
+ <groupId >org.springframework.cloud</groupId >
33
+ <artifactId >spring-cloud-sleuth-zipkin</artifactId >
34
+ </dependency >
25
35
</dependencies >
26
36
27
37
<build >
Original file line number Diff line number Diff line change 2
2
application :
3
3
name : eureka-server
4
4
5
+ zipkin :
6
+ base-url : http://localhost:9411
7
+
5
8
server :
6
9
port : 8761
7
10
Original file line number Diff line number Diff line change 39
39
<artifactId >spring-cloud-starter-netflix-eureka-client</artifactId >
40
40
</dependency >
41
41
42
+ <dependency >
43
+ <groupId >org.springframework.cloud</groupId >
44
+ <artifactId >spring-cloud-starter-sleuth</artifactId >
45
+ </dependency >
46
+
47
+ <dependency >
48
+ <groupId >org.springframework.cloud</groupId >
49
+ <artifactId >spring-cloud-sleuth-zipkin</artifactId >
50
+ </dependency >
51
+
42
52
<dependency >
43
53
<groupId >com.hrk</groupId >
44
54
<artifactId >clients</artifactId >
Original file line number Diff line number Diff line change 1
1
server :
2
2
port : 8081
3
+
3
4
spring :
4
5
application :
5
6
name : fraud
7
+
6
8
datasource :
7
9
password : password
8
10
url : jdbc:postgresql://localhost:5434/fraud
9
11
username : hrk
12
+
10
13
jpa :
11
14
hibernate :
12
15
ddl-auto : create-drop
@@ -16,6 +19,9 @@ spring:
16
19
format_sql : true
17
20
show-sql : true
18
21
22
+ zipkin :
23
+ base-url : http://localhost:9411
24
+
19
25
eureka :
20
26
client :
21
27
service-url :
Original file line number Diff line number Diff line change 39
39
<artifactId >spring-cloud-starter-netflix-eureka-client</artifactId >
40
40
</dependency >
41
41
42
+ <dependency >
43
+ <groupId >org.springframework.cloud</groupId >
44
+ <artifactId >spring-cloud-starter-sleuth</artifactId >
45
+ </dependency >
46
+
47
+ <dependency >
48
+ <groupId >org.springframework.cloud</groupId >
49
+ <artifactId >spring-cloud-sleuth-zipkin</artifactId >
50
+ </dependency >
51
+
42
52
<dependency >
43
53
<groupId >com.hrk</groupId >
44
54
<artifactId >clients</artifactId >
Original file line number Diff line number Diff line change 9
9
password : password
10
10
url : jdbc:postgresql://localhost:5434/notification
11
11
username : hrk
12
+
12
13
jpa :
13
14
hibernate :
14
15
ddl-auto : create-drop
@@ -18,6 +19,9 @@ spring:
18
19
format_sql : true
19
20
show-sql : true
20
21
22
+ zipkin :
23
+ base-url : http://localhost:9411
24
+
21
25
eureka :
22
26
client :
23
27
service-url :
You can’t perform that action at this time.
0 commit comments