New Relic | Sheetly Cheat Sheet

Last Updated: November 21, 2025

New Relic

Application performance monitoring

Core Products

Item Description
APM Application performance
Infrastructure Server monitoring
Browser Real user monitoring
Synthetic Proactive monitoring
Logs Log management
Alerts Intelligent alerting

Agent Setup (Node.js)

// Install
npm install newrelic

// newrelic.js config
exports.config = {
  app_name: ['My Application'],
  license_key: 'your_license_key',
  logging: {
    level: 'info'
  }
};

// Add to app entry point
require('newrelic');
const express = require('express');
const app = express();

Custom Instrumentation

const newrelic = require('newrelic');

// Custom transaction
newrelic.startWebTransaction('myTransaction', function() {
  // Your code
});

// Custom attribute
newrelic.addCustomAttribute('userId', '12345');

// Record metric
newrelic.recordMetric('Custom/MyMetric', 42);

// Notice error
newrelic.noticeError(new Error('Something went wrong'));

Best Practices

  • Add custom attributes for context
  • Use transaction tracing for slow requests
  • Set up alerts for Apdex score
  • Monitor key transactions separately

💡 Pro Tips

Quick Reference

New Relic provides deep application insights

← Back to Data Science & ML | Browse all categories | View all cheat sheets