dubbo监控中心

时间:2021-06-23 16:44:46   收藏:0   阅读:0

1.配置:进入dubbo-monitor-simple-2.0.0\conf目录修改dubbo.properties文件

dubbo.registry.address=zookeeper://127.0.0.1:2181

 

2、监控中心配置

参考官网:https://dubbo.apache.org/zh/docs/v2.7/user/references/xml/

技术图片

 

 

 

xml中配置:所有服务配置连接监控中心,进行监控统计

    <!-- 监控中心协议,如果为protocol="registry",表示从注册中心发现监控中心地址,否则直连监控中心 -->

    <dubbo:monitor protocol="registry"></dubbo:monitor>

 <!--直连监控中心服务器地址-->

 <!--<dubbo:monitor address="127.0.0.1:7070"></dubbo:monitor>-->

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!