Skip to content

Commit

Permalink
Merge pull request #338 from woowacourse-teams/feat/#337
Browse files Browse the repository at this point in the history
[FEAT] Prometheus 매트릭 수집을 위한 Actuator 설정
  • Loading branch information
PgmJun authored Oct 16, 2024
2 parents 4e13fea + d422d8e commit 8367c96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
Expand Down
13 changes: 9 additions & 4 deletions backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ logging:
location: ${secret.application.log.location}

management:
endpoint:
health:
show-details: always
server:
port: ${secret.actuator.port}

endpoints:
enabled-by-default: false
web:
exposure:
include: "health"
include: ${secret.actuator.web.include}
base-path: ${secret.actuator.web.base-url}
jmx:
exposure:
exclude: ${secret.actuator.jmx.exclude}

0 comments on commit 8367c96

Please sign in to comment.