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 couldn't get the gem to return the application correctly, was quicker to parse the xml with nokogiri.