wmi_exporter:如何計算單一行程 CPU 使用率的百分比?

wmi_exporter:如何計算單一行程 CPU 使用率的百分比?

軟體:wmi_exporter。誰能告訴我如何計算單進程CPU利用率的百分比?我認為它可能使用矩陣 wmi_process_cpu_total{process="my process"} 但我不知道該怎麼做。

關於 wmi_exporter 的訊息 https://github.com/martinlindhe/wmi_exporter

答案1

好吧,終於解決了。它應該使用公式 sum(rate(wmi_process_cpu_total_time{process="my}))/ sum(wmi_cs_邏輯_processors)

相關內容