Ask Your Question

What are the units of Ceilometer meters

asked 2017-03-22 13:23:32 -0500

4Frisby gravatar image

Hello,I need to calculate meter proportion of resources for my school machine learning project. I am trying to find the ratio of the system resource usage and in order to do that I have been examining the meters of Ceilometer, for example these are the command samples that I use : "ceilometer statistics --meter cpu_util --query 'resource_id=48511431-89fc-4ff4-9172-2073acf51e4d;timestamp>2016-03-14T00:00:00;timestamp<=2017-03-15T00:00:00'"

"ceilometer statistics --meter disk.usage", "ceilometer statistics --meter memory.resident"

the result that I get for CPU is min = 0.15 avg=0.5 max=1.7 etc. but what are they used for ?What are their units ? Should we say max is maximum CPU power that instance can use or is it maximum usage among that period ? How can I calculate the rate of memory,cpu,disk and bandwith usage for every day? Would assuming max is %100 for a spesific instance be true? Or should I say for example it achieved maximum 1.7 CPU power but its real max power is different? If so where can I find that ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-22 21:44:12 -0500

updated 2017-03-22 21:55:34 -0500

Each meter has its own unit, which you can retrieve with the ceilometer meter-list command. See also the user guide.

cpu_util is the instance's CPU utilization measured in percent. The possible maximum value of this meter is 100. Over the measurement interval, the lowest sample was 0.15%, the highest 1.7% and the average 0.5%.

CPU utilization is derived from the cpu meter, which measures the instance's CPU usage time in nanoseconds. Assuming the default sampling interval of 10 minutes or 600 billion nanoseconds, a cpu_util sample of 0.15% means that the instance used the CPU for 600,000,000,000*0.0015 nanoseconds (I hope I got that calculation right and that this paragraph makes sense).

The admin guide has a list of all the meters, including memory-, CPU-, disk- and network-related measurements

You can also use ceilometer sample commands instead of the statistics command and calculate the statistics yourself.

edit flag offensive delete link more


Thank you again for your perfect explanation

4Frisby gravatar image4Frisby ( 2017-03-25 04:36:35 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-22 13:23:32 -0500

Seen: 1,046 times

Last updated: Mar 22 '17