Datadog事件监视器中的唯一过滤器

发布于 2025-02-04 18:33:47 字数 906 浏览 3 评论 0原文

我正在寻找DataDog事件监视器中的独特过滤器。像下面一样。

方案:

我在Kubernetes中运行多个微服务。每个服务都会以格式前景螺纹 - < id> gt;正在等待状态。对于每个thread-< id>将产生多个日志消息。我正在使用Grok Parser的管道功能来获取threadType ie 前景过程thread> thread-< id> .ie是线程11。当每次服务阻止了5个以上的唯一线程时,我需要创建一个监视器和警报。我可以通过为每个服务创建一个单独的监视器来实现这一目标,但是我需要创建约120个监视器。因此,我希望查看唯一 dataDog中的过滤器还是其他任何实现此目的的机制?

示例日志:

foreground-process thread-2 is in waiting for state
foreground-process thread-11 is in waiting for state
foreground-process thread-2 is in waiting for state
foreground-process thread-9 is in waiting for state
foreground-process thread-2 is in waiting for state

I am looking for a unique filter in the Datadog event monitor. something like below.

enter image description here

Scenario:

I have multiple microservices running in Kubernetes. Each of the services will produce a log message in the format foreground-process thread-<ID> is in waiting for state. For each thread-<ID> multiple log messages would be produced. I am using the pipeline feature with grok parser to fetch threadType i.e foreground-process and thread-<ID> .i.e is thread-11. I need to create a monitor and alert when more than 5 unique threads are blocked per service. I can achieve this by creating a separate monitor for each service but then I need to create around 120 monitors. So I am looking to see if there is unique filter in datadog or any other mechanism to achieve this?

Sample logs:

foreground-process thread-2 is in waiting for state
foreground-process thread-11 is in waiting for state
foreground-process thread-2 is in waiting for state
foreground-process thread-9 is in waiting for state
foreground-process thread-2 is in waiting for state

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

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

发布评论

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

评论(1

风向决定发型 2025-02-11 18:33:47

要计算唯一数量的事物,请在黄色中更改* count box中的 box,以计算您要计算唯一值的facet。

To count the unique number of things, change that * in the yellow Count box to the facet you want to count unique values for.

count unique in monitor

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