How To: Use New Relic with Dashing
Clone this wiki locally
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:
Add: gem 'newrelic_rpm' to your $DASHING_HOME/Gemfile then run: bundle install
Edit $DASHING_HOME/config.ru and add: require 'newrelic_rpm'
Create $DASHING_HOME/config directory and add your downloaded newrelic.yml file
Edit the newrelic.yml file to add your app_name and any other settings
Restart Dashing and check for the newrelic_agent.log file. Enable Auditing to view what is being sent to New Relic.