<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="File-List" href="cid:filelist.xml@01CF9776.3A70F490"><link rel="themeData" href="~~themedata~~"><link rel="colorSchemeMapping" href="~~colorschememapping~~"><style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:SimSun}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Microsoft YaHei"}
@font-face
        {font-family:"Microsoft JhengHei"}
@font-face
        {}
@font-face
        {}
@font-face
        {}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.25in 1.0in 1.25in}
div.WordSection1
        {}
-->
</style><style style="display: none;" id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body id="" tabindex="0" aria-label="Message body" fpstyle="1" dir="ltr" style="" lang="EN-US" link="blue" vlink="purple">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi Kurt,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Your understanding is correct about the the 'cpu time used' meter. It is a cumulative meter, ever increasing since boot-up and reset to zero on restart. Vsphere
 does not support this meter. Details about meters supported by different hypervisors can be found at:
<a href="http://docs.openstack.org/developer/ceilometer/measurements.html#compute-nova">
http://docs.openstack.org/developer/ceilometer/measurements.html#compute-nova</a>.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">You can use 'cpu_util' meter instead which is of type 'gauge', if it satisfies your requirement.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Personally, I think a 'delta' counter will make more sense. However, you can derive the delta value by comparing two consecutive values for the cumulative
 meter and figuring out the difference.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hope that helps.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thanks,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Piyush</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><a name="_MailOriginal"><b><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">From:</span></b></a><span style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">
</span></span><span style=""><span style="font-size:11.0pt; font-family:"Microsoft JhengHei","sans-serif"">ÈĶ¨Ô¶</span></span><span style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> [mailto:raodingyuan@chinacloud.com.cn]
<br>
<b>Sent:</b> Thursday, July 03, 2014 3:15 PM<br>
<b>To:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> [Openstack] [Ceilometer] Question regarding the meter "cpu time used"</span></span></p>
</div>
</div>
<p class="MsoNormal"><span style=""> </span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi folks,</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">I found that the ¡°cpu time used¡± meter actually means ¡°cpu time used *<b>since last boot-up</b>*¡±, at least in libvirt environments. It will
 be reset to ZERO after VM restart. As far as I understand, a cumulative type meter should be strictly increasing, so it looks very strange to me.</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">My questions are:</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">1, Since I have libvirt environment only, I haven¡¯t tested on vsphere or any others. Does it behave the same in other environments?</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">2, Is it intended to be like this?</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">2, What should a billing system do to correctly use this meter?</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">Please help
</span></span><span style=""><span style="font-size:10.5pt; font-family:Wingdings; color:#1F497D">J</span></span><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D"></span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thanks a lot!</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></span></p>
<p class="MsoNormal" style="text-align:justify; layout-grid-mode:char"><span style=""><span style="font-size:10.0pt; font-family:"Microsoft YaHei","sans-serif"; color:#1F497D"> </span></span></p>
<p class="MsoNormal" style="text-align:justify; layout-grid-mode:char"><span style=""><span style="font-size:10.0pt; font-family:"Microsoft YaHei","sans-serif"; color:#1F497D">Kurt Rao</span></span></p>
<p class="MsoNormal" style="text-align:justify; layout-grid-mode:char"><span style=""><span style="font-size:10.0pt; font-family:"Microsoft YaHei","sans-serif"; color:#1F497D">ChinaCloud Information Technology Co., Ltd.</span></span></p>
<p class="MsoNormal" style="text-align:justify; layout-grid-mode:char"><span style=""><span style="font-size:10.0pt; font-family:"Microsoft YaHei","sans-serif"; color:#1F497D">E_mail:
</span></span><a href="mailto:raodingyuan@chinacloud.com.cn"><span style=""><span style="font-size:10.0pt; font-family:"Microsoft YaHei","sans-serif"">raodingyuan@chinacloud.com.cn</span></span><span style=""></span></a><span style=""></span><span style="font-size:10.0pt; font-family:"Microsoft YaHei","sans-serif"; color:#1F497D"></span></p>
</div>
</div>
</body>
</html>