K8s, Grafana 中 CPU 使用率达到 100%,Pod 名称?

huangapple go评论71阅读模式
英文:

K8s, 100% CPU usage/utilization in grafana, pod name?

问题

我在K8s中遇到了一个问题,在Grafana中的特定节点上看到一个进程的CPU利用率达到了100%。请参考图片中的红线,您可以看到这个CPU利用率。

我尝试修改Grafana中仪表板的内容(更改图例描述),但没有成功。

您知道我怎么可以获取这个Pod的名称吗?

英文:

I have issue, that I see in k8s 100% CPU utilization for a process in specific node in Grafana. See the red line in picture, where you can see this CPU utilization.

K8s, Grafana 中 CPU 使用率达到 100%,Pod 名称?

I tried to modify content of dashboard in Grafana (change the legend description), but it was without success.

Do you know, how can I get name of this pod?

答案1

得分: 0

你可以执行以下操作:

  1. 使用 Grafana 查看哪个节点的 CPU 使用率达到了 100%。
  2. 登录到该节点并运行 htoptop 命令。
  3. 您应该能够看到 CPU 使用情况和进程负载。
  4. 获取 进程 ID 并将其映射到 K8s pod,使用命令 nsenter -t $PID -u hostname(详见详细说明)。
英文:

You can do the following:

  1. See which node has a CPU of 100% using Grafana
  2. Login to this node and run htop or top
  3. You should be able to see the CPUs usage and the processes load
  4. Get the process ID and map it to K8s pod, use nsenter -t $PID -u hostname (see detail clarification)

huangapple
  • 本文由 发表于 2023年6月22日 04:17:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76526845.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定