Skip to content

wang-yun/cat2

 
 

Repository files navigation

CAT Build Status Coverage Status License

===

CAT(Central Application Tracking)是基于Java开发的分布式实时监控系统,主要包括应用监控、业务监控等。[2013-01-06]
CAT支持以下消息类型监控:
  • Transaction 适合记录跨越系统边界的程序访问行为,比如远程调用,数据库调用,也适合执行时间较长的业务逻辑监控,Transaction用来记录一段代码的执行时间和次数。
  • Event 用来记录一件事发生的次数,比如记录系统异常,它和transaction相比缺少了时间的统计,开销比transaction要小。
  • Heartbeat 表示程序内定期产生的统计信息, 如CPU%, MEM%, 连接池状态, 系统负载等。
  • Metric 用于记录业务指标、指标可能包含对一个指标记录次数、记录平均值、记录总和,业务指标最低统计粒度为1分钟。
  • Trace 用于记录基本的trace信息,类似于log4j的info信息,这些信息仅用于查看一些相关信息

消息树

CAT监控系统将每次用户请求(URL)、服务调用(Service)和数据库访问(SQL)等内部执行步骤封装成一个完整的消息树(由Transaction、Event、Heartbeat、Metric和Trace等消息组成),呈现出来,方便用户进行故障诊断和性能调优。

完整的消息树

Alt text 可视化消息树

Alt text

分布式消息树【一台机器调用另外一台机器】

Alt text

Requirements

  • Java 6+
  • Maven 3.2.1+
  • MySQL 5.6+

Quick Started

#####1、在CAT目录下,用maven构建项目 mvn clean install -DskipTests #####2、配置CAT的环境 mvn cat:install Note:

  • Linux\Mac 需要对/data/appdatas/cat和/data/applogs/cat有读写权限
  • Windows 则是对系统运行盘下的/data/appdatas/cat和/data/applogs/cat有读写权限

#####3、(Optional)如果安装了hadoop集群,需到/data/appdatas/cat/server.xml中配置对应hadoop信息。将localmode设置为false,默认情况下,CAT在开发模式(localmode=true)下工作。

#####4、运行CAT cd cat-home;mvn jetty:run 然后打开浏览器,输入http://localhost:2281/cat/。

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

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

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.

CAT接入公司

Alt textAlt textAlt textAlt text Alt textAlt textAlt textAlt textAlt text

更多接入公司,欢迎在dianping/cat#753登记

About

Central Application Tracking Version 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.5%
  • Java 25.2%
  • CSS 7.5%
  • FreeMarker 0.3%
  • Shell 0.2%
  • Python 0.1%
  • Other 0.2%