<div dir="ltr"><div><div><div>Hi,<br><br></div>There is a blueprint about providing extended query filtering functionality in Ceilometer API, like the reverse timestamp ordering: <a href="https://blueprints.launchpad.net/ceilometer/+spec/complex-filter-expressions-in-api-queries">https://blueprints.launchpad.net/ceilometer/+spec/complex-filter-expressions-in-api-queries</a>. It is targeted for Icehouse.<br>
<br></div>Best Regards,<br></div>Ildiko<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/7 Eoghan Glynn <span dir="ltr"><<a href="mailto:eglynn@redhat.com" target="_blank">eglynn@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
The timestamp on the first instance sample recorded by the ceilometer<br>
with give you that.<br>
<br>
A brute-force way of retrieving it:<br>
<br>
ceilometer sample-list -m instance -q "resource_id=$INSTANCE_ID" | grep instance | tail -1 | awk '{printf("%s created at %s\n", $2, $(NF-1))}'<br>
<br>
(it would be better if a reverse-timestampt ordering could be specified<br>
via the CLI, in which case we could just limit to result set to 1).<br>
<br>
Cheers,<br>
Eoghan<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> Hi,<br>
><br>
> Is it possible to get info about creation time of a particular VM via<br>
> ceilometer? Like, this VM was created at that date.<br>
><br>
> Thanks,<br>
> NM<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br></div>