feat(zipkin): 모니터링 시스템 zipkin 추가
This commit is contained in:
@@ -30,6 +30,9 @@ dependencies {
|
||||
implementation 'io.jsonwebtoken:jjwt:0.9.1'
|
||||
// https://mvnrepository.com/artifact/io.netty/netty-resolver-dns-native-macos
|
||||
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
|
||||
// zipkin & sleuth
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
||||
|
||||
implementation 'javax.xml.bind:jaxb-api:2.3.1'
|
||||
|
||||
|
||||
@@ -18,8 +18,17 @@ eureka:
|
||||
spring:
|
||||
application:
|
||||
name: customer-apigateway-service
|
||||
|
||||
config:
|
||||
import: optional:configserver:http://127.0.0.1:8888
|
||||
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
enabled: true
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
||||
cloud:
|
||||
config:
|
||||
name: bootstrap
|
||||
|
||||
@@ -38,6 +38,9 @@ dependencies {
|
||||
implementation 'org.springframework.kafka:spring-kafka'
|
||||
// https://mvnrepository.com/artifact/com.github.gavlyukovskiy/p6spy-spring-boot-starter
|
||||
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'
|
||||
// zipkin & sleuth
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||||
|
||||
@@ -3,6 +3,14 @@ server.port: 0
|
||||
spring:
|
||||
application:
|
||||
name: notification-service
|
||||
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
enabled: true
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
||||
config:
|
||||
import: optional:configserver:http://127.0.0.1:8888
|
||||
cloud:
|
||||
|
||||
@@ -32,22 +32,20 @@ dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
|
||||
/*implementation 'org.springframework.boot:spring-boot-starter-amqp'*/
|
||||
/*implementation 'org.springframework.boot:spring-boot-starter-security'*/
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-config'
|
||||
implementation 'org.springframework.kafka:spring-kafka'
|
||||
// https://mvnrepository.com/artifact/com.github.gavlyukovskiy/p6spy-spring-boot-starter
|
||||
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'
|
||||
|
||||
// zipkin & sleuth
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||||
runtimeOnly 'org.postgresql:postgresql'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
// testImplementation 'org.springframework.amqp:spring-rabbit-test'
|
||||
testImplementation 'org.springframework.kafka:spring-kafka-test'
|
||||
// testImplementation 'org.springframework.security:spring-security-test'
|
||||
testImplementation 'com.h2database:h2'
|
||||
|
||||
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
|
||||
|
||||
@@ -4,6 +4,14 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: order-service
|
||||
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
enabled: true
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
||||
config:
|
||||
import: optional:configserver:http://127.0.0.1:8888
|
||||
cloud:
|
||||
@@ -25,7 +33,6 @@ spring:
|
||||
username: postgres
|
||||
password: admin
|
||||
|
||||
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
|
||||
@@ -33,6 +33,9 @@ dependencies {
|
||||
// https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api
|
||||
implementation 'javax.xml.bind:jaxb-api:2.3.1'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-config'
|
||||
// zipkin & sleuth
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||||
|
||||
@@ -15,10 +15,17 @@ spring:
|
||||
default: dev
|
||||
config:
|
||||
import: optional:configserver:http://127.0.0.1:8888
|
||||
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
enabled: true
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
||||
cloud:
|
||||
config:
|
||||
name: bootstrap
|
||||
|
||||
gateway:
|
||||
default-filters:
|
||||
- name: GlobalFilter
|
||||
|
||||
@@ -38,6 +38,9 @@ dependencies {
|
||||
/*implementation 'org.springframework.kafka:spring-kafka'*/
|
||||
// https://mvnrepository.com/artifact/com.github.gavlyukovskiy/p6spy-spring-boot-starter
|
||||
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'
|
||||
// zipkin & sleuth
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
||||
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
|
||||
@@ -4,6 +4,14 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: store-service
|
||||
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
enabled: true
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
||||
config:
|
||||
import: optional:configserver:http://127.0.0.1:8888
|
||||
cloud:
|
||||
@@ -27,13 +35,6 @@ spring:
|
||||
username: postgres
|
||||
password: admin
|
||||
|
||||
|
||||
# sql:
|
||||
# init:
|
||||
# data-locations: classpath:data/data.sql
|
||||
# mode: always
|
||||
|
||||
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
|
||||
@@ -39,6 +39,9 @@ dependencies {
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-config'
|
||||
/*implementation 'org.springframework.kafka:spring-kafka'*/
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||
// zipkin & sleuth
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
||||
|
||||
// https://mvnrepository.com/artifact/com.github.gavlyukovskiy/p6spy-spring-boot-starter
|
||||
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'
|
||||
|
||||
@@ -4,6 +4,13 @@ spring:
|
||||
application:
|
||||
name: user-service
|
||||
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
enabled: true
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
||||
config:
|
||||
import: optional:configserver:http://127.0.0.1:8888
|
||||
cloud:
|
||||
|
||||
Reference in New Issue
Block a user