Skip to content

Commit

Permalink
feat: 모니터링 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho committed Apr 19, 2024
1 parent bd54d10 commit dce91fb
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ dependencies {
testImplementation "org.testcontainers:mysql:1.19.6"

testImplementation(testFixtures(project(":domain")))

// actuator 추가
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// 프로메테우스 추가
implementation 'io.micrometer:micrometer-registry-prometheus'
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public void addInterceptors(InterceptorRegistry registry) {
"/swagger-ui/**",
"/signup",
"/signin",
"/parkings/**"
"/parkings/**",
"/actuator/**"
));
}

Expand Down
13 changes: 13 additions & 0 deletions app-api/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ spring:
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver

management:
endpoints:
web:
exposure:
include: prometheus
endpoint:
prometheus:
enabled: true
server:
tomcat:
mbeanregistry:
enabled: true
5 changes: 5 additions & 0 deletions app-scheduler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter'

testImplementation(testFixtures(project(":domain")))

// actuator 추가
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// 프로메테우스 추가
implementation 'io.micrometer:micrometer-registry-prometheus'
}
13 changes: 13 additions & 0 deletions app-scheduler/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ spring:
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver

management:
endpoints:
web:
exposure:
include: prometheus
endpoint:
prometheus:
enabled: true
server:
tomcat:
mbeanregistry:
enabled: true

0 comments on commit dce91fb

Please sign in to comment.