<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Thanks for your reply.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><span style="font-family:arial,sans-serif;font-size:13px">1.Actually, statistics is used by horizon now to render the tables and grouping by resource is needed. The number of http requests should be reduced to speed up the page loading.</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">2. /statistics can't do this. You know, horizon may need hundreds or thousands of value to render a chart. it's a disaster if so many requests is sent to ceilometer api to render one chart.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 23, 2013 at 8:54 PM, 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 Tue, Jul 23 2013, Brooklyn Chen wrote:<br>
<br>
><br>
> It would be helpful if ceilometer-api provides following api:<br>
><br>
> GET /v2/usages/disk/<br>
><br>
> Parameters:  q(list(Query)) Filter rules for the resources to be returned.<br>
> Return Type: list(Usage) A list of usage with different tenant,user,<br>
> resource<br>
><br>
> GET /v2/usages/disk/<usage_id><br>
<br>
</div>Did you try /v2/meter/<meter-id>/statistics ?<br>
I think /statistics is good enough *except* that it misses the ability<br>
to group by resource the statistics.<br>
<div class="im"><br>
> 2. need gauge data like "cpu_util" to render stat charts.<br>
> We have cumulative meters like "disk.read.bytes" and<br>
> "networking.incoming.bytes" but they are not able to be used for drawing<br>
> charts since the value of them are always increasing.<br>
<br>
</div>The /statistics with the period= argument would allow you to do that as<br>
far as I can tell.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Julien Danjou<br>
# Free Software hacker # freelance consultant<br>
# <a href="http://julien.danjou.info" target="_blank">http://julien.danjou.info</a><br>
</font></span></blockquote></div><br></div>