From 8169b24cac135fcaf731bb8014d0115362fda6d5 Mon Sep 17 00:00:00 2001 From: "puthuparambil.aditya" Date: Tue, 3 Aug 2021 11:19:40 +0100 Subject: [PATCH] Add Spring Boot Actuator Issue-ID: CPS-522 Signed-off-by: puthuparambil.aditya Change-Id: I6bdb29dec63c409d18e84bebc51eeef5c34e1412 --- pom.xml | 8 ++++++++ src/main/resources/application.yml | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/pom.xml b/pom.xml index ff2cbb7..c11087d 100755 --- a/pom.xml +++ b/pom.xml @@ -90,6 +90,14 @@ org.springframework.boot spring-boot-starter-data-jpa + + org.springframework.boot + spring-boot-starter-actuator + + + io.micrometer + micrometer-registry-prometheus + com.vladmihalcea hibernate-types-52 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index eed24dc..c79351a 100755 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -65,3 +65,19 @@ springdoc: urls: - name: query url: /swagger/openapi.yml + +# Actuator +management: + server: + port: 8081 + endpoints: + web: + base-path: /manage + exposure: + include: info,health,loggers,prometheus + endpoint: + health: + show-details: always + # kubernetes probes: liveness and readiness + probes: + enabled: true \ No newline at end of file -- 2.16.6