Skip to content

Commit

Permalink
모니터링을 위한 매트릭 제공 엔드포인트 추가(Issue #195) (#198)
Browse files Browse the repository at this point in the history
* feat: 스프링 액츄에이터 의존성 추가

* feat: 스프링 액츄에이터 프로메테우스 엔드포인트 활성화
  • Loading branch information
robinjoon authored Aug 6, 2024
1 parent 65d46b1 commit 9ba330c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ dependencies {
// swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'

// actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
Expand Down
8 changes: 8 additions & 0 deletions backend/src/main/resources/application-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ security:
jwt:
secret-key: 7b3dc341c033816045cc11c6f9fba3187f4dbdb7
expiration-time: 3600000 # 1 hour

management:
server:
port: 8082
endpoints:
web:
exposure:
include: "prometheus,health"

0 comments on commit 9ba330c

Please sign in to comment.