Skip to content
New issue

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

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

Already on GitHub? # to your account

mbvar如何清空所有的lable #2404

Closed
qqwangxiaow opened this issue Oct 8, 2023 · 5 comments
Closed

mbvar如何清空所有的lable #2404

qqwangxiaow opened this issue Oct 8, 2023 · 5 comments

Comments

@qqwangxiaow
Copy link
Contributor

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)

Describe the solution you'd like (描述你期望的解决方法)

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

我定义了一个mbvar, 不断向里面添加数据, 一段时间窗口内想统计一次并清空, 目前有啥好点的方法吗
bvar::MultiDimension<bvar::Adder > g_request_count("request_count", {"idc", "method", "status"});

@serverglen
Copy link
Contributor

MultiDimension类里面有一个delete_stats方法,不过目前是private的。

@qqwangxiaow
Copy link
Contributor Author

看着得把bvar直接干掉替换一个了

@serverglen
Copy link
Contributor

看着得把bvar直接干掉替换一个了

刚提了个PR,增加一个clear_stats方法 #2407

@serverglen
Copy link
Contributor

看着得把bvar直接干掉替换一个了

#2407 已合入

@qqwangxiaow
Copy link
Contributor Author

感谢!

看着得把bvar直接干掉替换一个了

#2407 已合入

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

No branches or pull requests

2 participants