OpenStack Object Storage can report on usage metrics by using the
swift-recon middleware added to our
object-server configuration. By using a tool named
swift-recon, we can then query these collected metrics.
Ensure that you are logged in to all of the nodes and have the relevant packages installed and configured for running Swift. If you created this environment with Vagrant, you can execute the following commands to access all the nodes:
vagrant ssh swift-proxy vagrant ssh swift-01 vagrant ssh swift-02 vagrant ssh swift-03 vagrant ssh swift-04 vagrant ssh swift-05
We first need to modify our
/etc/swift/object-server.confconfiguration file on storage nodes to include the
swift-reconmiddleware, so that it looks similar to the following:
[DEFAULT] bind_ip = 0.0.0.0 workers = 2 [pipeline:main] pipeline = recon object-server [app:object...