tsar的使用

项目地址 https://github.com/alibaba/tsar 

安装 

$ git clone git://github.com/kongjian/tsar.git
$ cd tsar
$ make
# make install

或者

$ wget -O tsar.zip https://github.com/alibaba/tsar/archive/master.zip --no-check-certificate
$ unzip tsar.zip
$ cd tsar
$ make
# make install

命令:

  • null :see default mods history data, tsar
  • --modname :specify module to show, tsar --cpu
  • -L/--list :list available moudule, tsar -L
  • -l/--live :show real-time info, tsar -l --cpu
  • -i/--interval :set interval for report, tsar -i 1 --cpu
  • -s/--spec :specify module detail field, tsar --cpu -s sys,util
  • -D/--detail :do not conver data to K/M/G, tsar --mem -D
  • -m/--merge :merge multiply item to one, tsar --io -m
  • -I/--item :show spec item data, tsar --io -I sda
  • -d/--date :specify data, YYYYMMDD, or n means n days ago
  • -C/--check :show the last collect data
  • -h/--help :show help, tsar -h

https://github.com/alibaba/tsar/commit/eadcfc1b4b4d66216ccfa0b5a4107e1563e67874

https://github.com/alibaba/tsar/blob/master/README.md

原文地址:https://www.cnblogs.com/kevin443/p/6762041.html