From 2b9d4f492554628d910b748fefca3d73a7c05a45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Al=C5=BEbeta=20Hajn=C3=A1?= <xhajna@fi.muni.cz>
Date: Tue, 2 May 2023 20:20:13 +0200
Subject: [PATCH] feat: actuator health

---
 core/pom.xml                                   | 7 +++++++
 core/src/main/resources/application.properties | 7 ++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/core/pom.xml b/core/pom.xml
index e02931f..fe45fb2 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -159,6 +159,13 @@
             <artifactId>jackson-datatype-jsr310</artifactId>
         </dependency>
 
+        <!--		Actuator dependency-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
+
     </dependencies>
 
 </project>
\ No newline at end of file
diff --git a/core/src/main/resources/application.properties b/core/src/main/resources/application.properties
index 13066c3..bc2a344 100644
--- a/core/src/main/resources/application.properties
+++ b/core/src/main/resources/application.properties
@@ -11,4 +11,9 @@ spring.jpa.show-sql=true
 spring.jackson.property-naming-strategy=SNAKE_CASE
 spring.cache.type=NONE
 spring.profiles.active=dev
-appconfig.enablecache=false
\ No newline at end of file
+appconfig.enablecache=false
+
+management.endpoints.web.exposure.include=info,health,metrics,loggers,beans
+management.endpoint.health.show-details=always
+management.endpoint.health.show-components=always
+management.endpoint.health.probes.enabled=true
\ No newline at end of file
-- 
GitLab