prometheus中process_cpu_seconds_total的概念

问题描述 投票:0回答:1

这是5分钟内进程cpu秒总数的结果?

process_cpu_seconds_total{instance="localhost:9090", job="prometheus"}
50.61 @1711710744.158
50.68 @1711710759.167
50.73 @1711710774.155
50.78 @1711710789.155
50.86 @1711710804.195
50.94 @1711710819.155
51 @1711710834.155
51.07 @1711710849.158
51.18 @1711710864.155
51.24 @1711710879.158
51.31 @1711710894.157
51.4 @1711710909.159
51.48 @1711710924.155
51.53 @1711710939.155
51.58 @1711710954.155
51.64 @1711710969.155
51.8 @1711710984.158
51.86 @1711710999.155
51.93 @1711711014.155
52.02 @1711711029.164

有人可以向我解释如何阅读和理解这个吗?

prometheus
1个回答
0
投票

prometheus 开箱即用,process_cpu_seconds_total 表示

# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.

在您的示例中,它为您提供实例 =“localhost:9090”、作业 =“prometheus”的 CPU 使用情况。价值:

    50.61 @1711710744.158
    52.02 @1711711029.164

it used 50.61 seconds at GMT: Friday, March 29, 2024 11:12:24.158 AM
it used 52.02 seconds at GMT: Friday, March 29, 2024 11:17:09.164 AM

1711710744.158 - 这是纪元中的时间戳,这是普罗米修斯使用的。所以上面的值显示了你运行它时最后 5 分钟的 CPU 使用情况。

© www.soinside.com 2019 - 2024. All rights reserved.