Hi,
I can get cpu_util use:
[root@controller ~(keystone_admin)]# ceilometer sample-list -q
resource=48afa90d-20e9-4096-8c5d-6543e49a03f7 -m cpu_util
+--------------------------------------+----------+-------+-----------------+------+----------------------------+
| Resource ID | Name | Type | Volume |
Unit | Timestamp |
+--------------------------------------+----------+-------+-----------------+------+----------------------------+
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.128334366425 | %
| 2016-07-27T06:46:53.043000 |
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.124997847537 | %
| 2016-07-27T06:36:53.048000 |
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.140021875851 | %
| 2016-07-27T06:26:53.038000 |
I can also get memory.usage use
[root@controller ~(keystone_admin)]# ceilometer sample-list -q
resource=48afa90d-20e9-4096-8c5d-6543e49a03f7 -m memory.usage
+--------------------------------------+--------------+-------+--------+------+----------------------------+
| Resource ID | Name | Type | Volume | Unit |
Timestamp |
+--------------------------------------+--------------+-------+--------+------+----------------------------+
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | memory.usage | gauge | 206.0 | MB |
2016-07-27T06:46:53.072000 |
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | memory.usage | gauge | 206.0 | MB |
2016-07-27T06:36:53.076000 |
Is it possible to get memory_util like the cpu_util?
I think memory_util would caculated as: usage/total.
I also have one question. When I boot a vm with 2G,and use virsh dommenstat, I
get the following:
virsh # dommemstat 36
actual 2097152
swap_in 0
swap_out 0
major_fault 458
minor_fault 764818
unused 1673108
available 1884124
rss 2260280
and log in the vm using free:
[root@c7-az-nova ~]# free
total used free shared buff/cache available
Mem: 1884124 67112 1673108 16656 143904 1670240
Swap: 0 0 0
How the number 1884124 calulated? I would expect it to be 2097152.
Thanks in advance.
[email protected]
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack