[Openstack] [ceilometer] meter data volume

吴亚伟 wuyawei.mail at gmail.com
Wed Oct 31 09:25:55 UTC 2012


Hi Julien,

Sorry to bother you.

I am still testing ceilometer now. I am confused about the meter volume
in the mongodb. Let's talk about cpu usage.

After I create and boot a vm named vm_1, meter data record about cpu
usage will be inserted into db in cycle(default 10 minutes). For
example,the 'counter_volume' of the first record is '52060000000',and
the second one is '123890000000'.

1) '123890000000' nanoseconds means '123.89' seconds or two minutes,it
seem like to be 1238.9 seconds actually, is there something wrong ?

2) If I never reboot or suspend vm_1, will the 'counter_volume' of cpu
usage record increase all the time ? Just like '8 minutes' -> '18
minutes' -> '28 minutes' ?

3) If I reboot or suspend vm_1, I find that the 'counter_volume' of cpu
usage record will count from zero. Just like '8 minutes' -> '18 minutes'
-> '28 minutes' [-> '0 minutes'] ->'5 minutes' -> '15 minutes'. Does it
mean that 'counter_volume' just represents how long has vm_1 been booted
up ?

4) This one is about Web API. I find that "GET
/v1/resources/(resource)/meters/(meter)/volume/sum" just return the sum
value of all the cpu 'counter_volume', like '8 minutes' + '18 minutes'.
Is it reduplicate ?

5) If I want to know how long has vm_1's cpu been used yesterday, how
can I do ?

It seems like that I have too many questions..

Thank you very much !


-----------------------
Yawei Wu
Dalian Hi-Think Computer Technology,Corp.




More information about the Openstack mailing list