From 7a7c90404e9c0e3faaa3b3a111ed2263d2dad893 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 9 Nov 2022 18:06:09 +0000 Subject: Enable health check and prometheus on gui-server Issue-ID: POLICY-4138 Change-Id: Ibd815d54e7ee1df787412ed55d70d8a5dc95f1c0 Signed-off-by: liamfallon --- gui-server/pom.xml | 10 ++++++++++ gui-server/src/main/resources/static/designtime-ui/index.html | 1 + gui-server/src/main/resources/static/runtime-ui/index.html | 1 + gui-server/src/test/resources/application_http.yaml | 5 ++++- gui-server/src/test/resources/application_https.yaml | 5 ++++- 5 files changed, 20 insertions(+), 2 deletions(-) (limited to 'gui-server') diff --git a/gui-server/pom.xml b/gui-server/pom.xml index b774f0d..4082fd3 100644 --- a/gui-server/pom.xml +++ b/gui-server/pom.xml @@ -39,11 +39,21 @@ org.springframework.boot spring-boot-starter-web + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.boot spring-boot-starter-test test + + io.micrometer + micrometer-registry-prometheus + ${version.io.micrometer} + runtime + org.apache.httpcomponents httpclient diff --git a/gui-server/src/main/resources/static/designtime-ui/index.html b/gui-server/src/main/resources/static/designtime-ui/index.html index 8da1b06..4080991 100644 --- a/gui-server/src/main/resources/static/designtime-ui/index.html +++ b/gui-server/src/main/resources/static/designtime-ui/index.html @@ -7,6 +7,7 @@ diff --git a/gui-server/src/main/resources/static/runtime-ui/index.html b/gui-server/src/main/resources/static/runtime-ui/index.html index 74fa41a..4d0f175 100644 --- a/gui-server/src/main/resources/static/runtime-ui/index.html +++ b/gui-server/src/main/resources/static/runtime-ui/index.html @@ -7,6 +7,7 @@ diff --git a/gui-server/src/test/resources/application_http.yaml b/gui-server/src/test/resources/application_http.yaml index 934e933..fbe2f36 100644 --- a/gui-server/src/test/resources/application_http.yaml +++ b/gui-server/src/test/resources/application_http.yaml @@ -30,5 +30,8 @@ designtime-ui: management: endpoints: web: + base-path: / exposure: - include: health, metrics, prometheus + include: health,metrics,prometheus + path-mapping.metrics: plain-metrics + path-mapping.prometheus: metrics diff --git a/gui-server/src/test/resources/application_https.yaml b/gui-server/src/test/resources/application_https.yaml index e5a84c1..825d6b9 100644 --- a/gui-server/src/test/resources/application_https.yaml +++ b/gui-server/src/test/resources/application_https.yaml @@ -36,5 +36,8 @@ designtime-ui: management: endpoints: web: + base-path: / exposure: - include: health, metrics, prometheus + include: health,metrics,prometheus + path-mapping.metrics: plain-metrics + path-mapping.prometheus: metrics -- cgit 1.2.3-korg