1. The following configuration is added to the spring configuration file in the Dubbo service provider and service consumer :
<!-- Monitoring Center Configuration --
<!-- Monitoring Center protocol, if protocol= "registry", indicates that the monitoring center address is found from the registry, otherwise direct-connect Monitoring Center -
<!-- Direct Connect Monitoring Center server address such as: address= "192.168.3.71:7070"--
< Dubbo:monitor Protocol="Registry"/>
The configuration is as follows:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/81/FB/wKiom1dGpqiRAGUfAAE1hTN65WI489.png "title=" A.png " alt= "Wkiom1dgpqiragufaae1htn65wi489.png"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/81/FB/wKiom1dGpsnT605CAAESbnygSms580.png "title=" B.png " alt= "Wkiom1dgpsnt605caaesbnygsms580.png"/>
After you add the above configuration, rebuild the deployment Dubbo Service and service consumer applications.
2, Dubbo Simple Monitoring Center configuration explanation (do not need to modify, using the default configuration)
operating system User is WUSC, System user Directory is /home/wusc
the installation directory for Dubbo-monitor is:/home/wusc/dubbo-monitor
the configuration file for Dubbo-monitor is:/home/wusc/dubbo-monitor/conf/dubbo.properties
the contents of the Dubbo-monitor configuration file are as follows:
Dubbo.container=log4j,spring,registry,jetty
Dubbo.application.name=simple-monitor
Dubbo.application.owner=
dubbo.registry.address=zookeeper://192.168.3.71: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
look at the above configuration file Red 3 lines of content, understand ${user.home} this variable meaning,${user.home} refers to the start Dubbo-monitor The operating system user directory for the program. We use the wusc user here , then is the/HOME/WUSC directory (if the root user is started, that is /root).
at this point, the absolute path to the 3 directories in the configuration is:
dubbo.jetty.directory= /home/wusc/monitor
dubbo.charts.directory= /home/wusc/monitor/charts
dubbo.statistics.directory= /home/wusc/monitor/statistics
3, restart the Dubbo-monitor Simple Monitoring Center, this time you will see the above 3 directories will be innovative, and in the directory has the corresponding service interface calls the report data.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/81/FA/wKioL1dGp8-wg5NPAACgoiAEQNQ442.png "title=" C.png " alt= "Wkiol1dgp8-wg5npaacgoiaeqnq442.png"/>
4, at this time again into the Dubbo Simple Monitoring Center can see the corresponding report data
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/81/FB/wKiom1dGpuiA5UPTAADF_mnK8Es501.png "title=" D.png " alt= "Wkiom1dgpuia5uptaadf_mnk8es501.png"/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/81/FB/wKiom1dGpvmTtf5KAADqr3aOMdk039.png "title=" E.png " alt= "Wkiom1dgpvmttf5kaadqr3aomdk039.png"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/81/FA/wKioL1dGqAuh8xxHAAOnxBfq4oM044.png "title=" F.png " alt= "Wkiol1dgqauh8xxhaaonxbfq4om044.png"/>
This article is from the "11642765" blog, please be sure to keep this source http://11652765.blog.51cto.com/11642765/1783486
Introduction of Dubbo Monitoring Center and installation of simple monitoring Center