Open hxzqlh opened 7 years ago
使用过程中,我按照 README.md 的方法,部署好了 lua 模块。但遇到些问题,我的使用流程大致如下:
#!/bin/bash
while [ 1 == 1 ]; do curl http://localhost:9091/ >/dev/null 2>&1 sleep 1s curl http://localhost:9091/monitor/basic_status >/dev/null 2>&1 curl http://localhost:9091/monitor/nginx_status >/dev/null 2>&1 curl http://localhost:9091/hello >/dev/null 2>&1 sleep 1s done
2. 通过如下 bash 脚本来 push 搜集到的数据到 agent 接口(`http://127.0.0.1:1988/v1/push`)
while [ 1 == 1 ]; do python nginx_collect.py --service=hostname --format=falcon --falcon-addr=http://127.0.0.1:1988/v1/push >/dev/null 2>&1 sleep 2s done
hostname
3. 采集一段时间后,在 falcon 的 dashboard 浏览监控数据: ![](http://hxzqlh.qiniudn.com/enpoint.png) 我的几点疑问: 1. 由上述 1 脚本可以看出,每分钟访问 `/monitor/basic_status`、`/hello` 和 `/monitor/nginx_status` 接口至少有几十次,但在 dashboard 都显示每分钟 只1次?这明显跟 README.md 上截图的监控效果不一样。 2. 我的使用方式是否存在误区?如果有,请指正。
兄弟, 采集的时候,你用的是两秒采集一次哦, 这样的话, 看看 step是多少? 感觉跟这个有关系。
使用过程中,我按照 README.md 的方法,部署好了 lua 模块。但遇到些问题,我的使用流程大致如下:
while [ 1 == 1 ]; do curl http://localhost:9091/ >/dev/null 2>&1 sleep 1s curl http://localhost:9091/monitor/basic_status >/dev/null 2>&1 curl http://localhost:9091/monitor/nginx_status >/dev/null 2>&1 curl http://localhost:9091/hello >/dev/null 2>&1 sleep 1s done
!/bin/bash
while [ 1 == 1 ]; do python nginx_collect.py --service=
hostname
--format=falcon --falcon-addr=http://127.0.0.1:1988/v1/push >/dev/null 2>&1 sleep 2s done