Update README.md

This commit is contained in:
河伯 2019-10-11 17:47:27 +08:00 committed by GitHub
parent 7d65a7b424
commit 99bb01e791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,9 +21,9 @@ sniffer-agent采用模块化结构支持用户添加自己的解析模块
目前输出的内容都是解析结果组成的json。
MySQL协议的解析结果示例如下
```
{"cip":"192.168.XXX.XXX","cport":63888,"sip":"192.168.XX.XX","sport":3306,"user":"root","db":"sniffer","sql":"show tables","bt":"1566545734147","cms":15}
{"cip":"192.168.XXX.XXX","cport":63888,"sip":"192.168.XX.XX","sport":3306,"user":"root","db":"sniffer","sql":"show tables","cpr":1.0,"bt":"1566545734147","cms":15}
```
其中cip代表客户端ipcport代表客户端port(客户端ipport组成session标识)sip代表server ipsport代表server portuser代表查询用户db代表当前连接的库名sql代表查询语句bt代表查询开始时间戳cms代表查询消耗的时间单位是毫秒
其中cip代表客户端ipcport代表客户端port(客户端ipport组成session标识)sip代表server ipsport代表server portuser代表查询用户db代表当前连接的库名sql代表查询语句cpr代表抓报率为了减少对线上系统的影响降低采集率bt代表查询开始时间戳cms代表查询消耗的时间单位是毫秒
### Exporter