浏览代码

Enable spring boot actuators

Roman Zabaluev 3 年之前
父节点
当前提交
e021d97194
共有 2 个文件被更改,包括 16 次插入1 次删除
  1. 5 0
      kafka-ui-api/pom.xml
  2. 11 1
      kafka-ui-api/src/main/resources/application.yml

+ 5 - 0
kafka-ui-api/pom.xml

@@ -181,6 +181,11 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
     </dependencies>
 
     <build>

+ 11 - 1
kafka-ui-api/src/main/resources/application.yml

@@ -3,4 +3,14 @@ kafka:
 zookeeper:
   connection-timeout: 1000
 auth:
-  enabled: false
+  enabled: false
+management:
+  endpoint:
+    info:
+      enabled: true
+    health:
+      enabled: true
+  endpoints:
+    web:
+      exposure:
+        include: "info,health"