分为三个模块:
- 日志读取器
- 日志处理器
- 数据写入数据库
监控某个协议下的某个请求在某个请求方法的QPS&响应时间&流量
直接使用brew install influxdb
安装在本地。
安装完成之后启动数据库
influxd
启动完成之后连接influxdb,创建相应的数据库
influx -precision rfc3339C
使用 brew install grafana
下载软件
启动软件
brew services start grafana
启动后在浏览器登录 localhost:3000
就可以进入到操作面板。选择数据库源读取其中的数据。下面是展示
- 总处理日志行数
- 系统吐出量
- read channel 长度
- write channel 长度
- 运行总时长
- 错误数