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.
I know very old, wanted to add a data point. New Relic has deprecated the gem and is no longer work with new API.