天天看点

Dubbo--安装监控中心(dubbo-monitor-simple)

dubbo-monitor-simple

简单的监控中心。

下载dubbo-ops:

https://github.com/apache/incubator-dubbo-ops

修改配置指定注册中心地址:

进入 dubbo-monitor-simple\src\main\resources\conf

修改 dubbo.properties文件

Dubbo--安装监控中心(dubbo-monitor-simple)

打包dubbo-monitor-simple:

mvn clean package -Dmaven.test.skip=true
           

解压tar.gz文件,运行start.sh:

Dubbo--安装监控中心(dubbo-monitor-simple)

如果缺少servlet-api,自行导入servlet-api再访问监控中心

启动访问8080端口:

Dubbo--安装监控中心(dubbo-monitor-simple)

监控中心配置

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

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

Simple Monitor 挂掉不会影响到 Consumer 和 Provider 之间的调用,所以用于生产环境不会有风险。

Simple Monitor 采用磁盘存储统计信息,请注意安装机器的磁盘限制,如果要集群,建议用mount共享磁盘。

继续阅读