Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

모니터링 추가 #75

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading