README.md 2.2 KB
Newer Older
A
ainilife 已提交
1
CAT [![Build Status](https://travis-ci.org/dianping/cat.png?branch=biz)](https://travis-ci.org/dianping/cat)
F
Frankie Wu 已提交
2
===
A
ainilife 已提交
3 4 5
CAT的全称是Central Application Tracking,是基于Java开发的实时应用监控平台,包括实时系统监控、应用监控以及业务监控。
CAT主要通过以下几种埋点类型收集信息:
* Event	用来记录次数,表名单位时间内消息发生次数,比如记录系统异常,它和transaction相比缺少了时间的统计,开销比transaction要小。
A
ainilife 已提交
6 7
* Transaction	适合记录跨越系统边界的程序访问行为,比如远程调用,数据库调用,也适合执行时间较长的业务逻辑监控。
* Heartbeat	表示程序内定期产生的统计信息, 如CHPU%, MEM%, 连接池状态, 系统负载等。
A
ainilife 已提交
8 9 10 11 12 13
* Metric	用于业务监控埋点的API。


Requirements
---------------------
* Java 6
A
ainilife 已提交
14
* Maven 3
A
ainilife 已提交
15
* MySQL
Y
yong.you 已提交
16

A
ainilife 已提交
17 18
Quick Started
---------------------
A
ainilife 已提交
19 20
#####1、在CAT目录下,用maven构建项目
        mvn clean install
A
ainilife 已提交
21
#####2、配置CAT的环境
A
ainilife 已提交
22
		mvn cat:install
A
ainilife 已提交
23
Note:需要对/data/appdatas/cat和/data/applogs/cat有读写权限
A
ainilife 已提交
24
#####3、(Optional)如果安装了hadoop集群,需到/data/appdatas/cat/server.xml中配置对应hadoop信息。将localmode设置为false,默认情况下,CAT在开发模式(localmode=true)下工作。
A
ainilife 已提交
25
#####4、运行CAT
A
ainilife 已提交
26
		cd cat-home;mvn jetty:run
A
ainilife 已提交
27
然后打开浏览器,输入http://localhost:2281/cat。
A
ainilife 已提交
28 29 30 31 32

或者在cat目录下输入
				
		mvn eclipse:clean eclipse:eclipse
然后将项目导入到eclipse中,运行cat-home项目里得‘com.dianping.cat.TestServer’来启动CAT。
A
ainilife 已提交
33 34 35 36 37 38 39 40 41

Copyright and license
---------------------
Copyright 2013 DianPing, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

<http://www.apache.org/licenses/LICENSE-2.0>

H
Hao Zhu 已提交
42
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.