<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>Not directly unfortunately. The information indicating if the VM is on</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>or off is included in metadata as part of the state or vm_state field,</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>and you can filter on it. However, computing the duration based on this</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>state over a period of time is trickier and not supported yet.</span><div><br></div><div>@Julien, long time no see, thanks v much for the info:) Filtering on vm_state field sounds like a short-term way doing it. In a long run, does this looks like something we need a bp for?</div>
<div><br></div><div>All the best,</div><div>Shengjie</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 January 2014 17:12, Julien Danjou <span dir="ltr"><<a href="mailto:julien@danjou.info" target="_blank">julien@danjou.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Jan 13 2014, Shengjie Min wrote:<br>
<br>
> In Ceilometer, is there a type of meter allows me to charge users based on<br>
> the uptime of the instances they have instead of cpu, memory utilisation?<br>
<br>
</div>Not directly unfortunately. The information indicating if the VM is on<br>
or off is included in metadata as part of the state or vm_state field,<br>
and you can filter on it. However, computing the duration based on this<br>
state over a period of time is trickier and not supported yet.<br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Julien Danjou<br>
# Free Software hacker # independent consultant<br>
# <a href="http://julien.danjou.info" target="_blank">http://julien.danjou.info</a><br>
</font></span></blockquote></div><br></div>