Monitoring
260
For the client configuration, we specify where we want the data sent to, using the following
lines in the client's configuration file:
Server "172.16.0.253" "12345"
To bring the two together in a convenient interface to collectd, we install the
collectd-web interface that has a standalone service that is used in conjunction
with Apache to provide us with the interface.
Monitoring the storage service using
StatsD/Graphite
When monitoring the OpenStack Storage service, Swift, we are looking at gathering key
metrics from within the storage cluster in order to make decisions on its health. For this, we
can use a small piece of middleware named swift-informant, together with StatsD and
Graphite, to produce near real-time stats of our cluster.
Getting ready
We will be configuring StatsD and Graphite on a server that has access to the OpenStack
Storage proxy server. Ensure this server has enough RAM, disk, and CPU capacity for the
environment you are running.
How to do it...
To install StatsD and Graphite, carry out the following steps:
Prerequisites
For this, we will be configuring a new Ubuntu 12.04 server. Once Ubuntu has been installed,
we need to install some prerequisite packages.
sudo apt-get update
sudo apt-get -y install git python-pip gcc python2.7-dev apache2
libapache2-mod-python python-cairo python-django
libapache2-mod-wsgi python-django-tagging
Graphite
1. Installation of Graphite is achieved using the Python Package Index tool, pip:
sudo pip install carbon
sudo pip install whisper
sudo pip install graphite-web
www.it-ebooks.info