aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpom.xml8
-rwxr-xr-xsrc/main/resources/application.yml16
2 files changed, 24 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index ff2cbb7..c11087d 100755
--- a/pom.xml
+++ b/pom.xml
@@ -91,6 +91,14 @@
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.micrometer</groupId>
+ <artifactId>micrometer-registry-prometheus</artifactId>
+ </dependency>
+ <dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-52</artifactId>
<version>2.10.0</version>
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index eed24dc..c79351a 100755
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -65,3 +65,19 @@ springdoc:
urls:
- name: query
url: /swagger/openapi.yml
+
+# Actuator
+management:
+ server:
+ port: 8081
+ endpoints:
+ web:
+ base-path: /manage
+ exposure:
+ include: info,health,loggers,prometheus
+ endpoint:
+ health:
+ show-details: always
+ # kubernetes probes: liveness and readiness
+ probes:
+ enabled: true \ No newline at end of file