Merge pull request #16 from zr-hebo/realtime-qps

Realtime qps
This commit is contained in:
河伯
2020-02-13 15:09:21 +08:00
committed by GitHub
5 changed files with 115 additions and 18 deletions

View File

@@ -21,3 +21,8 @@ curl 'http://127.0.0.1:8088/get_config?config_name=capture_packet_rate'
curl -XPOST -d'{"config_name":"capture_packet_rate","value":0.01}' 'http://127.0.0.1:8088/set_config?config_name=capture_packet_rate'
```
#### Get QPS
为了调整抓包率sniffer提供了实时查询qps的功能
```
curl 'http://127.0.0.1:8088/get_config?config_name=qps'
```