Sfoglia il codice sorgente

Merge branch 'ljd/server-monitor' into pre-master

jiandong.liu 1 settimana fa
parent
commit
7e9e95a14e

+ 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: