📡
Monitoring & Observability

New Relic

APM and infrastructure monitoring — agent install

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

New Relic monitors application performance and infrastructure with agents and a cloud dashboard.

📥

Step 01

Install New Relic

(01)Install New Relic

Linux
1curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash
2sudo NEW_RELIC_API_KEY=NRAK-xxx NEW_RELIC_ACCOUNT_ID=1234567 /usr/local/bin/newrelic install -y
⚙️

Step 02

Configure New Relic

(01)Configure New Relic

Linux
1# Java: -javaagent:/path/newrelic.jar
2# Node: require('newrelic') as first line
3export NEW_RELIC_LICENSE_KEY=your-key
4export NEW_RELIC_APP_NAME="My App"

Step 03

Verify

(01)Verify installation

Linux
1newrelic entity search --name 'My App'
🔧

Step 04

Common Problems

#1Agent not reporting data

Linux
1sudo systemctl status newrelic-infra
2newrelic entity search --name 'My App'
3# Verify license key:
4echo $NEW_RELIC_LICENSE_KEY