天天看點

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共享磁盤。

繼續閱讀