From 4dc06d0e828494352e24a8e47cea1073de25953f Mon Sep 17 00:00:00 2001 From: PatrikBuhr Date: Thu, 11 Apr 2019 15:27:07 +0000 Subject: Enabling Spring boot actuator This makes it possible by a REST API: - change logging levels - get the application log - get build info for the DFC - get various metrixes for the execution such as heap consumption, number of threads etc. Change-Id: I570bc0db6a9b9977ecfd83389b463fe652e4ba16 Issue-ID: DCAEGEN2-1428 Signed-off-by: PatrikBuhr --- datafile-app-server/config/application.yaml | 5 +++ datafile-app-server/pom.xml | 64 +++++++++++++++++++++++++++-- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git a/datafile-app-server/config/application.yaml b/datafile-app-server/config/application.yaml index 8985b9b8..504a6f3f 100644 --- a/datafile-app-server/config/application.yaml +++ b/datafile-app-server/config/application.yaml @@ -1,6 +1,11 @@ spring: profiles: active: prod +management: + endpoints: + web: + exposure: + include: "loggers,logfile,health,info,metrics" server: port: 8433 ssl: diff --git a/datafile-app-server/pom.xml b/datafile-app-server/pom.xml index fa02b79e..43b4788c 100644 --- a/datafile-app-server/pom.xml +++ b/datafile-app-server/pom.xml @@ -121,6 +121,39 @@ + + + org.springframework.boot + spring-boot-maven-plugin + + + + build-info + + + + + + + pl.project13.maven + git-commit-id-plugin + + + get-the-git-infos + + revision + + + + + true + ${project.basedir}/.git + MM-dd-yyyy '@' HH:mm:ss Z + true + ${project.build.outputDirectory}/git.properties + true + + @@ -173,6 +206,29 @@ commons-net commons-net + + org.springframework.boot + spring-boot-starter-actuator + + + org.apache.commons + commons-lang3 + + + org.apache.httpcomponents + httpclient + + + commons-net + commons-net + + + org.springframework.boot + spring-boot-starter-actuator + + + + @@ -189,7 +245,7 @@ org.springframework spring-test test - + org.springframework.boot spring-boot-starter-test @@ -234,9 +290,9 @@ spring-boot-configuration-processor true - - javax.xml.bind - jaxb-api + + javax.xml.bind + jaxb-api -- cgit 1.2.3-korg