<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi<div><br></div><div>Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is:</div><div>Firs get the resource id number and then query using parameters in the curl command.</div><div><br></div><div>This is what I already tested:</div><div>Get the resource id from what you want to query ceilometer</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"><b><i>$ curl -X GET -H 'X-Auth-Token:<my_token_here' "http://localhost:8777/v2/resources </i></b></span><span style="font-size: 12pt;"><i><b>| python -mjson.tool</b></i></span><b style="font-size: 12pt;"><i>"   </i></b></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">And then query with: </span></div><div><span style="font-size: 12pt;"><br></span></div><div><i><b><span style="font-size: 12pt;">$curl -X GET -H 'X-Auth-Token:<my_token_here' "http://localhost:8777/v2/</span><span style="font-size: 12pt;">meters/cpu?q.field=resource_id&q.value=<resource_id_here> </span><span style="font-size: 12pt;">| python -mjson.tool</span><span style="font-size: 12pt;"><span style="font-size: 12pt;">"</span></span></b></i></div><div><br></div><div>Remember that option "q" is to filter rules for the resources to be returned, and try to use <font size="3"><b><i>python mjson.tool,</i></b> just for having something legible in your terminal.</font></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Good luck :)</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Cláudio Marques</span></div><div><span style="font-size: 12pt;"><br></span></div><div><div style="color: rgb(34, 34, 34); font-family: arial; font-size: small;"><div dir="ltr"><a href="mailto:claudio@onesource.pt" target="_blank" style="color: rgb(17, 85, 204);">claudio@onesource.pt</a><div><a href="http://www.onesource.pt/" target="_blank" style="color: rgb(17, 85, 204);">http://www.onesource.pt/</a><br></div><div><br></div></div></div></div><div><div><hr id="stopSpelling">Date: Thu, 20 Jun 2013 16:03:00 +0530<br>From: jobin.rv@gmail.com<br>To: claudio@onesource.pt<br>CC: openstack@lists.launchpad.net<br>Subject: Re: [Openstack] How to query ceilometer to get nova-specific data<br><br><div dir="ltr"><div>Hey, Claudio!<br><br></div>The command I executed is the second command in the <a href="http://docs.openstack.org/developer/ceilometer/webapi/v2.html" target="_blank">page that you gave</a>(which
 is also the one I am referring to). Can you please pin-point what is 
the mistake in the command or counsel what is the right one to get 
nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted.<br><div><div id="ecx:1bv" tabindex="0"><img src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div>
</div></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Thu, Jun 20, 2013 at 3:50 PM, claudio marques <span dir="ltr"><<a href="mailto:claudio@onesource.pt" target="_blank">claudio@onesource.pt</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Hi Jobin<div><br></div><div>I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. </div><div><br></div><div><a href="http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max" target="_blank">http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max</a></div>
<div><br></div><div>Cheers</div><div><br><div><hr>Date: Thu, 20 Jun 2013 15:19:44 +0530<br>From: <a href="mailto:jobin.rv@gmail.com" target="_blank">jobin.rv@gmail.com</a><br>To: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Subject: [Openstack] How to query ceilometer to get nova-specific data<div><div class="h5"><br><br><div dir="ltr"><div><div><div><div>Hey, all!<br><br><br></div>I installed ceilometer on Ubuntu 12.04 using the manual installation guide given <a href="http://docs.openstack.org/developer/ceilometer/install/manual.html" target="_blank">here</a>. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory.<br>

<br></div>When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl:<br><br><font size="4"><span style="font-family:courier new,monospace;">curl -X GET -H 'X-Auth-Token:<my_token_here' "<a href="http://localhost:8777/v2/resources/resource_id" target="_blank">http://localhost:8777/v2/resources/resource_id</a>"<br>

</span></font><br></div>This returns a <font size="4"><span style="font-family:courier new,monospace;">404 Not Found</span></font> error.<br><br>These are my primary concerns:<br><br>1) How do I query to get the CPU resources utilized by my virtual machines?<br>

<br>2) How do I decide on which port I have to pass this query? There are some documents which have<span style="font-family:courier new,monospace;"> <font size="4">v1</font></span> instead of <span style="font-family:courier new,monospace;"><font size="4">v2</font></span> in the URL, I would like to have clarification on that too.<br>

<br></div>Thanks for your patience.<br clear="all"><div><div><div><div><div><br>-- <br><div style="text-align:left;"><BR><BR>
<BR><BR><BR><span style="font-family:"Arial","sans-serif";color:rgb(255,0,102);">Thanks and regards,</span><span style="font-family:Arial,sans-serif;"></span><BR>


<span style="font-family:"Arial","sans-serif";color:rgb(84,141,212);">Jobin Raju George</span><span style="font-family:Arial,sans-serif;"></span><BR>

<span style="font-family:"Arial","sans-serif";color:rgb(84,141,212);">Third Year, Information Technology</span><span style="font-family:Arial,sans-serif;"></span><BR>

<span style="font-family:"Arial","sans-serif";color:rgb(84,141,212);">College of Engineering Pune</span><span style="font-family:Arial,sans-serif;"></span><BR>

<span style="font-family:"Arial","sans-serif";color:rgb(84,141,212);">Alternate e-mail:<span> </span></span><span style="font-family:"Arial","sans-serif";color:rgb(0,176,80);"><a href="mailto:georgejr10.it@coep.ac.in" target="_blank">georgejr10.it@coep.ac.in</a></span><span style="font-family:Arial,sans-serif;"></span><BR>

<br><br><br><br><br></div>
</div></div></div></div></div></div>
<br></div></div>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></div></div>                                       </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:left;"><p style=""></p><p style=""></p><p style=""></p><p style="">
</p><p style=""></p><p style=""><span style="font-family:"Arial","sans-serif";color:#ff0066;">Thanks and regards,</span><span style="font-family:Arial,sans-serif;"></span></p>


<p style=""><span style="font-family:"Arial","sans-serif";color:#548dd4;">Jobin Raju George</span><span style="font-family:Arial,sans-serif;"></span></p>


<p style=""><span style="font-family:"Arial","sans-serif";color:#548dd4;">Third Year, Information Technology</span><span style="font-family:Arial,sans-serif;"></span></p>


<p style=""><span style="font-family:"Arial","sans-serif";color:#548dd4;">College of Engineering Pune</span><span style="font-family:Arial,sans-serif;"></span></p>


<p style=""><span style="font-family:"Arial","sans-serif";color:#548dd4;">Alternate e-mail:<span> </span></span><span style="font-family:"Arial","sans-serif";color:#00b050;"><a href="mailto:georgejr10.it@coep.ac.in" target="_blank">georgejr10.it@coep.ac.in</a></span><span style="font-family:Arial,sans-serif;"></span></p>
<BR><BR><BR><BR><BR></div>
</div>
<br>_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp</div></div>                                         </div></body>
</html>