From: puthuparambil.aditya Date: Tue, 3 Aug 2021 10:19:40 +0000 (+0100) Subject: Add Spring Boot Actuator X-Git-Tag: 0.0.1~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8169b24cac135fcaf731bb8014d0115362fda6d5;p=cps%2Fcps-temporal.git Add Spring Boot Actuator Issue-ID: CPS-522 Signed-off-by: puthuparambil.aditya Change-Id: I6bdb29dec63c409d18e84bebc51eeef5c34e1412 --- 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