From 2bc94535135209e514427858a2271477308f3f81 Mon Sep 17 00:00:00 2001 From: shroffk Date: Thu, 26 Feb 2026 10:22:03 -0500 Subject: [PATCH] Adding Service Health end points via the spring actuator --- services/alarm-logger/pom.xml | 5 +++++ .../src/main/resources/application.properties | 12 +++++++++++- services/save-and-restore/pom.xml | 5 +++++ .../src/main/resources/application.properties | 10 ++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/services/alarm-logger/pom.xml b/services/alarm-logger/pom.xml index 83fd85448c..8ebcaae474 100644 --- a/services/alarm-logger/pom.xml +++ b/services/alarm-logger/pom.xml @@ -46,6 +46,11 @@ + + org.springframework.boot + spring-boot-starter-actuator + ${spring.boot.version} + org.apache.kafka kafka-streams diff --git a/services/alarm-logger/src/main/resources/application.properties b/services/alarm-logger/src/main/resources/application.properties index 64079aeb76..dc3996b38d 100644 --- a/services/alarm-logger/src/main/resources/application.properties +++ b/services/alarm-logger/src/main/resources/application.properties @@ -68,4 +68,14 @@ retain_indices_count=0 purge_cron_expr=0 0 0 * * SUN ############################################################################## -logging.config=classpath:alarm_logger_logging.properties \ No newline at end of file +logging.config=classpath:alarm_logger_logging.properties + +########### Spring Boot Actuator Configuration ############# +# Enable actuator endpoints +management.endpoints.web.exposure.include=health,info,metrics,loggers,env + +# Base path for actuator endpoints (default is /actuator) +# management.endpoints.web.base-path=/actuator + +# Enable info endpoint +management.info.env.enabled=true diff --git a/services/save-and-restore/pom.xml b/services/save-and-restore/pom.xml index df45fbee11..347dfd9f91 100644 --- a/services/save-and-restore/pom.xml +++ b/services/save-and-restore/pom.xml @@ -129,6 +129,11 @@ spring-security-test + + org.springframework.boot + spring-boot-starter-actuator + + jakarta.json jakarta.json-api diff --git a/services/save-and-restore/src/main/resources/application.properties b/services/save-and-restore/src/main/resources/application.properties index 91597c4e3d..d13649fb50 100644 --- a/services/save-and-restore/src/main/resources/application.properties +++ b/services/save-and-restore/src/main/resources/application.properties @@ -107,3 +107,13 @@ role.admin=sar-admin ############## EPICS related ################# connection.timeout=5000 write.timout=5000 + +########### Spring Boot Actuator Configuration ############# +# Enable actuator endpoints +management.endpoints.web.exposure.include=health,info,metrics,loggers,env + +# Base path for actuator endpoints (default is /actuator) +# management.endpoints.web.base-path=/actuator + +# Enable info endpoint +management.info.env.enabled=true