After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 274 of 317

Monitoring 264 3. We then add in the informant filter section, specifying the address of our StatsD server, in the statsd_host section, as follows: [filter:informant] use = egg:informant#informant statsd_host = 172.16.0.9 # statsd_port = 8125 # standard statsd sample rate 0.0 <= 1 # statsd_sample_rate = 0.5 # list of allowed methods, all others will generate a "BAD_METHOD" event # valid_http_methods = GET,HEAD,POST,PUT,DELETE,COPY # send multiple statsd events per packet as supported by statsdpy # combined_events = no # prepends name to metric collection output for easier recognition, e.g. company.swift. # metric_name_prepend = 4. Once done, we simply restart our OpenStack proxy service: sudo swift-init proxy-server restart 5. Load up your web browser and point it to your Graphite web installation, to see the graphs get populated in real time. How it works... Gaining insight into what our OpenStack Storage cluster is doing can be achieved by including a piece of middleware in the pipeline of our OpenStack Storage proxy server, named swift-informant, along with StatsD and Graphite. StatsD is a node.js service that listens for statistics sent to it in UDP packets. Graphite takes this data and gives us a real-time graph view of our running services. Installation and configuration is done in stages. We first install and configure a server that will be used for StatsD and Graphite. Graphite can be installed using Python's Package Index (using the pip tool), and for this, we install three pieces of software: carbon (the collector), whisper (fixed-size RRD service), and the Django Web Interface, graphite-web. Using the pip tool installs these services to the /opt directory of our server. Once the server for running Graphite and StatsD has been set up, we can configure the OpenStack Storage proxy service, so that statistics are then sent to the Graphite and StatsD server. With the appropriate configuration in place, the OpenStack Storage service will happily send events, via UDP, to the StatsD service. Configuration of the Graphite interface is done in an Apache vhost file that we place in Ubuntu's Apache sites-available directory. We then enable this for our installation. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook