gpt4 book ai didi

kubernetes - 为什么我的 DataDog 实例报告 Kubernetes "no_pod"?

转载 作者:行者123 更新时间:2023-12-03 12:46:34 25 4
gpt4 key购买 nike

我们在 AWS 中运行了一个 Kubernetes 集群,我们正在使用 dd-agent DaemonSet 在 DataDog 中收集指标。

我们在指标中显示了一个标记为“no_pod”的 Pod,它使用了大量资源,Memory/CPU/NetworkTx/NetworkRX。

对这个 pod 是什么有什么解释吗,我如何找到它,杀死它,重新启动它等等?

我找到了 dd-agent source code这似乎定义了“no_pod”标签,但我无法理解它为什么在那里,它来自哪里以及我如何通过 kubectl 等找到它。

enter image description here

最佳答案

在与 DataDog 的支持团队交谈后,我设法找到了与 no_pod pod 相关的以下信息。

Our Kubernetes check is getting the list of containers from the Kubernetes API, which exposes aggregated data. In the metric explorer configuration here, you can see a couple of containers named /docker and / that are getting picked up along with the other containers. Metrics with pod_name:no_pod that come from container_name:/ and container_name:/docker are just metrics aggregated across multiple containers. (So it makes sense that these are the highest values in your graphs.) If you don't want your graphs to show these aggregated container metrics though, you can clone the dashboard and then exclude these pods from the query. To do so, on the cloned dashboard, just edit the query in the JSON tab, and in the tag scope, add !pod_name:no_pod.



因此,这些 pod 似乎是在集群外部运行的 docker 和根级别容器,并且将始终显示,除非您想像我现在所做的那样专门过滤掉它们。

非常感谢 DataDog 的支持人员为我调查这个问题,并就 pod 是什么给了我一个很好的解释,并基本上确认我可以安全地过滤掉这些而不用担心它们。

关于kubernetes - 为什么我的 DataDog 实例报告 Kubernetes "no_pod"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40741803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com