This gem is notified of basic performance metrics for a Rails application, and sends the measurements to DataDog.
Many thanks to mm53bar for the groundwork laid in this gist.
Install the Datadog Agent on your application server. This gem only works on servers which have the Datadog Agent installed.
Add this line to your application's Gemfile:
gem 'datadoge'
And then execute:
$ bundle
Or install it yourself as:
$ gem install datadoge
By default, performance metrics are only reported to Datadog from production environments which have the Datadog agent installed.
To enable Datadog reporting in non-production environments, add the following to an initializer:
Datadoge.configure do |config|
config.environments = ['staging', 'production']
config.prefix = :rails_performance
config.tags = ['role:web']
end
- Fork it ( https://github.com/metova/datadoge/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request