Skip to content

Commit

Permalink
chore: Prometheus 매트릭 수집을 위한 Actuator 설정 #333
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Oct 16, 2024
1 parent 924d42c commit d422d8e
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 d422d8e

Please sign in to comment.