From 661d0687e8caa48dfd4699caf1cebc85ac5e9216 Mon Sep 17 00:00:00 2001 From: gulnaz Date: Tue, 24 Sep 2024 11:21:27 +0300 Subject: [PATCH] SUPPORT-8557: add actuator and kafka health check endpoint --- pom.xml | 13 +++++++++++++ src/main/resources/application.properties | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/pom.xml b/pom.xml index 76d4298..2050e66 100644 --- a/pom.xml +++ b/pom.xml @@ -100,15 +100,28 @@ org.springframework.boot spring-boot-starter + + org.springframework.boot + spring-boot-starter-web + org.springframework.boot spring-boot-starter-jooq + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.kafka spring-kafka + + io.github.leofuso + actuator-kafka + v3.0.2.0.RELEASE + org.springframework.retry diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 153cb49..dd17600 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,3 +1,5 @@ +server.servlet.context-path=/av + # spring kafka default beans properties begin -> # kafka out admin bean settings spring.kafka.admin.security.protocol=SASL_PLAINTEXT @@ -75,3 +77,8 @@ spring.datasource.url=jdbc:postgresql://${SPRING_DATASOURCE_URL} spring.datasource.username=${SPRING_DATASOURCE_USERNAME} spring.datasource.password=${SPRING_DATASOURCE_PASSWORD} # spring jooq dsl bean properties <- end + +# endpoints management +management.endpoints.web.exposure.include = health, info, metrics +management.endpoint.health.show-details = always +management.endpoint.health.group.readiness.include = kafka