[Openstack] [Swift] account-level and container-level usage information

John Dickinson me at not.mn
Tue Nov 13 20:17:32 UTC 2012


You could use a project like slogging (http://github.com/notmyname/slogging) to run inside the cluster and aggregate that information from account dbs and logs.

--John


On Nov 13, 2012, at 12:15 PM, Pete Zaitcev <zaitcev at redhat.com> wrote:

> On Mon, 12 Nov 2012 20:48:35 -0800
> Ning Zhang <ning at zmanda.com> wrote:
> 
>> Is there any Swift (GUI or command line) tool that can
>> retrieve the account-level and
>> container-level usage information (e.g. how large space
>> has been used under an account, how large space has been
>> used under a tenant) and also works with keystone?
> 
> If you're content with 1st party view, Alex Yang's mail gives the
> answer. But if you want a 3rd part view (authenticate as administrator
> or bypassing the authentication), then I don't think there is a tool
> for that. I tried to find one before I started on swift-report, but
> found none.
> 
> Swiftly can be used to ease the problem of formulating the correct
> URLs when accessing back-ends instead of the proxy, but it's not
> a complete turnkey solution.
> 
> Actually I was thinking about pilfering Greg's code from Swiftly
> and grafting it onto swift-report, but that hasn't happened.
> 
> So the only way you can do it today is to extract the URLs by
> authenticating with Keystone as 1st party (with curl), then issue
> curl -X HEAD to account, container, and object servers. Basically
> you still authenticate in the end as Alex suggested.
> 
> -- Pete
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121113/33ae3169/attachment.bin>


More information about the Openstack mailing list