Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

监控qps,Slf4jReporter如何上报metric? #26

Open
zhousiliang163 opened this issue Apr 4, 2019 · 5 comments
Open

监控qps,Slf4jReporter如何上报metric? #26

zhousiliang163 opened this issue Apr 4, 2019 · 5 comments

Comments

@zhousiliang163
Copy link
Contributor

目前Slf4jReporter 上报Counter是通过Counter.getCount()取值,这个值是从创建开始就一直累加的,
如果用Counter来统计qps,那上报的qps是错误的。
所以如果要监控qps,应该怎么使用?

@ralf0131
Copy link
Collaborator

ralf0131 commented Apr 4, 2019

阿里内部基本上都是采用拉的模式,所以这块应该还没有对接到Slf4jReporter ,你有这方面的需求?具体场景能描述一下吗

@zhousiliang163
Copy link
Contributor Author

zhousiliang163 commented Apr 4, 2019

阿里内部基本上都是采用拉的模式,所以这块应该还没有对接到Slf4jReporter ,你有这方面的需求?具体场景能描述一下吗

看wiki ,单机数据落盘的介绍,单机数据落盘模块指的是metircs-reporter模块吧?拉的模式是监控控制台通过dubbo-metrics 暴露的rest api去获取metric数据?

@ralf0131
Copy link
Collaborator

ralf0131 commented Apr 6, 2019

看wiki ,单机数据落盘的介绍,单机数据落盘模块指的是metircs-reporter模块吧?

是的,主要是文件(JSON)格式和二进制格式的落盘。

拉的模式是监控控制台通过dubbo-metrics 暴露的rest api去获取metric数据?

是的

@lprofession
Copy link

report这块,是否能支持把指标数据写到kafka,rocketMQ等?如果支持的话,是否有相关接入文档?

@ralf0131
Copy link
Collaborator

@lprofession 目前没有,需要自己实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants