SUPPORT-8557: add actuator and kafka health check endpoint

This commit is contained in:
gulnaz 2024-09-24 11:21:27 +03:00
parent 6c41fa792c
commit 661d0687e8
2 changed files with 20 additions and 0 deletions

13
pom.xml
View file

@ -100,15 +100,28 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jooq</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.github.leofuso</groupId>
<artifactId>actuator-kafka</artifactId>
<version>v3.0.2.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>

View file

@ -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