【发布时间】:2016-01-21 12:25:40
【问题描述】:
我正在通过 Prometheus.io 监控 docker 容器。我的问题是我刚刚收到cpu_user_seconds_total 或cpu_system_seconds_total。
如何将这个不断增加的值转换为 CPU 百分比?
目前我正在查询:
rate(container_cpu_user_seconds_total[30s])
但我认为它不太正确(与顶部相比)。
如何将cpu_user_seconds_total 转换为 CPU 百分比? (如上图)
【问题讨论】:
标签: performance performance-testing cpu-usage prometheus