jiandong.liu 1 неделя назад
Родитель
Сommit
b8056d4210

+ 6 - 0
recommend-feature-service/pom.xml

@@ -142,6 +142,12 @@
             <groupId>io.micrometer</groupId>
             <artifactId>micrometer-registry-prometheus</artifactId>
         </dependency>
+
+        <dependency>
+            <groupId>io.github.mweirauch</groupId>
+            <artifactId>micrometer-jvm-extras</artifactId>
+            <version>0.2.2</version>
+        </dependency>
     </dependencies>
     <build>
         <finalName>recommend-feature-service</finalName>

+ 2 - 0
recommend-feature-service/src/main/resources/application.yml

@@ -17,6 +17,8 @@ apollo:
 
 # Actuator 监控配置
 management:
+  server:
+    port: 9786
   endpoints:
     web:
       exposure: