diff options
author | 2020-10-29 11:39:31 +0200 | |
---|---|---|
committer | 2020-11-05 13:42:31 +0000 | |
commit | f4d1c984c6bb290c4bb58001231a1cfefac002cc (patch) | |
tree | 0c8814ac15234b0e041bbebe05bc9b0b02a30a00 | |
parent | 70c17020b7025a9ff18192d4d5add6f75ace49aa (diff) |
Spring Boot Actuator enabled on /manage
Change-Id: I39970e920ae9b10aed038bc3da7a59b2ae370cf2
Issue-ID: CPS-16
JIRA: https://jira.onap.org/browse/CPS-16
Signed-off-by: Ruslan Kashapov <ruslan.kashapov.bf@gmail.com>
-rw-r--r-- | cps/cps-parent/pom.xml | 1 | ||||
-rw-r--r-- | cps/cps-rest/pom.xml | 4 | ||||
-rw-r--r-- | cps/cps-rest/src/main/resources/application.yml | 12 |
3 files changed, 17 insertions, 0 deletions
diff --git a/cps/cps-parent/pom.xml b/cps/cps-parent/pom.xml index 2ddb2b668..4984b6194 100644 --- a/cps/cps-parent/pom.xml +++ b/cps/cps-parent/pom.xml @@ -73,6 +73,7 @@ <executions> <execution> <goals> + <goal>build-info</goal> <goal>repackage</goal> </goals> </execution> diff --git a/cps/cps-rest/pom.xml b/cps/cps-rest/pom.xml index f9be75b7e..2d125803d 100644 --- a/cps/cps-rest/pom.xml +++ b/cps/cps-rest/pom.xml @@ -35,6 +35,10 @@ <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+ <dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
diff --git a/cps/cps-rest/src/main/resources/application.yml b/cps/cps-rest/src/main/resources/application.yml index 8e2aee043..84f3f79cd 100644 --- a/cps/cps-rest/src/main/resources/application.yml +++ b/cps/cps-rest/src/main/resources/application.yml @@ -24,6 +24,18 @@ spring: jersey:
type: filter
+# Actuator
+management:
+ endpoints:
+ web:
+ base-path: /manage
+ endpoint:
+ health:
+ show-details: always
+ # kubernetes probes: liveness and readiness
+ probes:
+ enabled: true
+
logging:
level:
org:
|