Skip to main content

New Relic

Full-stack observability from one platform. New Relic's unified NRDB stores all your telemetry — APM traces, infrastructure metrics, browser RUM, logs, and synthetic results — and lets you query and correlate everything with NRQL, a powerful SQL-like query language.

✓ APM + distributed tracing ✓ NRQL unified query language ✓ 100GB/month free tier ✓ Browser RUM + synthetic

What is New Relic?

New Relic is a cloud observability platform that ingests all telemetry types — metrics, events, logs, and traces (MELT) — into a single database called NRDB. Unlike traditional monitoring tools that store each signal type separately, NRDB enables cross-signal correlation: jump from an error event to the distributed trace to the infrastructure metrics to the log line, all within a single query or UI flow.

New Relic's APM agents automatically instrument your application code with zero configuration changes. The agent patches your HTTP framework, database drivers, and cache clients at startup, injecting tracing headers and recording timing data without requiring manual span creation.

Platform Capabilities

APM Agent Setup (Node.js)

// New Relic APM — Node.js auto-instrumentation
// 1. Install the agent
// npm install newrelic

// 2. newrelic.js (project root — loaded before everything else)
'use strict';
exports.config = {
  app_name: ['My Application'],
  license_key: process.env.NEW_RELIC_LICENSE_KEY,
  logging: { level: 'info' },
  allow_all_headers: true,
  distributed_tracing: { enabled: true },
  application_logging: {
    forwarding: { enabled: true },
    local_decorating: { enabled: true },
  },
  transaction_tracer: {
    enabled: true,
    transaction_threshold: 'apdex_f', // trace transactions slower than Apdex threshold
    record_sql: 'obfuscated',
    explain_threshold: 500, // ms — log slow query explain plans
  },
};

// 3. Require newrelic as FIRST LINE of your entry point
require('newrelic');
const express = require('express');

NRQL Query Examples

-- NRQL (New Relic Query Language) Examples

-- Error rate over the last hour
SELECT percentage(count(*), WHERE error IS TRUE)
FROM Transaction
WHERE appName = 'my-app'
SINCE 1 hour ago

-- P95 response time by endpoint
SELECT percentile(duration, 95)
FROM Transaction
WHERE appName = 'my-app'
FACET request.uri
SINCE 30 minutes ago

-- Throughput (requests per minute)
SELECT rate(count(*), 1 minute)
FROM Transaction
WHERE appName = 'my-app'
TIMESERIES 1 minute
SINCE 1 hour ago

-- Database slow queries
SELECT average(databaseDuration), count(*)
FROM Transaction
WHERE databaseDuration > 0.1
FACET databaseType
SINCE 1 day ago

Agent Installation (Other Languages)

# Python
pip install newrelic
newrelic-admin generate-config $NEW_RELIC_LICENSE_KEY newrelic.ini
NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn app:application

# Java (via -javaagent JVM flag)
wget https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic.jar
java -javaagent:newrelic.jar -jar your-app.jar

# Go
go get github.com/newrelic/go-agent/v3/newrelic

# Infrastructure Agent (Linux)
curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash
newrelic install

New Relic vs Datadog

Dimension New Relic Datadog
Pricing modelPer GB ingested + user seatsPer host per month
Free tier100GB/month + 1 full user14-day trial only
Query languageNRQL (SQL-like, unified)Per-product query languages
Integrations500+800+
Best forApp-centric teams, startupsInfra-heavy, large-scale
Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →