Skip to content

Commit 2248561

Browse files
authored
Update README.md
1 parent 0b6aacd commit 2248561

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
使用方创建http服务,库内置了一个handler,通过接口将handler绑定在使用方的http服务上,当需要查看时,库才会渲染。目标指标通过http的para参数可配,格式为[]=[指标],比如http://xx.com/watch?gateway=con_qps&auth=con_qps,注意指标要用别名
2525

26-
启用趋势图功能时,库会对所有指标保留600个点
26+
趋势图只保留指标最近的600个点,如果1秒1个点,那么可以监控最近10分钟的趋势,内存不用担心
2727
# 如何使用
2828
example目录是示例代码
2929
```
@@ -49,5 +49,7 @@ close_qpk=72/s, close_sum=215, TO=686464, WSOF=2059392, WSUP=1372928, conn_val=6
4949
5050
{"auth":{"qps":{"log":205616,"psf_qps":70,"pso":205616,"psw":205615},"sum":{"LOGIN":686465,"PSW":686464,"psf_sum":215}},"gateway":{"qps":{"close_qps":70,"to":205615,"wsof":616845,"wsup":411230},"qps_peak":{"close_qpk":71},"sum":{"TO":686464,"WSOF":2059392,"WSUP":1372928,"close_sum":215},"val":{"conn_val":686464}}}
5151
```
52+
趋势图样例
53+
5254

5355

0 commit comments

Comments
 (0)