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

SpringBoot Actuator 추가 #226

Merged
merged 1 commit into from
Nov 1, 2023
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: 4 additions & 1 deletion animory/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'

// jwt, password encoder
// jwt
implementation 'io.jsonwebtoken:jjwt:0.9.1'

// security
Expand Down Expand Up @@ -59,6 +59,9 @@ dependencies {
// aws
implementation platform('software.amazon.awssdk:bom:2.20.56')
implementation 'software.amazon.awssdk:s3'

// actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator:3.1.5'
}

// Test Task 설정
Expand Down
18 changes: 17 additions & 1 deletion animory/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,20 @@ cloud.aws:
secret-key: ${AWS_SECRET_KEY}
region.static: ap-northeast-2
s3.bucket: kakao-techcampus
stack.auto: false
stack.auto: false

# Actuator
management:
server.port: ${ACTUATOR_PORT}
endpoints:
web.base-path: ${ACTUATOR_PATH}
enabled-by-default: false
jmx.exposure.exclude: "*"
web.exposure.include: health, info, env, metrics, loggers, threaddump
endpoint:
health.enabled: true # 헬스체크
info.enabled: true # 애플리케이션 정보
env.enabled: true # 환경변수
metrics.enabled: true
loggers.enabled: true # 로그 설정
threaddump.enabled: true
21 changes: 21 additions & 0 deletions animory/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,25 @@ springdoc.swagger-ui:
# Security
jwt.secret: c2lsdmVybmluZS10ZWNoLXNwcmluZy1ib290LWp3dC10dXRvcmlhbC1zZWNyZXQtc2lsdmVybmluZS10ZWNoLXNwcmluZy1ib290LWp3dC10dXRvcmlhbC1zZWNyZXQK

# Actuator
management:
server.port: 8081
endpoints:
web.base-path: /actuator
enabled-by-default: false
jmx.exposure.exclude: "*"
web.exposure.include: health, info, env, metrics, loggers, threaddump
endpoint:
health.enabled: true # 헬스체크
info.enabled: true # 애플리케이션 정보
env.enabled: true # 환경변수
metrics.enabled: true
loggers.enabled: true # 로그 설정
threaddump.enabled: true