Giter Site home page Giter Site logo

linghushaoxia / cat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dianping/cat

0.0 2.0 0.0 87.73 MB

Central Application Tracking

License: Apache License 2.0

Java 21.95% HTML 0.06% JavaScript 69.25% FreeMarker 0.34% CSS 8.04% Roff 0.01% Shell 0.17% C 0.06% Python 0.09% Scala 0.05%

cat's Introduction

CAT Build Status GitHub stars GitHub forks

===

Join the chat at https://gitter.im/dianping/cat

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

消息树

CAT监控系统将每次URL、Service的请求内部执行情况都封装为一个完整的消息树、消息树可能包括Transaction、Event、Heartbeat、Metric和Trace信息。

完整的消息树

Alt text 可视化消息树

Alt text

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

Alt text

Requirements

  • Linux 2.6以及之上(2.6内核才可以支持epoll),Mac以及Windows环境可以作为开发环境
  • Java 6,7,8
  • Maven 3.2.3+
  • MySQL 5.6

我司的环境配置如下

Distributor ID:	CentOS
Description:	CentOS release 6.5 (Final)
Release:	6.5
Codename:	Final

Server version: Apache Tomcat/8.0.30
Server built:   Dec 1 2015 22:30:46 UTC
Server number:  8.0.30.0
OS Name:        Linux
OS Version:     2.6.32-431.el6.x86_64
Architecture:   amd64
JVM Version:    1.8.0_111-b14
JVM Vendor:     Oracle Corporation

Maven 3.3.3

Mysql 5.6

Quick Started

1、在CAT目录下,用maven构建项目
    mvn clean install -DskipTests
    
    如果下载有问题,可以尝试翻墙后下载,可以 git clone [email protected]:dianping/cat.git mvn-repo 下载到本地,这个分支是cat编译需要的依赖的一些jar ,将这些jar放入本地的maven仓库文件夹中。
2、配置CAT的环境
mvn cat:install

Note:

  • Linux\Mac 需要对/data/appdatas/cat和/data/applogs/cat有读写权限
  • Windows 则是对系统运行盘下的/data/appdatas/cat和/data/applogs/cat有读写权限,如果cat服务运行在e盘的tomcat中,则需要对e:/data/appdatas/cat和e:/data/applogs/cat有读写权限
  •   此步骤是配置一些cat启动需要的基本数据库配置
    
3、(Optional)如果安装了hadoop集群,需到/data/appdatas/cat/server.xml中配置对应hadoop信息。将localmode设置为false,默认情况下,CAT在开发模式(localmode=true)下工作。
4、启动的cat单机版本基本步骤
5、遇到jar不能下载的情况
  • cat jar在cat的mvn-repo分支下,可以download到本地,再copy至本地的仓库目录
  • git clone https://github.com/dianping/cat.git
  • cd cat
  • git checkout mvn-repo
  • cp -R * ~/.m2/repository
6、导入eclipse发现找不到类
  • 请先执行mvn eclipse:eclipse 会自动生成相关的类文件
  • 作为普通项目导入eclipse,不要用作为maven项目导入eclipse
7、可以参考script目录下详细资料

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官网 http://unidal.org/ 的建设。

CAT接入公司

Alt textAlt textAlt textAlt text Alt textAlt textAlt textAlt textAlt text

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

cat's People

Contributors

ainilife avatar armysheng avatar atell avatar atellwu avatar blackscai avatar bryant1410 avatar chinaboard avatar dangerous1990 avatar endprocess avatar feiyuyitiao avatar figoyang avatar gaocogn avatar gejun123456 avatar gitter-badger avatar hangchow avatar jialinsun avatar jxxiangwen avatar leonindy avatar lixt avatar qmwu2000 avatar summerpotato avatar sunmit avatar sunryuan avatar wangyapu avatar wutongdeath avatar xuyanhua avatar yangyanchun avatar youyong205 avatar zengwei0771 avatar zhuhuogeng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.