1 / 10

TSAR 介绍

TSAR 介绍. 空 见 2013.7. 大纲. 来源和历史 架构介绍 功能和使用 自定义模块开发 其它. 来源和历史. V1 - 2009 采集一些系统信息, cpu / mem /load 功能简单,不能扩展 V2 - 2010 重构代码,模块化,可以扩展 支持多种输出, nagios , mysql 增加实时和监控等功能 开源 - 2011/5/24 第三方模块数目达到 20+,nginx/squid 基础软件,部署 10w+ ,监控和报警使用. 架构介绍. 定期采集统计数据,保存到本地 根据配置和命令行参数,执行不同输出和功能.

ringo
Download Presentation

TSAR 介绍

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TSAR介绍 空见 2013.7

  2. 大纲 • 来源和历史 • 架构介绍 • 功能和使用 • 自定义模块开发 • 其它

  3. 来源和历史 • V1 -2009 • 采集一些系统信息,cpu/mem/load • 功能简单,不能扩展 • V2-2010 • 重构代码,模块化,可以扩展 • 支持多种输出,nagios,mysql • 增加实时和监控等功能 • 开源 -2011/5/24 • 第三方模块数目达到20+,nginx/squid • 基础软件,部署10w+,监控和报警使用

  4. 架构介绍 定期采集统计数据,保存到本地 根据配置和命令行参数,执行不同输出和功能 …… 系统和应用模块 Tsar主框架 CPU Mem nginx 配置解析 存储 显示 数据采集 文件 历史展现 数据输出 DB 报警展现 报警功能 nagios 实时展现

  5. 功能和使用 • 配置文件 • /etc/tsar/tsar.conf,支持include • 指定模块 • Mod_cpu on parameter • 输出指定 • Output_stdio/db_mod • 报警相关 • nagios服务器地址,阈值等 • threshold cpu.util;40;40;80;80;

  6. 功能和使用 • 查看历史 • 查看指定模块和时间的运行信息 --mod • 实时状况 • 秒级别监控实时运--live • 监控 • 输出最近一次的采集信息 --check • 多种输出 • 其它 • 指定模块,间隔,日期,字段,合并多item

  7. 使用(例子)

  8. 自定义模块 • 模块开发 • 采集自定义的数据,利用tsar的基本功能 • 基本要素 • 需要采集的字段以及属性 • 如何采集?采集函数,字段之间特定分割 • 如何展现?数据处理函数,也可使用tsar默认的一些,如inter/sub/null • 模块注册register_mod_fileds • 动态加载,直接发布so文件 • 配置tsar,无需其它操作

  9. 其它 • 后续 • 增加更多模块 • 增加更多数据使用途径 • 完善框架处理 • Github地址 • https://github.com/alibaba/tsar • 联系 • Kongjian@taobao.com • 旺旺:空见

  10. Thank you Q&A section

More Related