Skip to content

How To: Use New Relic with Dashing

Alex Massaad edited this page Mar 7, 2015 · 1 revision

New Relic can regulary ping your Dashing installation and provide uptime and performance statistics. If you deploy to Heroku this can be handy because it will wake up your app and prevent it from sleeping after 1 hour (most of the time) and also report on when it goes off line for system maintenance etc.

Dashing is based on Sinatra so the following document provides some general information about this process: https://docs.newrelic.com/docs/agents/ruby-agent/frameworks/sinatra-support

To instrument your Dashing implementation with a New Relic Ruby agent:

  1. Add: gem 'newrelic_rpm' to your $DASHING_HOME/Gemfile then run: bundle install

  2. Edit $DASHING_HOME/config.ru and add: require 'newrelic_rpm'

  3. Create $DASHING_HOME/config directory and add your downloaded newrelic.yml file

  4. Edit the newrelic.yml file to add your app_name and any other settings

  5. Restart Dashing and check for the newrelic_agent.log file. Enable Auditing to view what is being sent to New Relic.

Originally resolved up by https://github.com/bubbajoelouis at https://github.com/Shopify/dashing/issues/233

Clone this wiki locally