heroku addons:add newrelic
npm install newrelic --save
cp node_modules/newrelic/newrelic.js .
get the New Relic license key:
heroku config:get NEW_RELIC_LICENSE_KEY
edit newrelic.js, editing app name and license key. Optionally change logging level:
level : 'warn' // level options: fatal, error, warn, info, debug, or trace
require newrelic at the beginning of your app's startup script
require('newrelic');
finally, commit and push:
git add . # or if you have other changes, just add newrelic changes
git commit -am'add newrelic monitoring'
git push heroku HEAD:master
If you wish to make changes in the New Relic web interface:
heroku addons:open newrelic