NewRelic now supports NodeJS apps. lets monitor our ghost blog using NewRelic :
- Navigate to your Ghost directory and type
npm install newrelic.
- Navigate to
newrelic.jsand paste it in the root directory, where
- Open this file and give
app_namea value. I called it 'My Blog', this is just the name of your app that appears in the NewRelic dashboard, you can name it whatever you want.
- Add your license key to license_key (you can copy it from the NewRelic dashboard when setting up app monitoring).
require('newrelic')before the keyword var. Start Ghost (or restart if you're already running) and, within a few minutes, data should start hitting NewRelic's dashboard.
Recommended books :