Skip to content

Commit 58d2856

Browse files
committed
refactor: actuator에서 health정보를 응답한다
1 parent 613b89a commit 58d2856

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/main/kotlin/org/gitanimals/core/filter/MDCFilter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class MDCFilter : OncePerRequestFilter() {
4747
const val PATH = "path"
4848

4949
private val ignorePath = setOf(
50-
"/actuator/prometheus"
50+
"/actuator/prometheus",
51+
"/actuator/health",
5152
)
5253
}
5354
}

src/main/resources/application.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ sentry.traces-sample-rate=1.0
3131
internal.secret=a
3232

3333
spring.application.name=render.gitanimals
34-
management.endpoints.web.exposure.include=prometheus
34+
management.endpoints.web.exposure.include=health,prometheus
3535
management.metrics.tags.application=${spring.application.name}
36+
management.endpoint.health.show-details=never
37+
management.health.defaults.enabled=false
38+
management.health.ping.enabled=true
3639

3740
logging.level.root=INFO
3841

3942
logging.level.org.springframework.web.servlet.PageNotFound=ERROR
4043
spring.mvc.throw-exception-if-no-handler-found=true
4144
spring.web.resources.add-mappings=false
45+
46+
relay.approve.token=foo

0 commit comments

Comments
 (0)