Dubbo Monitor Simple 监控中心

下载项目源码(其中的 dubbo-registry-simple 代表简单的注册中心,用于开发测试,生产环境一般用zookeeper)

https://github.com/apache/incubator-dubbo-admin/tree/master

进入 dubbo-monitor-simple 目录编译

mvn package

完成后会生成两个文件,选择压缩包的哪个并解压

启动(需先启动 zookeeper)

修改配置文件中的 zookeeper 地址(confdubbo.properties),然后运行 assembly.bin 目录下的 start.bat 启动

使用,在服务上配置上即可,自动发现或指定监控中心地址

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

查看

http://127.0.0.1:8080/


http://dubbo.apache.org/zh-cn/docs/user/references/xml/dubbo-monitor.html

原文地址:https://www.cnblogs.com/jhxxb/p/10802861.html