实时应用监控平台CAT 部署

CAT(Central Application Tracking)是基于Java开发的实时应用监控平台,为大众点评网提供了全面的监控服务和决策支持。
CAT作为大众点评网基础监控组件,它已经在中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等)中得到广泛应用,为点评各业务线提供系统的性能指标、健康状况、基础告警等。

地址:https://github.com/dianping/cat
require: JAVA6 
              Maven 3
              Mysql

1.安装jdk,maven(操作系统CentOS release 6.5)
[email protected]:~#  yum install jdk1.8.0_40.x86_64  
[email protected]:~#wget http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-3.2.1-bin.tar.gz
[email protected]:apache-maven# pwd
/usr/local/apache-maven
[email protected]:apache-maven# tar xf apache-maven-3.2.1-bin.tar.gz
[email protected]:apache-maven-3.2.1# ll
total 40
drwxr-xr-x 2 root root  4096 Apr 23 17:20 bin
drwxr-xr-x 2 root root  4096 Apr 23 17:20 boot
drwxr-xr-x 3 root root  4096 Feb 15  2014 conf
drwxr-xr-x 3 root root  4096 Apr 23 17:20 lib
-rw-r--r-- 1 root root 14865 Feb 15  2014 LICENSE
-rw-r--r-- 1 root root   182 Feb 15  2014 NOTICE
-rw-r--r-- 1 root root  2513 Feb 15  2014 README.txt
[email protected]:apache-maven-3.2.1# pwd
/usr/local/apache-maven/apache-maven-3.2.1


2.环境变量配置
[email protected]:apache-maven-3.2.1# cat /etc/profile
...
export M2_HOME=/usr/local/apache-maven/apache-maven-3.2.1
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

[email protected]:apache-maven-3.2.1# source /etc/profile


3 测试
[email protected]:~# java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)


[email protected]:~# mvn -v
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-15T01:37:52+08:00)
Maven home: /usr/local/apache-maven/apache-maven-3.2.1
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_40/jre Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: "unix"


4 Clone CAT

[email protected]:opt# git clone [email protected]:dianping/cat.git


5 在CAT目录下,用maven构建项目
[email protected]:cat# pwd
/opt/cat
[email protected]:cat# mvn clean install -DskipTests


6 配置CAT的环境
[email protected]:cat# mav cat:install
注意 需要对/data/appdatas/cat和/data/applogs/cat有读写权限


7 运行CAT

[email protected]:cat-home# pwd
/opt/cat/cat-home
[email protected]:cat-home#nohup mvn jetty:run &


打开浏览器,输入http://172.16.221.1:2281/cat/。

或者在cat目录下输入 mvn eclipse:clean eclipse:eclipse 然后将项目导入到eclipse中,运行cat-home项目里得‘com.dianping.cat.TestServer’来启动CAT.


实时应用监控平台CAT 部署_第1张图片





你可能感兴趣的:(实时应用监控平台CAT 部署)