[Openstack] [Swift] retrieve tenant-level, account-level and container-level usage information
Hua ZZ Zhang
zhuadl at cn.ibm.com
Wed Nov 21 09:59:15 UTC 2012
At least, you can get byes-used and count statistics information by using
GET operation on account/container/object.
here's an example for account level:
Request: GET
http://localhost:8080/v1.0/AUTH_3cf0193e7e5d45e0945d0b377528faed/?format=json
Response:
Headers:
X-Account-Bytes-Used: 291041353
X-Account-Container-Count: 4
X-Account-Object-Count: 574
...
Body:
[{"count": 0, "bytes": 0, "name": "audio"}, {"count": 1, "bytes":
129461, "name": "publicContainer"}, {"count": 572, "bytes": 290757640,
"name": "rmobjects"}, {"count": 1, "bytes": 154252, "name": "video"}]
Or you can use swift CLI command to get these information:
#swift stat
Account: AUTH_3cf0193e7e5d45e0945d0b377528faed
Containers: 4
Objects: 574
Bytes: 291041353
Accept-Ranges: bytes
X-Timestamp: 1352438477.08951
X-Trans-Id: tx8d25d73cdb7445deb83b9128bfcf8d32
Content-Type: text/plain; charset=utf-8
#swift stat rmobjects
Account: AUTH_3cf0193e7e5d45e0945d0b377528faed
Container: rmobjects
Objects: 572
Bytes: 290757640
Read ACL:
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Timestamp: 1352686747.07211
X-Trans-Id: tx0500ad5584e54be4917f1b187cca2485
Content-Type: text/plain; charset=utf-8
-Edward Zhang
ning2008wisc
<ning2008wisc at gma
il.com> To
Sent by: openstack at lists.launchpad.net,
openstack-bounces cc
+zhuadl=cn.ibm.co
m at lists.launchpad Subject
.net [Openstack] [Swift] retrieve
tenant-level, account-level and
container-level usage information
2012-11-13 上午
10:35
Hello All,
Is there any Swift (GUI or command line) tool that can retrieve the
tenant-level, 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?
Thanks,
Ning_______________________________________________
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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121121/ca1f0b6f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121121/ca1f0b6f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic14735.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121121/ca1f0b6f/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121121/ca1f0b6f/attachment-0002.gif>
More information about the Openstack
mailing list