跟我学习dubbo-Dubbo监控中心的介绍与简易监控中心的安装(7)
2016-01-12 01:54
423 查看
摘要: Dubbo 监控中心的介绍与简易监控中心的安装
Dubbo 服务提供者和服务消费者中的 spring 配置文件中增加以下配置
Dubbo 简易监控中心的配置解释(不需要修改,使用默认配置)
重新启动 dubbo-monitor 简易监控中心,此时就会看到以上 3 个目录会被创新,并在目 录里面有相应的服务接口调用的报表数据。
此时再进入 Dubbo 简易监控中心就能查看到对应的报表数据
1、 Dubbo 服务提供者和服务消费者中的 spring 配置文件中增加以下配置:
![](http://static.oschina.net/uploads/space/2016/0112/014111_usK9_2603356.png)
添加完以上配置后,重新构建部署 Dubbo 服务和服务消费者应用
2、 Dubbo 简易监控中心的配置解释(不需要修改,使用默认配置)
操作系统用户为 jeesmlsz,系统用户目录为/home/jeesml
dubbo-monitor 的安装目录为:/home/jeesml/dubbo-monitor
dubbo-monitor 的配置文件为:/home/jeesml/dubbo-monitor/conf/dubbo.properties
dubbo-monitor 的配置文件内容如下: dubbo.container=log4j,spring,registry,jetty
dubbo.application.name=simple-monitor
dubbo.application.owner=
dubbo.registry.address=zookeeper://xxx.xxx.xxx.xxx:2181
dubbo.protocol.port=7070
dubbo.jetty.port=8090
dubbo.jetty.directory=${user.home}/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=${user.home}/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN
看上面配置文件中标红的的 3 行内容,理解${user.home}这个变量的意思则可,${user.home} 指的就是启动 dubbo-monitor 程序的操作系统用户目录。我们这里用的是 jeesmlsz用户,那么 就是/home/jeesmlsz 目录(如果是 root 用户启动,那就是/root)。
此时,配置中 3 个目录的绝对路径为:
dubbo.jetty.directory=/home/jeesmlsz/monitor
dubbo.charts.directory=/home/jeesmlsz/monitor/charts
dubbo.statistics.directory=/home/jeesmlsz/monitor/statistics
3、 重新启动 dubbo-monitor 简易监控中心,此时就会看到以上 3 个目录会被创新,并在目 录里面有相应的服务接口调用的报表数据。
4、 此时再进入 Dubbo 简易监控中心就能查看到对应的报表数据
![](http://static.oschina.net/uploads/space/2016/0112/014751_cgut_2603356.png)
![](http://static.oschina.net/uploads/space/2016/0112/014940_yhaP_2603356.png)
请各位持续关注《跟我学习dubbo-消息中间件在分布式系统中的作用介绍(8)》
1. 项目核心代码结构截图
![](http://static.oschina.net/uploads/img/201604/03192347_faJo.png)
项目模块依赖
![](http://static.oschina.net/uploads/img/201604/03192347_V6BA.png)
特别提醒:开发人员在开发的时候可以将自己的业务REST服务化或者Dubbo服务化
2. 项目依赖介绍
2.1 后台管理系统、Rest服务系统、Scheculer定时调度系统依赖如下图:
![](http://static.oschina.net/uploads/img/201604/03192347_CJd8.png)
2.2 Dubbo独立服务项目依赖如下图:
![](http://static.oschina.net/uploads/img/201604/03192347_znDq.png)
3. 项目功能部分截图:
![](http://static.oschina.net/uploads/img/201604/03192347_Vh5S.png)
![](http://static.oschina.net/uploads/img/201604/03192348_vDsN.png)
![](http://static.oschina.net/uploads/img/201604/03192348_h85R.png)
![](http://static.oschina.net/uploads/img/201604/03192348_jYS1.png)
![](http://static.oschina.net/uploads/img/201604/03192348_eYeO.png)
![](http://static.oschina.net/uploads/img/201604/03192348_1trD.png)
![](http://static.oschina.net/uploads/img/201604/03192348_fyhi.png)
zookeeper、dubbo服务启动
![](http://static.oschina.net/uploads/img/201604/03192348_NzA6.jpg)
![](http://static.oschina.net/uploads/img/201604/03192348_e4gk.png)
dubbo管控台
![](http://static.oschina.net/uploads/img/201604/03192348_xz84.png)
![](http://static.oschina.net/uploads/img/201604/03192348_Khjy.jpg)
![](http://static.oschina.net/uploads/img/201604/03192348_wCZ4.png)
![](http://static.oschina.net/uploads/img/201604/03192348_wCZ4.png)
![](http://static.oschina.net/uploads/img/201604/03192348_KurC.png)
![](http://static.oschina.net/uploads/img/201604/03192348_vYm8.png)
![](http://static.oschina.net/uploads/img/201604/03192348_tZN7.png)
REST服务平台
![](http://static.oschina.net/uploads/img/201604/03192348_cA9e.png)
![](http://static.oschina.net/uploads/img/201604/03192348_SHTb.png)
![](http://static.oschina.net/uploads/img/201604/03192348_xhD0.png)
Dubbo 服务提供者和服务消费者中的 spring 配置文件中增加以下配置
Dubbo 简易监控中心的配置解释(不需要修改,使用默认配置)
重新启动 dubbo-monitor 简易监控中心,此时就会看到以上 3 个目录会被创新,并在目 录里面有相应的服务接口调用的报表数据。
此时再进入 Dubbo 简易监控中心就能查看到对应的报表数据
Dubbo 监控中心的介绍与简易监控中心的安装
监控中心服务接口调用统计报表的显示配置1、 Dubbo 服务提供者和服务消费者中的 spring 配置文件中增加以下配置:
![](http://static.oschina.net/uploads/space/2016/0112/014111_usK9_2603356.png)
添加完以上配置后,重新构建部署 Dubbo 服务和服务消费者应用
2、 Dubbo 简易监控中心的配置解释(不需要修改,使用默认配置)
操作系统用户为 jeesmlsz,系统用户目录为/home/jeesml
dubbo-monitor 的安装目录为:/home/jeesml/dubbo-monitor
dubbo-monitor 的配置文件为:/home/jeesml/dubbo-monitor/conf/dubbo.properties
dubbo-monitor 的配置文件内容如下: dubbo.container=log4j,spring,registry,jetty
dubbo.application.name=simple-monitor
dubbo.application.owner=
dubbo.registry.address=zookeeper://xxx.xxx.xxx.xxx:2181
dubbo.protocol.port=7070
dubbo.jetty.port=8090
dubbo.jetty.directory=${user.home}/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=${user.home}/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN
看上面配置文件中标红的的 3 行内容,理解${user.home}这个变量的意思则可,${user.home} 指的就是启动 dubbo-monitor 程序的操作系统用户目录。我们这里用的是 jeesmlsz用户,那么 就是/home/jeesmlsz 目录(如果是 root 用户启动,那就是/root)。
此时,配置中 3 个目录的绝对路径为:
dubbo.jetty.directory=/home/jeesmlsz/monitor
dubbo.charts.directory=/home/jeesmlsz/monitor/charts
dubbo.statistics.directory=/home/jeesmlsz/monitor/statistics
3、 重新启动 dubbo-monitor 简易监控中心,此时就会看到以上 3 个目录会被创新,并在目 录里面有相应的服务接口调用的报表数据。
4、 此时再进入 Dubbo 简易监控中心就能查看到对应的报表数据
![](http://static.oschina.net/uploads/space/2016/0112/014751_cgut_2603356.png)
![](http://static.oschina.net/uploads/space/2016/0112/014940_yhaP_2603356.png)
请各位持续关注《跟我学习dubbo-消息中间件在分布式系统中的作用介绍(8)》
1. 项目核心代码结构截图
![](http://static.oschina.net/uploads/img/201604/03192347_faJo.png)
项目模块依赖
![](http://static.oschina.net/uploads/img/201604/03192347_V6BA.png)
特别提醒:开发人员在开发的时候可以将自己的业务REST服务化或者Dubbo服务化
2. 项目依赖介绍
2.1 后台管理系统、Rest服务系统、Scheculer定时调度系统依赖如下图:
![](http://static.oschina.net/uploads/img/201604/03192347_CJd8.png)
2.2 Dubbo独立服务项目依赖如下图:
![](http://static.oschina.net/uploads/img/201604/03192347_znDq.png)
3. 项目功能部分截图:
![](http://static.oschina.net/uploads/img/201604/03192347_Vh5S.png)
![](http://static.oschina.net/uploads/img/201604/03192348_vDsN.png)
![](http://static.oschina.net/uploads/img/201604/03192348_h85R.png)
![](http://static.oschina.net/uploads/img/201604/03192348_jYS1.png)
![](http://static.oschina.net/uploads/img/201604/03192348_eYeO.png)
![](http://static.oschina.net/uploads/img/201604/03192348_1trD.png)
![](http://static.oschina.net/uploads/img/201604/03192348_fyhi.png)
zookeeper、dubbo服务启动
![](http://static.oschina.net/uploads/img/201604/03192348_NzA6.jpg)
![](http://static.oschina.net/uploads/img/201604/03192348_e4gk.png)
dubbo管控台
![](http://static.oschina.net/uploads/img/201604/03192348_xz84.png)
![](http://static.oschina.net/uploads/img/201604/03192348_Khjy.jpg)
![](http://static.oschina.net/uploads/img/201604/03192348_wCZ4.png)
![](http://static.oschina.net/uploads/img/201604/03192348_wCZ4.png)
![](http://static.oschina.net/uploads/img/201604/03192348_KurC.png)
![](http://static.oschina.net/uploads/img/201604/03192348_vYm8.png)
![](http://static.oschina.net/uploads/img/201604/03192348_tZN7.png)
REST服务平台
![](http://static.oschina.net/uploads/img/201604/03192348_cA9e.png)
![](http://static.oschina.net/uploads/img/201604/03192348_SHTb.png)
![](http://static.oschina.net/uploads/img/201604/03192348_xhD0.png)
![](http://static.oschina.net/uploads/img/201604/03192348_aaKf.png)
相关文章推荐
- 分布式版本管理git入门指南使用资料汇总及文章推荐
- C#分布式事务的超时处理实例分析
- Erlang分布式节点中的注册进程使用实例
- Shell脚本实现自动安装zookeeper
- C++实现的分布式游戏服务端引擎KBEngine详解
- 基于Zookeeper的使用详解
- ASP.NET通过分布式Session提升性能
- Spring+Mybatis+Mysql搭建分布式数据库访问框架的方法
- 分享一个简单易用的RPC开源项目—Tatala
- 手把手教你配置Hbase完全分布式环境
- mesos + marathon + docker部署
- 基于zk的配置管理
- Glusterfs:趋于成熟的集群文件系统
- 关于glusterfs的directory-layout-spread参数
- tomcat集群扩展session集中管理,Memcached-session-manager...
- dubbo-2.5.4-SNAPSHOT 小bug处理。
- Redis集群快速搭建
- SolrCloud4.9+zookeeper在CentOS上的搭建与安装
- dubbo + spring + mybaits 的pom文件列一
- 基于外部ZooKeeper的GlusterFS作为分布式文件系统的完全分布式HBase集群安装指南