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

希望支持按指定字段进行分组Count功能 #29

Closed
likaijames opened this issue Dec 11, 2020 · 4 comments
Closed

希望支持按指定字段进行分组Count功能 #29

likaijames opened this issue Dec 11, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@likaijames
Copy link

现在监控的数据配置里,聚合类型指定为count时,就无法再指定聚合字段。(指定其他聚合类型时,就可以指定聚合字段)。
无法满足一次监控多个动态桶的聚合指标是否异常的需求。

希望修改一下,允许按指定聚合字段进行分组count,并进行指标判断和告警。

@LittleShrimp1987
Copy link
Collaborator

这种建议每个桶拆成一个监控,而不是用一个监控来监控所有桶

@likaijames
Copy link
Author

非常感谢你的回复。不过我现在遇到的问题是:桶是动态的,不确定的。因此没法针对固定的桶做监控。
比如我面对的场景:监控所有用户的某个系统的认证日志,在一定期间内某个用户的认证失败次数达到某个阈值,就进行告警。
针对上面这个场景,不知道你有什么好的建议方案么?期待你的回复,谢谢!

@LittleShrimp1987
Copy link
Collaborator

LittleShrimp1987 commented Dec 17, 2020

用http监控试一下: https://github.com/AutohomeCorp/frostmourne/blob/master/doc/wiki/http-alarm.md 按user 做terms aggregation,取topN,用top1的value做为表达式判断条件: bucket[0].value > 3, 还可以用kibana做一个图表,以短链接的形式放到报警消息里,虽然只报出来是top1的问题,但是打开图表里可以看到更多详细的内容

@LittleShrimp1987 LittleShrimp1987 added the enhancement New feature or request label Oct 22, 2021
@LittleShrimp1987
Copy link
Collaborator

已经在0.6.2版本支持分组统计

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

No branches or pull requests

2 participants