shjung 8 mesi fa
parent
commit
8115934412

+ 1 - 0
evps-comm-server/build.gradle

@@ -27,6 +27,7 @@ dependencies {
     implementation 'org.springframework.boot:spring-boot-starter-web'
     implementation 'org.springframework.boot:spring-boot-starter-actuator'
     implementation 'org.springframework.boot:spring-boot-starter-aop'
+    implementation 'io.micrometer:micrometer-registry-prometheus'
 
     implementation 'org.springframework.kafka:spring-kafka'
     implementation 'com.fasterxml.jackson.core:jackson-databind'

+ 7 - 1
evps-comm-server/src/main/resources/application.yml

@@ -27,9 +27,15 @@ server:
   shutdown: graceful
 management:
   endpoints:
+    prometheus:
+      enabled: true
     web:
       exposure:
-        include: '*'
+        include: "*"
+    health:
+      show-details: "always"
+  security:
+    enabled: false
 
 application:
   process-id: evps-comm-server