openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18571
Re: [Swift] account-level and container-level usage information
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@xxxxxxxxxx> wrote:
> On Mon, 12 Nov 2012 20:48:35 -0800
> Ning Zhang <ning@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
References