我正在寻找一个独特的过滤器在Datadog事件监视器。就像下面这样。

设想情况:
我在Kubernetes有多个微型服务。每个服务都将以foreground-process thread-<ID> is in waiting for state格式生成一条日志消息。对于每个thread-<ID>,将产生多个日志消息。我使用管道特性和grok解析器来获取threadType,即foreground-process和thread-<ID> .i.e is thread-11。当每个服务阻塞了5个以上的唯一线程时,我需要创建一个监视器和警报。我可以通过为每个服务创建一个单独的监视器来实现这一点,但是接下来我需要创建大约120个监视器。因此,我想看看在datadog中是否有unique过滤器或其他任何机制来实现这一点?
样本日志:
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发布于 2022-06-06 16:34:22
要计数事物的唯一数量,请将黄色*框中的Count更改为要计数唯一值的方面。

https://stackoverflow.com/questions/72519131
复制相似问题