Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
majinkai committed Jul 7, 2015
1 parent 8cef9fb commit d91644d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,49 @@
# Dubbo Monitor

## 项目介绍

![Dubbo monitor screenshot](https://github.com/handuyishe/dubbo-monitor/wiki/images/screenshot.png)

Dubbo Monitor是针对Dubbo开发的监控系统,基于dubbo-monitor-simple改进而成,可以理解为其演化版本。该系统用数据库记录日志的方式替代了dubbo-monitor-simple写文件的方式。

> PS: 项目目前依赖的是dubbox的2.8.4版本,但是dubbox并没有修改过监控相关的代码,因此理论上也可以支持dubbo的最新版本。
## 升级日志

>### 2015-07-06
> 1. 发布版本1.0.0。
>
> 1. 发布版本1.0.0
## Dubbo Monitor使用帮助

### Dubbo-Monitor配置介绍
第一步:创建数据库

`第一步`:创建数据库
首先创建名称为monitor数据库,编码格式UTF-8。然后将项目sql文件夹下面的create.sql导入到数据库,生成dubbo_invoke表代表成功导入。

第二步:编辑项目中application.properties,配置如下:
`第二步`:编辑项目中application.properties,配置如下:

```
####Dubbo Settings
dubbo.application.name=dubbo-monitor
dubbo.application.owner=handu.com
dubbo.registry.address=zookeeper://172.16.1.178:2181
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.port=6060
####Database Settings
db.url=jdbc:mysql://172.16.1.85:3306/monitor?prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8
db.url=jdbc:mysql://<database_host>:<database_port>/monitor?prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8
db.username=root
db.password=root
db.maxActive=500
```

第三步:打包运行项目
`第三步`:打包运行项目
执行maven命令:mvn clean package
target文件夹下生成的dubbo-monitor.war即为项目部署文件,将其放置到对应服务器目录下,启动服务器即可。例如:tomcat的webapps文件夹下。

第四步:访问项目
启动web服务器后,访问地址:http://IP:[host]/dubbo-moniotor
`第四步`:访问项目
启动web服务器后,访问地址:http://IP:[port]/dubbo-moniotor

## 服务提供端配置

[Dubbo服务提供端监控配置](http://dubbo.io/User+Guide-zh.htm#UserGuide-zh-%3Cdubbo%3Amonitor%2F%3E)
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<zookeeper.version>3.4.6</zookeeper.version>
<zkclient.version>0.1</zkclient.version>
<curator.version>2.5.0</curator.version>
<servlet.version>3.0.1</servlet.version>
<servlet.version>2.5</servlet.version>
<jetbrick-template.version>2.0.10</jetbrick-template.version>
<mybatis.version>3.2.7</mybatis.version>
<mybatis-spring.version>1.2.2</mybatis-spring.version>
Expand Down Expand Up @@ -222,7 +222,7 @@
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<artifactId>servlet-api</artifactId>
<version>${servlet.version}</version>
<scope>provided</scope>
</dependency>
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
dubbo.application.name=dubbo-monitor
dubbo.application.owner= handu.com
dubbo.registry.address=zookeeper://172.16.1.178:2181
dubbo.application.owner=
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.port=6060

# Database Settings
db.url=jdbc:mysql://172.16.1.85:3306/monitor?prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8
db.url=jdbc:mysql://127.0.0.1:3306/monitor?prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8
db.username=root
db.password=root
db.maxActive=500

0 comments on commit d91644d

Please sign in to comment.