Monitoring Ghost with New Relic
New Relic is a fantastic monitoring software that will give you insight into what is happening on your server and within Ghost. New Relic monitoring can be added into your Ghost installation within 5 minutes and you will start recieving data shortly after.
To get started head over to New Relic and signup for an account. You will automatically be signed up for a free trial of their pro account. But don't worry, once the account expires your data will remain and your account will be downgraded to the free account. Once your account is created you will need to get your unique license key from your account. Click here for New Relic documentation on how to find your license key.
The rest of the setup will be done on your server, so ssh into your server and
cd to your Ghost directory:
cd /var/www/ghost/ npm install newrelic sudo cp /var/www/ghost/node_modules/newrelic/newrelic.js /var/www/ghost sudo vim /var/www/ghost/newrelic.js
In the newrelic.js file you will need to edit two lines. First, you can change
app_name to anything to help you identify the data in your New Relic account. And second you will need to edit
license_key to be your New Relic license key. app_name : ['My Application'],
license_key : 'license key here',
app_name : ['Ghost'], license_key : 'New Relic License Key',
Last you need to tell Ghost to use New Relic. To do this all you have to do is edit
index.js and add the following two lines to the top of the file:
//New Relic require('newrelic');
When you update Ghost your
index.jsfile will get over written and you will have to add the
Now just restart Ghost and Ghost will include the New Relic monitoring software and start reporting data to your New Relic account shortly. You can also checkout the New Relic iPhone app for notifications about the performance of Ghost and the hardware it is running on.