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

timer中能否添加一分钟内出现错误的次数统计? #22

Open
joey-happy opened this issue Mar 29, 2019 · 10 comments
Open

timer中能否添加一分钟内出现错误的次数统计? #22

joey-happy opened this issue Mar 29, 2019 · 10 comments
Labels
question Further information is requested

Comments

@joey-happy
Copy link

timer中能否添加一分钟内出现错误的次数统计?
这样的话 我就只需要用一个timer 就可以统计出我所需要的数据了 统计错误次数的原因是 方便监控以及预警

@ralf0131
Copy link
Collaborator

用Compass就可以统计了,需要你自己埋点

@joey-happy
Copy link
Author

用Compass就可以统计了,需要你自己埋点

Compass统计的是累计次数 我的需求是想统计1分钟 5分钟内出现的错误次数

@ralf0131
Copy link
Collaborator

你看下代码,Compass内部也是用BucketCounter的,也是按照时间间隔统计的

@ralf0131 ralf0131 added the question Further information is requested label Mar 29, 2019
@joey-happy
Copy link
Author

你看下代码,Compass内部也是用BucketCounter的,也是按照时间间隔统计的

ScheduledReporter 我想起来了 这个类里没有实现打印compass这种类型的统计

@joey-happy
Copy link
Author

你看下代码,Compass内部也是用BucketCounter的,也是按照时间间隔统计的

ScheduledReporter 我想起来了 这个类里没有实现打印compass这种类型的统计

MetricManagerReporter 我需要用这个类去实现compass的打印吗?

@joey-happy
Copy link
Author

你看下代码,Compass内部也是用BucketCounter的,也是按照时间间隔统计的

我是继承 ScheduledReporter 然后复写report方法实现?我看了一下MetricManagerReporter这个类 他是收集到文件中??

@ralf0131
Copy link
Collaborator

ralf0131 commented Apr 1, 2019

这些功能都已经实现了,不需要你写代码

@joey-happy
Copy link
Author

这些功能都已经实现了,不需要你写代码

我具体用哪个类?看哪个测试用例

@joey-happy
Copy link
Author

这些功能都已经实现了,不需要你写代码

我想实现ScheduledReporter这个类的功能 用Compress具体参考哪个类?哪个测试用例啊?

@ralf0131
Copy link
Collaborator

ralf0131 commented Apr 1, 2019

See similar issue #9

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

No branches or pull requests

2 participants