From 7ec1ce7e78b0cf59bdf55647e832093d11ba4f41 Mon Sep 17 00:00:00 2001 From: Luis Filipe de Sousa Date: Wed, 15 May 2024 07:32:58 +0200 Subject: [PATCH 1/2] chore: enable the actuator endpoints to answer the requirements of having readiness and liveness probes. --- src/main/resources/application.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 806521e..e645e29 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -104,3 +104,18 @@ camel: spring: application: name: mobile-access-gateway + +management: + endpoint: + health: + probes: + enabled: true + shutdown: + enabled: true + info: + enabled: true + endpoints: + web: + exposure: + include: "*" + exclude: "env,beans" From 5d0934a720d3edb6e8ea191c30086923116eb79a Mon Sep 17 00:00:00 2001 From: Luis Filipe de Sousa Date: Wed, 15 May 2024 10:06:25 +0200 Subject: [PATCH 2/2] chore: added the prometheus metrics support to the mag --- pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pom.xml b/pom.xml index 25f63ff..f9e9620 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,12 @@ spring-boot-starter-actuator + + io.micrometer + micrometer-registry-prometheus + runtime + +