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.
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 — automatic instrumentation for transactions, database queries, external calls; Apdex scoring
- Distributed Tracing — end-to-end traces across services with W3C Trace Context support
- Infrastructure Monitoring — host metrics, container metrics, Kubernetes cluster monitoring
- Log Management — ingest, search, and correlate logs with traces and errors
- Browser Monitoring (RUM) — real user page load times, Core Web Vitals, JS error tracking
- Synthetic Monitoring — scripted browser and API tests from global locations
- Mobile Monitoring — crash reporting and performance for iOS and Android
- Alerts — NRQL-based alert conditions, anomaly detection, notification routing
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 model | Per GB ingested + user seats | Per host per month |
| Free tier | 100GB/month + 1 full user | 14-day trial only |
| Query language | NRQL (SQL-like, unified) | Per-product query languages |
| Integrations | 500+ | 800+ |
| Best for | App-centric teams, startups | Infra-heavy, large-scale |
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
JSON Formatter & Validator
Format, beautify, and validate JSON online. Paste your JSON to instantly pretty-print it with 2-space, 4-space, or tab indentation. Minify JSON too. Free, runs in your browser.
Open free tool →
Regex Tester
Free regex tester. Test regular expressions against multiple strings with expected match/no-match assertions — see instant pass/fail results. Built-in presets for email, URL, IPv4, and phone. Pro: unl
Open free tool →
Base64 Encoder & Decoder
Free Base64 Encoder & Decoder. Convert text, images, and any file to Base64 and back. Supports URL-safe Base64, image data URIs, and file download from Base64. Runs 100% in your browser — no data sent
Open free tool →
More Free Tools
Related Articles
curl 深度使用手冊:API 測試從入門到進階
curl 是每位開發者必備的 CLI 工具。本文涵蓋 GET/POST/PUT/DELETE 請求、認證、header 設定、檔案上傳、除錯技巧,以及 REST API 測試的完整實戰範例。
Best AI Code Review Tools 2026: CodeRabbit, Sourcery, DeepCode & Bito Compared
Compare top AI code review tools for 2026: CodeRabbit, Sourcery, DeepCode, and Bito. Features, pricing, GitHub/GitLab integration, and choosing the right tool for your team.
AI Code Review Tools 2026: GitHub Copilot, CodeRabbit, Qodo Merge Ranked
Compare AI code review tools for 2026: GitHub Copilot code review, CodeRabbit, Qodo Merge, Sourcery, and PR-Agent. Pricing, accuracy, and GitHub integration.
AI Coding Tools Comparison 2026: GitHub Copilot vs Cursor vs Windsurf vs Cline
Comprehensive comparison of the best AI coding tools in 2026: GitHub Copilot, Cursor, Windsurf, and Cline. Pricing, features, model support, and real-world benchmarks.
AI Pair Programming in 2026: GitHub Copilot vs Cursor vs Claude Code
Master AI pair programming in 2026. Compare GitHub Copilot, Cursor, and Claude Code for autocomplete, chat, and agentic workflows. Includes setup guides and productivity tips.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →