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
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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:

    [DEFAULT] 
    bind_ip = 0.0.0.0
    workers = 2
    
    [pipeline:main]
    pipeline = recon object-server
    
    [app:object...