如何获取Openstack VM的CPU利用率百分比?

时间:2019-08-23 14:43:26

标签: openstack openstack-nova

Nova诊断程序将CPU使用情况显示为CPU时间(以纳秒为单位)。

nova diagnostics vm1
+---------------------------+-----------------+
| Property                  | Value           |
+---------------------------+-----------------+
| cpu0_time                 | 36678580000000  |
| cpu1_time                 | 9997850000000   |
| cpu2_time                 | 165635380000000 |
| cpu3_time                 | 116297040000000 |
------
+---------------------------+-----------------+

如何从上述值中获取CPU利用率百分比?

0 个答案:

没有答案