{"id":13452737,"url":"https://github.com/dianping/cat","last_synced_at":"2025-05-12T22:36:00.682Z","repository":{"id":5796269,"uuid":"7010724","full_name":"dianping/cat","owner":"dianping","description":"CAT 作为服务端项目基础组件，提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端，已经在美团点评的基础架构中间件框架（MVC框架，RPC框架，数据库框架，缓存框架等，消息队列，配置系统等）深度集成，为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。","archived":false,"fork":false,"pushed_at":"2025-01-04T10:23:47.000Z","size":114117,"stargazers_count":18846,"open_issues_count":202,"forks_count":5430,"subscribers_count":1118,"default_branch":"master","last_synced_at":"2025-04-27T23:57:17.795Z","etag":null,"topics":["apm","distributed","java","metrics","monitoring","realtime","tracing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"groupby/quickstart-java","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dianping.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-12-05T02:31:48.000Z","updated_at":"2025-04-27T16:00:39.000Z","dependencies_parsed_at":"2023-01-13T16:23:26.091Z","dependency_job_id":"86146a9e-b408-4bc9-b698-c314088fea3a","html_url":"https://github.com/dianping/cat","commit_stats":{"total_commits":5492,"total_committers":129,"mean_commits":42.57364341085271,"dds":0.6560451565914056,"last_synced_commit":"c667b7a03b3f456373647ba526bfa61e44a6b79c"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dianping%2Fcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dianping%2Fcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dianping%2Fcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dianping%2Fcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dianping","download_url":"https://codeload.github.com/dianping/cat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531860,"owners_count":21763290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apm","distributed","java","metrics","monitoring","realtime","tracing"],"created_at":"2024-07-31T08:00:21.746Z","updated_at":"2025-05-05T16:15:06.584Z","avatar_url":"https://github.com/dianping.png","language":"Java","readme":"\u003cimg src=\"https://github.com/dianping/cat/raw/master/cat-home/src/main/webapp/images/logo/cat_logo03.png\" width=\"50%\"\u003e\n\n**CAT**\n==========\n[![GitHub stars](https://img.shields.io/github/stars/dianping/cat.svg?style=flat-square\u0026label=Star\u0026)](https://github.com/dianping/cat/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/dianping/cat.svg?style=flat-square\u0026label=Fork\u0026)](https://github.com/dianping/cat/fork)\n![Maven Central](https://img.shields.io/maven-central/v/org.unidal.framework/dal-jdbc)\n![License](https://img.shields.io/github/license/dianping/cat.svg)\n[![Build](https://github.com/dianping/cat/actions/workflows/build.yml/badge.svg)](https://github.com/dianping/cat/actions/workflows/build.yml)\n\n### CAT 简介 \n\n- CAT 是基于 Java 开发的实时应用监控平台，为美团点评提供了全面的实时监控告警服务。\n- CAT 作为服务端项目基础组件，提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端，已经在美团点评的基础架构中间件框架（MVC框架，RPC框架，数据库框架，缓存框架等，消息队列，配置系统等）深度集成，为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。\n- CAT 很大的优势是它是一个实时系统，CAT 大部分系统是分钟级统计，但是从数据生成到服务端处理结束是秒级别，秒级定义是48分钟40秒，基本上看到48分钟38秒数据，整体报表的统计粒度是分钟级；第二个优势，监控数据是全量统计，客户端预计算；链路数据是采样计算。\n\n### Cat 产品价值\n\n- 减少故障发现时间\n- 降低故障定位成本\n- 辅助应用程序优化\n\n### Cat 优势\n\n- 实时处理：信息的价值会随时间锐减，尤其是事故处理过程中\n- 全量数据：全量采集指标数据，便于深度分析故障案例\n- 高可用：故障的还原与问题定位，需要高可用监控来支撑\n- 故障容忍：故障不影响业务正常运转、对业务透明\n- 高吞吐：海量监控数据的收集，需要高吞吐能力做保证\n- 可扩展：支持分布式、跨 IDC 部署，横向扩展的监控系统\n\n\u003e 由于仓库的git历史记录众多，对于不关注历史，只关注最新版本或者基于最新版本贡献的新用户，可以在第一次克隆代码时增加--depth=1参数以加快下载速度，如\n```bash\ngit clone --depth=1 https://github.com/dianping/cat.git\n```\n\n### 更新日志\n\n- [**最新版本特性一览**](https://github.com/dianping/cat/wiki/new)\n\n    - 注意cat的3.0代码分支更新都发布在master上，包括最新文档也都是这个分支\n    - 注意文档请用最新master里面的代码文档作为标准，一些开源网站上面一些老版本的一些配置包括数据库等可能遇到不兼容情况，请以master代码为准，这份文档都是美团点评内部同学为这个版本统一整理汇总。内部同学已经核对，包括也验证过，如果遇到一些看不懂，或者模糊的地方，欢迎提交PR。\n    - 多语言客户端：Java、C/C++、Node.js、Python、Go [传送门](https://github.com/dianping/cat/tree/master/lib)\n        \n        * [**Java**](https://github.com/dianping/cat/blob/master/lib/java)\n        * [**C**](https://github.com/dianping/cat/blob/master/lib/c)\n        * [**C++**](https://github.com/dianping/cat/blob/master/lib/cpp)\n        * [**Python**](https://github.com/dianping/cat/blob/master/lib/python)\n        * [**Go**](https://github.com/dianping/cat/blob/master/lib/go)\n        * [**Node.js**](https://github.com/dianping/cat/blob/master/lib/node.js)\n        \n    - 消息采样聚合\n    - 序列化协议升级\n    - 全新文件存储引擎\n   \n\n### 监控模型：\n\n支持 Transaction、Event、Heartbeat、Metric 四种消息模型。 [**模型设计**](https://github.com/dianping/cat/wiki/model)\n\n### 模块简介\n\n#### 功能模块\n\n- cat-client: 客户端，上报监控数据\n- cat-consumer: 服务端，收集监控数据进行统计分析，构建丰富的统计报表\n- cat-alarm: 实时告警，提供报表指标的监控告警\n- cat-hadoop: 数据存储，logview 存储至 Hdfs\n- cat-home: 管理端，报表展示、配置管理等\n\n\u003e 1. 根目录下 cat-client 模块以后不再维护，下个大版本更新计划移除。新版Java客户端参考：lib/java\n\u003e 2. 管理端、服务端、告警服务均使用 cat-home 模块部署即可\n\n#### 其他模块\n\n- integration：cat和一些第三方工具集成的内容（此部分一部分是由社区贡献，一部分官方贡献）\n- lib：CAT 的客户端，包括 Java、C/C++、Python、Node.js、Go\n- script：CAT 数据库脚本\n\n### Quick Start\n\n- [部署FAQ](https://github.com/dianping/cat/wiki/cat_faq)\n\n#### 服务端\n\n- [集群部署](https://github.com/dianping/cat/wiki/readme_server)\n- [报表介绍](https://github.com/dianping/cat/wiki/readme_report)\n- [配置手册](https://github.com/dianping/cat/wiki/readme_config)\n\n### 项目设计\n\n- [项目架构](https://github.com/dianping/cat/wiki/overall)\n- [客户端设计](https://github.com/dianping/cat/wiki/client)\n- [服务端设计](https://github.com/dianping/cat/wiki/server)\n- [模型设计](https://github.com/dianping/cat/wiki/model)\n\n### Copyright and License\n\n[Apache 2.0 License.](/LICENSE)\n\n### CAT 接入公司\n\n![Alt text](cat-home/src/main/webapp/images/logo/companys.png)\n\n更多接入公司，欢迎在 \u003chttps://github.com/dianping/cat/issues/753\u003e 登记\n\n### 联系我们\n\n我们需要知道你对Cat的一些看法以及建议：\n\n- [**Issues**](https://github.com/dianping/cat/issues)\n\n### Starred 趋势\n\n[![Star History Chart](https://api.star-history.com/svg?repos=dianping/cat\u0026type=Date)](https://star-history.com/#dianping/cat\u0026Date)\n","funding_links":[],"categories":["JavaScript","Java","APM","Software/System","Java 程序设计","应用分析与监控","中间件","Monitor","dianping/cat"],"sub_categories":["康威定律","Develop","网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdianping%2Fcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdianping%2Fcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdianping%2Fcat/lists"}