Skip to content
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
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-amqp")
implementation("com.fasterxml.jackson.core:jackson-databind")

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

//redirect
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
Expand Down
2 changes: 1 addition & 1 deletion config
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public ResponseEntity<Object> handleMethodArgumentNotValid(

@ExceptionHandler
public ResponseEntity<Object> exception(Exception e, WebRequest request) {
e.printStackTrace();
log.error("처리되지 않은 예외 발생", e);

return handleExceptionInternalFalse(
e,
Expand Down
15 changes: 5 additions & 10 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,15 @@ spring:
max-concurrency: 4
default-requeue-rejected: false

logging:
level:
org.springframework.web: DEBUG
org.springframework.web.client.DefaultRestClient: OFF
org.springframework.messaging.simp: DEBUG
org.springframework.messaging.handler: DEBUG
org.springframework.messaging: DEBUG
org.springframework.web.socket: DEBUG

server:
shutdown: graceful

management:
endpoints:
web:
exposure:
include: "health" # 따옴표를 붙여 문자열임을 명시하세요.
include: "health,prometheus" # 따옴표를 붙여 문자열임을 명시하세요.
endpoint:
health:
probes:
enabled: true
Loading