Workflow - adding Health Actuator 01/57701/1
authorshrikantawachar <shrikant.awachar@amdocs.com>
Thu, 26 Jul 2018 12:03:48 +0000 (17:33 +0530)
committershrikantawachar <shrikant.awachar@amdocs.com>
Thu, 26 Jul 2018 12:03:48 +0000 (17:33 +0530)
Workflow - adding Health Actuator

Change-Id: Ic644ab2b26e2e8633266870192eb1f2b82484370
Issue-ID: SDC-1563
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
README.md
workflow-designer-be/pom.xml
workflow-designer-be/src/main/resources/application.properties

index 2b6bcbc..7515380 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,6 +35,8 @@ or, if Cassandra authentication is not required
 The server listens on 8080 by default, but it is possible to change the application port by passing 
 `-e SERVER_PORT={PORT}` to Docker _run_ command.
 
+To check health information of application you can use option `-e SHOW_HEALTH={always}`
+
 **Example**
 
 `docker run -d -e JAVA_OPTIONS="-Xmx128m -Xms128m -Xss1m" -e CS_HOSTS=10.247.41.19,10.247.41.20 
index 10f1ad2..60a7cd0 100644 (file)
             <version>${lombok.version}</version>
             <scope>provided</scope>
         </dependency>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-starter-actuator</artifactId>
+                <scope>provided</scope>
+            </dependency>
     </dependencies>
 
     <build>
index ab4930b..c120bda 100644 (file)
@@ -7,4 +7,5 @@ spring.data.cassandra.keyspace-name=workflow
 spring.data.cassandra.port=${CS_PORT:9042}
 spring.data.cassandra.username=${CS_USER:}
 spring.data.cassandra.password=${CS_PASSWORD:}
-zusammen.cassandra.isAuthenticate=${CS_AUTHENTICATE:true}
\ No newline at end of file
+zusammen.cassandra.isAuthenticate=${CS_AUTHENTICATE:true}
+management.endpoint.health.show-details=${SHOW_HEALTH:never}
\ No newline at end of file