Issue link: https://read.uberflip.com/i/1334488
Chapter 12 263 StatsD 1. StatsD runs using node.js, so we have to install it first, using packages from Ubuntu's repositories: sudo apt-get update sudo apt-get -y install nodejs 2. We then check out the StatsD code from Git: git clone https://github.com/etsy/statsd.git 3. Configuring StatsD is done by modifying an example configuration file: cd statsd cp exampleConfig.js Config.js 4. We need to modify the Config.js file to change the graphiteHost: parameter to localhost, as we're running Graphite on the same host as StatsD: { graphitePort: 2003 , graphiteHost: "localhost" , port: 8125 } 5. To start the service, we issue the following command: nohup node stats.js Config.js & swift-informant We are now ready to configure the OpenStack Swift proxy server to include the swift- informant middleware in the pipeline. This is done by configuring the /etc/swift/ proxy-server.conf file. 1. We first download and install the middleware by running the following commands: git clone https://github.com/pandemicsyn/swift- informant.git cd swift-informant sudo python setup.py install 2. Once installed, we modify the pipeline in /etc/swift/proxy-server.conf to specify a filter named informant: [pipeline:main] pipeline = informant healthcheck cache swift3 s3token tokenauth keystone proxy-server www.it-ebooks.info

