Installing New Relic Agent
npm install newrelic --save
cp node_modules/newrelic/newrelic.js .
or
vi .bash_profile
export NEW_RELIC_HOME="/Users/Claudio"
Add the config
exports.config = {
app_name: ['Demo Node App'],
license_key: 'XXXXX',
logging: {
level: 'info'
}
}
Add the agent to the Node App (automatic detection for Express, Restify) *app.js
const nr = require('newrelic');
Start webserver and see transactions
https://rpm.newrelic.com/accounts/XXXX/applications/YYY/transactions
Created on 11/8/2017