基于条件的SignalFX检测器数据()。计数()

发布于 2025-02-09 15:15:22 字数 365 浏览 3 评论 0原文

是否可以根据条件实现计数()MTS?

例如: 我们需要监视RDS CPU在过去3天中选择95%的时间。

A = data('CPU_Utilization').count(...when point > 95%). 
detector(when(A > {number_of_times_breached}, lasting='3d')).publish(...)

更新。

解决方案是由我的同事发现的:

A = data('CPU_Utilization').above({condition_value}, inclusive=True).count(...)

Is it possible to implement count() MTS based on condition?

For instance:
We need to monitor the amount of time RDS CPU picks the point of 95% for the last 3 days.

A = data('CPU_Utilization').count(...when point > 95%). 
detector(when(A > {number_of_times_breached}, lasting='3d')).publish(...)

Update.

Solution was found by my colleague:

A = data('CPU_Utilization').above({condition_value}, inclusive=True).count(...)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最后的乘客 2025-02-16 15:15:22

您可以使用spl QUERY中的布尔结果count()中的带有布尔结果。

类似

| <your search> | stats count(eval(point>0.95)) 

You can use eval() with boolean result inside count() in your SPL query.

Something like

| <your search> | stats count(eval(point>0.95)) 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文