Book Image

OpenStack Cloud Computing Cookbook

By : Egle Sigler, Kevin Jackson, Cody Bunch
Book Image

OpenStack Cloud Computing Cookbook

By: Egle Sigler, Kevin Jackson, Cody Bunch

Overview of this book

Table of Contents (19 chapters)
OpenStack Cloud Computing Cookbook Third Edition
About the Authors
About the Reviewers

Collecting usage statistics

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.

Getting ready

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

How to do it...

To collect usage statistics from our OpenStack Object Storage cluster, carry out the following steps:

  1. We first need to modify our /etc/swift/object-server.conf configuration file on storage nodes to include the swift-recon middleware, so that it looks similar to the following:

    bind_ip =
    workers = 2
    pipeline = recon object-server