Add the following gems to your Gemfile
:
gem 'activeresource'
gem 'newrelic_api'
Update your bundle:
bundle
Put the newrelic_rpm.rb
to jobs/newrelic_rpm.rb
and configure your API key and Application name.
Finally, choose a metric (see "Emitted metrics" jobs/newrelic_rpm.rb
) you want to show on the dashboard and add corresponding HTML code. For example, the code below shows Newrelic Throughput (requests/minute) on the scale of 100. Adjust the scale based on your application usage.
@morphizer here is the updated version