Add statsd and metrics

Add dogstatsd and some useful custom metrics.

@zendesk/samson
Yeah, tags are wildly useful. I add tags to request metrics for the
controller, action, and the format requested. For job metrics, I add tags
for the project, and stage.

On Tue, Sep 23, 2014 at 1:29 AM, Daniel Schierbeck <notifications@github.com
> wrote:

> In Gemfile:
>
> > @@ -6,6 +6,8 @@ gem 'rails', '~> 4.1.5'
> >  gem 'puma'
> >  gem 'dotenv-rails', '~> 0.9'
> >
> > +gem 'dogstatsd-ruby', '~> 1.4.0', require: 'statsd'
>
> The one difference I can think of is that Datadog allows adding tags to
> metrics – which incidentally is one of the most useful features, as it
> allows doing stuff like "show three slowest controller actions" without any
> knowledge of the actual controller names.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zendesk/samson/pull/108/files#r17896533>.
>