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