Jelajahi Sumber

服务提供者增加监控中心配置

shuzheng 9 tahun lalu
induk
melakukan
15a62b5fe5

+ 2 - 0
zheng-api/zheng-api-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

@@ -13,6 +13,8 @@
 
     <dubbo:protocol name="dubbo" port="20880"/>
 
+    <dubbo:monitor protocol="registry"/>
+
     <!-- API总系统 -->
     <bean id="apiService" class="com.zheng.api.rpc.service.impl.ApiServiceImpl"/>
     <dubbo:service interface="com.zheng.api.rpc.api.ApiService" ref="apiService" timeout="10000"/>

+ 2 - 0
zheng-cms/zheng-cms-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

@@ -13,6 +13,8 @@
 
     <dubbo:protocol name="dubbo" port="20882"/>
 
+    <dubbo:monitor protocol="registry"/>
+
     <!-- 文章 -->
     <bean id="cmsArticleServiceImpl" class="com.zheng.cms.rpc.service.impl.CmsArticleServiceImpl"/>
     <dubbo:service interface="com.zheng.cms.rpc.api.CmsArticleService" ref="cmsArticleServiceImpl" timeout="10000"/>

+ 2 - 0
zheng-pay/zheng-pay-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

@@ -13,6 +13,8 @@
 
     <dubbo:protocol name="dubbo" port="20883"/>
 
+    <dubbo:monitor protocol="registry"/>
+
     <!-- 支付方式服务 -->
     <bean id="payVendorService" class="com.zheng.pay.rpc.service.impl.PayVendorServiceImpl"/>
     <dubbo:service interface="com.zheng.pay.rpc.api.PayVendorService" ref="payVendorService" timeout="10000"/>

+ 2 - 0
zheng-ucenter/zheng-ucenter-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

@@ -13,6 +13,8 @@
 
     <dubbo:protocol name="dubbo" port="20884"/>
 
+    <dubbo:monitor protocol="registry"/>
+
     <!-- 认证方式 -->
     <bean id="ucenterOauthService" class="com.zheng.ucenter.rpc.service.impl.UcenterOauthServiceImpl"/>
     <dubbo:service interface="com.zheng.ucenter.rpc.api.UcenterOauthService" ref="ucenterOauthService" timeout="10000"/>

+ 2 - 0
zheng-upms/zheng-upms-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

@@ -13,6 +13,8 @@
 
     <dubbo:protocol name="dubbo" port="20881"/>
 
+    <dubbo:monitor protocol="registry"/>
+
     <!-- 系统 -->
     <bean id="upmsSystemService" class="com.zheng.upms.rpc.service.impl.UpmsSystemServiceImpl"/>
     <dubbo:service interface="com.zheng.upms.rpc.api.UpmsSystemService" ref="upmsSystemService" timeout="10000"/>