Coder Social home page Coder Social logo

qiushenglu / cat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dianping/cat

0.0 2.0 0.0 83.24 MB

Central Application Tracking

License: Apache License 2.0

Java 20.96% HTML 0.06% JavaScript 70.49% FreeMarker 0.34% CSS 7.92% Groff 0.01% Shell 0.16% C 0.06% Python 0.02%

cat's Introduction

CAT Build Status

===

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

  • Java 6或者7 (1.7_79 以下,以上版本jdk会出现不兼容,不支持java1.8)
  • Maven 3
  • MySQL

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、可以参考script目录下详细资料

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#753登记

cat's People

Contributors

youyong205 avatar jialinsun avatar qmwu2000 avatar leonindy avatar ainilife avatar hangchow avatar yangyanchun avatar sunryuan avatar atell avatar gaocogn avatar atellwu avatar chinaboard avatar summerpotato avatar wangyapu avatar lixt avatar zengwei0771 avatar figoyang avatar feiyuyitiao avatar blackscai avatar duran-zhu avatar gejun123456 avatar kikanjuu avatar lanffy avatar hupengfoot avatar

Watchers

James Cloos avatar luqiusheng 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.