Skip to content

Commit

Permalink
feat: [kakao-tech-campus-2nd-step3#31] Grafana, Prometheus 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
donghyuun committed Sep 30, 2024
1 parent e598d57 commit a1b891b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ dependencies {
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5'

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

tasks.named('test') {
Expand Down
12 changes: 11 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ logging.level:
org.hibernate:
orm.jdbc.bind: trace
SQL: debug

jwt:
secret: 4099a46b-39db-4860-a61b-2ae76ea24c43
access-token-expire-time: 1800000 # 30 minutes
refresh-token-expire-time: 2592000000 # 30 days
refresh-token-expire-time: 2592000000 # 30 days

management:
endpoints:
web:
exposure: # 외부에 노출할 엔드포인트
include: prometheus, health, info, swagger-ui
metrics:
tags:
application: "katecam" # 메트릭 데이터에 태그를 추가

0 comments on commit a1b891b

Please sign in to comment.