合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
[TOC] > [github](https://github.com/hengyoush/kyanos) > [中文文档](https://kyanos.io/cn/watch.html) ## 概述 ## 示例 ### hello-world ``` ./kyanos watch ``` ![](https://img.kancloud.cn/e5/16/e51616e2491f06398dc8f5ef0510918b_785x214.png) ![](https://img.kancloud.cn/e8/db/e8db333fb6a0a62ad194a9868df1e1d2_908x634.png) ## watch http ``` ./kyanos watch http ``` 只抓某个路径 ``` ./kyanos watch http --path /abc ``` ### stat ``` ./kyanos stat --metric total-time --group-by remote-ip ``` 指定 metric 选项为 total-time 代表我们需要统计的指标是请求响应的总耗时,指定 group-by 选项为 remote-ip ,代表我们需要观察的响应时间是每个 remote-ip 的响应时间,kyanos 会将所有相同 remote-ip 的请求响应聚合,最终得出每个 remote-ip 的总耗时的相关指标。