From f09fa3541ad18c00f30707f592f16d18a0537f77 Mon Sep 17 00:00:00 2001
From: manailin <261030956@qq.com>
Date: 星期二, 17 八月 2021 21:54:51 +0800
Subject: [PATCH] [新增]添加监控依赖包

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/resources/bootstrap.yml               |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/auth/pom.xml                                           |   10 +
 springcloud_k8s_panzhihuazhihuishequ/pom.xml                                                |   11 +
 springcloud_k8s_panzhihuazhihuishequ/community_backstage/pom.xml                            |    9 +
 springcloud_k8s_panzhihuazhihuishequ/applets_backstage/pom.xml                              |   10 +
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/bootstrap.yml     |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/resources/bootstrap.yml        |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml     |   12 ++
 springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/resources/bootstrap.yml        |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/config_server/pom.xml                                  |   10 +
 springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/resources/bootstrap.yml              |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/timejob/pom.xml                                        |    9 +
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/bootstrap.yml |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/service_grid/pom.xml                                   |    9 +
 springcloud_k8s_panzhihuazhihuishequ/applets/pom.xml                                        |   10 +
 springcloud_k8s_panzhihuazhihuishequ/eureka_server/src/main/resources/application.yml       |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/resources/bootstrap.yml               |   12 ++
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/pom.xml                          |    9 +
 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/bootstrap.yml          |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/bootstrap.yml          |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/service_user/pom.xml                                   |   10 +
 springcloud_k8s_panzhihuazhihuishequ/grid_backstage/pom.xml                                 |    9 +
 springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/bootstrap.yml                  |   17 ++
 springcloud_k8s_panzhihuazhihuishequ/shop_backstage/pom.xml                                 |    9 +
 springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/resources/bootstrap.yml   |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/grid_app/pom.xml                                       |    9 +
 springcloud_k8s_panzhihuazhihuishequ/service_community/pom.xml                              |    9 +
 springcloud_k8s_panzhihuazhihuishequ/zuul/pom.xml                                           |    9 +
 springcloud_k8s_panzhihuazhihuishequ/eureka_server/pom.xml                                  |   10 +
 springcloud_k8s_panzhihuazhihuishequ/auth/src/main/resources/bootstrap.yml                  |   13 ++
 springcloud_k8s_panzhihuazhihuishequ/config_server/src/main/resources/application.yml       |   13 ++
 31 files changed, 342 insertions(+), 7 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/applets/pom.xml
index 2e9b141..c565b22 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/pom.xml
@@ -50,7 +50,15 @@
             <groupId>com.github.xiaoymin</groupId>
             <artifactId>swagger-bootstrap-ui</artifactId>
         </dependency>
-
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/resources/bootstrap.yml
index fb95e97..4784daa 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/resources/bootstrap.yml
@@ -29,4 +29,17 @@
     secret: c7ea9aaa7e391a487e8a5b9ba61045d1
     msgDataFormat: JSON
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: applets
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/pom.xml
index f6ee856..7adbc20 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/pom.xml
@@ -48,7 +48,15 @@
             <artifactId>hystrix-javanica</artifactId>
         </dependency>
 
-
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
 
     </dependencies>
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml
index a28ca88..8281d29 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml
@@ -20,7 +20,19 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
 
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: appletsbackstage
 
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/auth/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/auth/pom.xml
index cc4bcee..a5fd080 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/auth/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/auth/pom.xml
@@ -92,7 +92,15 @@
             <scope>compile</scope>
         </dependency>
 
-
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/resources/bootstrap.yml
index 8f29cff..de1c248 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/resources/bootstrap.yml
@@ -17,3 +17,16 @@
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: auth
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/community_backstage/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/community_backstage/pom.xml
index c430116..6477a5e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/community_backstage/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/community_backstage/pom.xml
@@ -53,6 +53,15 @@
             <artifactId>officeexport-java</artifactId>
             <version>1.0.1.6-RELEASE</version>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/resources/bootstrap.yml
index b721eb2..d661da4 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/resources/bootstrap.yml
@@ -20,3 +20,16 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: communitybackstage
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/config_server/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/config_server/pom.xml
index 099068c..5e6df14 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/config_server/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/config_server/pom.xml
@@ -40,7 +40,15 @@
             <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
         </dependency>
 
-
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
 
     </dependencies>
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/config_server/src/main/resources/application.yml b/springcloud_k8s_panzhihuazhihuishequ/config_server/src/main/resources/application.yml
index 93afcd5..f2c7e59 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/config_server/src/main/resources/application.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/config_server/src/main/resources/application.yml
@@ -26,3 +26,16 @@
           password: huanghongfa123456
 #          basedir: F:\nahan\config-repo\config-repo
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: config
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/eureka_server/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/eureka_server/pom.xml
index c6bb15c..9c9f8b3 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/eureka_server/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/eureka_server/pom.xml
@@ -25,7 +25,15 @@
             <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
         </dependency>
 
-
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
 
     </dependencies>
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/eureka_server/src/main/resources/application.yml b/springcloud_k8s_panzhihuazhihuishequ/eureka_server/src/main/resources/application.yml
index e24b601..d0495ed 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/eureka_server/src/main/resources/application.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/eureka_server/src/main/resources/application.yml
@@ -14,3 +14,16 @@
         enable-self-preservation: false  #是否开启自我保护模式
         eviction‐interval‐timer‐in‐ms: 10000 #服务注册表清理间隔(单位毫秒,默认是60*1000)
 
+management:
+    endpoints:
+        web:
+            exposure:
+                include: '*'
+
+    endpoint:
+        health:
+            show-details: always
+
+    metrics:
+        tags:
+            application: eureka
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_app/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/grid_app/pom.xml
index 1e99969..f0b125f 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/grid_app/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_app/pom.xml
@@ -48,6 +48,15 @@
             <groupId>com.github.xiaoymin</groupId>
             <artifactId>swagger-bootstrap-ui</artifactId>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/resources/bootstrap.yml
index 93a8387..0c315f2 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/resources/bootstrap.yml
@@ -20,3 +20,16 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: gridapp
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/pom.xml
index 5650d52..44d1176 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/pom.xml
@@ -48,6 +48,15 @@
             <groupId>com.github.xiaoymin</groupId>
             <artifactId>swagger-bootstrap-ui</artifactId>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/resources/bootstrap.yml
index f13b433..fb45df8 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/resources/bootstrap.yml
@@ -20,3 +20,16 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: gridbackstage
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/pom.xml
index 3bc2707..63d76d4 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/pom.xml
@@ -185,6 +185,17 @@
                 <artifactId>feign-httpclient</artifactId>
                 <version>${feign-httpclient.version}</version>
             </dependency>
+            <!--添加监控依赖包-->
+            <dependency>
+                <groupId>io.micrometer</groupId>
+                <artifactId>micrometer-registry-prometheus</artifactId>
+                <version>1.5.1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-starter-actuator</artifactId>
+                <version>2.3.4.RELEASE</version>
+            </dependency>
 
         </dependencies>
     </dependencyManagement>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/service_community/pom.xml
index c7df5fb..5dafd06 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/pom.xml
@@ -73,6 +73,15 @@
             <artifactId>commons-lang</artifactId>
             <version>2.6</version>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/bootstrap.yml
index f5c3342..4fb0fc1 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/bootstrap.yml
@@ -28,3 +28,16 @@
   aesKey: Ryo7M3n8loC5
   sensitive: true
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: community
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/service_grid/pom.xml
index d0c8ca2..37afa2c 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/pom.xml
@@ -73,6 +73,15 @@
             <artifactId>commons-lang</artifactId>
             <version>2.6</version>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/bootstrap.yml
index 28648a6..38ecc3c 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/bootstrap.yml
@@ -23,3 +23,16 @@
   aesKey: Ryo7M3n8loC5
   sensitive: true
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: grid
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/pom.xml
index c9fe17c..d15e21d 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/pom.xml
@@ -59,6 +59,15 @@
             <groupId>org.springframework.data</groupId>
             <artifactId>spring-data-redis</artifactId>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/bootstrap.yml
index 355e0d4..fd3279c 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/bootstrap.yml
@@ -16,3 +16,16 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: partybuilding
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/service_user/pom.xml
index 3eeffde..857c67d 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/pom.xml
@@ -71,7 +71,15 @@
             <groupId>com.netflix.hystrix</groupId>
             <artifactId>hystrix-javanica</artifactId>
         </dependency>
-
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/bootstrap.yml
index 8820a34..7e3de73 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/bootstrap.yml
@@ -16,3 +16,16 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: user
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/pom.xml
index c671e1d..11562b5 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/pom.xml
@@ -47,6 +47,15 @@
             <groupId>com.github.xiaoymin</groupId>
             <artifactId>swagger-bootstrap-ui</artifactId>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/resources/bootstrap.yml
index bb7fc05..093e51a 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/resources/bootstrap.yml
@@ -20,3 +20,16 @@
     service-url:
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: shopbackstage
\ No newline at end of file
diff --git a/springcloud_k8s_panzhihuazhihuishequ/timejob/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/timejob/pom.xml
index 827bc33..8583bb5 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/timejob/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/timejob/pom.xml
@@ -48,6 +48,15 @@
             <artifactId>xxl-job-core</artifactId>
             <version>2.2.0</version>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/resources/bootstrap.yml
index 8e2542b..f987477 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/resources/bootstrap.yml
@@ -17,5 +17,17 @@
       defaultZone: http://${EUREKA_URL:localhost}:8192/eureka
 
 
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
 
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: timejob
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/zuul/pom.xml b/springcloud_k8s_panzhihuazhihuishequ/zuul/pom.xml
index 931c0ad..98232ec 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/zuul/pom.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/zuul/pom.xml
@@ -56,6 +56,15 @@
             <groupId>io.springfox</groupId>
             <artifactId>springfox-swagger-ui</artifactId>
         </dependency>
+        <!--添加监控依赖包-->
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-registry-prometheus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
     </dependencies>
 
 
diff --git a/springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/bootstrap.yml b/springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/bootstrap.yml
index 563c4d2..300ecf7 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/bootstrap.yml
+++ b/springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/resources/bootstrap.yml
@@ -84,4 +84,19 @@
       - POST:/api/applets/user/pagemicrowish
       - POST:/api/applets/user/pageeasyphoto
       - POST:/api/applets/neighbor/user/page
-      - GET:/api/applets/user/listfamily
\ No newline at end of file
+      - GET:/api/applets/user/listfamily
+
+
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
+
+  endpoint:
+    health:
+      show-details: always
+
+  metrics:
+    tags:
+      application: zuul
\ No newline at end of file

--
Gitblit v1.7.1