(01)Install New Relic
Linux
1curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash2sudo NEW_RELIC_API_KEY=NRAK-xxx NEW_RELIC_ACCOUNT_ID=1234567 /usr/local/bin/newrelic install -yAPM and infrastructure monitoring — agent install
What is this?
New Relic monitors application performance and infrastructure with agents and a cloud dashboard.
Step 01
1curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash2sudo NEW_RELIC_API_KEY=NRAK-xxx NEW_RELIC_ACCOUNT_ID=1234567 /usr/local/bin/newrelic install -yStep 02
1# Java: -javaagent:/path/newrelic.jar2# Node: require('newrelic') as first line3export NEW_RELIC_LICENSE_KEY=your-key4export NEW_RELIC_APP_NAME="My App"Step 03
1newrelic entity search --name 'My App'Step 04
1sudo systemctl status newrelic-infra2newrelic entity search --name 'My App'3# Verify license key:4echo $NEW_RELIC_LICENSE_KEY