[openstack-dev] [Ceilometer] Is that possible to implement new APIs for horizon to show the usage report and charts?

Julien Danjou julien at danjou.info
Tue Jul 23 12:54:19 UTC 2013


On Tue, Jul 23 2013, Brooklyn Chen wrote:

>
> It would be helpful if ceilometer-api provides following api:
>
> GET /v2/usages/disk/
>
> Parameters:  q(list(Query)) Filter rules for the resources to be returned.
> Return Type: list(Usage) A list of usage with different tenant,user,
> resource
>
> GET /v2/usages/disk/<usage_id>

Did you try /v2/meter/<meter-id>/statistics ?
I think /statistics is good enough *except* that it misses the ability
to group by resource the statistics.

> 2. need gauge data like "cpu_util" to render stat charts.
> We have cumulative meters like "disk.read.bytes" and
> "networking.incoming.bytes" but they are not able to be used for drawing
> charts since the value of them are always increasing.

The /statistics with the period= argument would allow you to do that as
far as I can tell.

-- 
Julien Danjou
# Free Software hacker # freelance consultant
# http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130723/96bcc38c/attachment.pgp>


More information about the OpenStack-dev mailing list