dubbo-monitor安装及配置过程

安装

 1. 使用git下载(git clone https://github.com/alibaba/dubbo.git)或者从http://dubbo.io/下载源码

 2. cd到dubbo的根目录,mvn install -Dmaven.test.skip=true

 3. 编译成功之后,在dubbo-simple工程里,target目录下就会出现dubbo-monitor-simple-assembly.tar.gz

 4. 解压缩dubbo-monitor-simple-assembly.tar.gz,

配置

1. 修改conf/dubbo.properties如下

dubbo.container=log4j,spring,registry,jetty
dubbo.application.name=simple-monitor
dubbo.application.owner=
dubbo.registry.address=multicast://224.5.6.7:1234
#dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.registry.address=redis://127.0.0.1:6379
#dubbo.registry.address=dubbo://127.0.0.1:9090
dubbo.protocol.port=7070
dubbo.jetty.port=8083
dubbo.jetty.directory=C:/Users/Administrator/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=C:/Users/Administrator/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN

 2. 创建目录

C:/Users/Administrator/monitor
C:/Users/Administrator/monitor/charts
C:/Users/Administrator/monitor/statistics

 3. 在服务端需要配置监控的配置文件:<dubbo:monitor protocol="registry" /> (e.g. provider.xml及consumer.xml)

然后浏览器访问http://{ip}:8083

posted on 2017-09-20 22:51  jmbkeyes  阅读(606)  评论(0编辑  收藏  举报

导航