tsar之檢視收集應用nginx資訊
Modules Enabled:
--nginx nginx statistics
--dev_traf Net traffic statistics for dev_volume
--nginx_code nginx httpcode
--nginx_domain nginx domain statistics
--live/-l running print live mode, which module will print
--interval/-i specify intervals numbers, in minutes if with --live, it is in seconds
$ tsar --nginx -l -i 2
Time ----------------------------------------------nginx---------------------------------------------
Time accept handle reqs active read write wait qps rt sslqps spdyps sslhst
16/08/18-15:15:08 3.00 3.00 3.00 1.00 0.00 1.00 0.00 1.50 0.33 0.00 0.00 0.00
16/08/18-15:15:10 3.00 3.00 3.00 1.00 0.00 1.00 0.00 1.50 0.67 0.00 0.00 0.00
$ tsar --nginx_code -l -i 2
Time ----------------------------------------------------nginx_code--------------------------------------------------
Time 200 206 302 304 403 404 416 499 500 502 503 504 508 dother
16/08/18-15:11:36 1.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16/08/18-15:11:38 1.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16/08/18-15:11:40 1.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
$ tsar --nginx_domain -l -i 2
Time ----------------------------------:80-----------------------------------
Time cps qps 2XX 3XX 4XX 5XX rt uprt upret
16/08/18-15:12:09 1.50 1.50 1.50 0.00 0.00 0.00 0.00 0.00 0.00
16/08/18-15:12:11 1.50 1.50 1.50 0.00 0.00 0.00 0.67 1.00 0.00
16/08/18-15:12:13 1.50 1.50 1.50 0.00 0.00 0.00 0.33 0.50 0.00
references: