Please sign in to comment.
- Loading branch information...
|@@ -1,7 +1,8 @@|
|This is an example Sinatra app to show off [rack-statsd](https://github.com/github/rack-statsd) usage. It outputs a simple string with random latency, which is measured and graphed automatically. The specifics are in `config.ru` where the statsd client is instantiated and passed to rack-statsd. Any rack application should work in a similar manner.|
|To get up and running:|
|-* Install and configure a [statsd](https://github.com/etsy/statsd) instance. Librato provides its own fork with stability improvements and Librato [Metrics](http://metrics.librato.com) support. By default statsd will accept connections at localhost on 8125.|
|+* Install and configure a [statsd](https://github.com/etsy/statsd) instance. Librato provides its own [fork](https://github.com/librato/statsd) with stability improvements and Librato [Metrics](https://metrics.librato.com) support. By default statsd will accept connections at localhost on 8125.|
|* Run a `bundle install` to install needed packages.|
|* Configure the statsd client and rack-statsd options in `config.ru` if needed. See [RackStatsD::ProcessUtilization::initialize](https://github.com/github/rack-statsd/blob/master/lib/rack-statsd.rb) for more info.|
|* Run `bundle exec unicorn` to start the server. Access http://localhost:8080 and verify that stats are being sent to statsd. Note: enabling `dumpMessages` in statsd's configuration file will print each message received to standard out. This makes it easier to confirm that things are working.|