Object storage utilization
You may be interested in the number of objects, or their cumulative size, currently held in a container.
Prerequisites
To examine a Swift container, be sure that you have installed and configured the required command-line interface (CLI) tools.
Showing the number of objects in a container
To show the number of objects in a given container, use one of the following commands:
openstack container show <container> -c object_count
swift stat <container>
Objects
.
Showing the total size of objects in a container
To show the overall size of all objects in a given container, use one of the following commands:
openstack container show <container> -c bytes_used
swift stat <container>
Bytes
.
To scale the total size output to human-readable units, add the --lh
option:
swift stat --lh <container>