O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collecting usage statistics

OpenStack Storage can report on usage metrics by using the swift-recon middleware added to our object-server configuration. By using a tool, also named swift-recon, we can then query these collected metrics.

Getting ready

Log in to an OpenStack Storage node as well as the proxy server.

How to do it...

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

  1. We first need to modify our /etc/swift/object-server.conf configuration file to include the swift-recon middleware, so that it looks similar to the following:
    [DEFAULT]bind_ip = 0.0.0.0workers = 2[pipeline:main]pipeline = recon object-server[app:object-server]use = egg:swift#object[object-replicator][object-updater][object-auditor]
    [filter:recon]use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required