Magento Open Source 2.1.x

New Relic Reporting

New Relic is a SaaSSoftware as a Service: A software delivery model where the vendor provides the software and hosting environment, and customers pay for the service by subscription or per use. based subscription service that provides detailed real-time visibility into business and performance metrics for data-driven decision making.

Step 1: Sign Up for a New Relic Account

Visit the New Relic website, and sign up for an account. You can also sign up for a free trial account.

Follow the instructions on the site. When prompted choose the product that you want to install first.

While you are in your account, locate the following credentials that you will need to complete the configuration:

  • Account ID

    From your New Relic account dashboard, the Account ID is the number in the URL after: /accounts

    Application ID

    From your New Relic account dashboard, tap New Relic APM. In the menu, choose Applications. Then, choose your application. The Application ID is the number in the URL after: /applications/

    New Relic API Key

    From your New Relic account dashboard, tap Account Settings. In the menu on the left under Integrations, choose Data Sharing. Your API key can be created, regenerated, or deleted from this page.

    Insights API Key

    From your New Relic account dashboard, tap Insights. In the menu on the left under Administration, choose API Keys. Your Insights API Key(s) appear on this page. If necessary, click the plus sign (+) next to Insert Keys to generate a key.

Step 2: Install the New Relic Agent on Your Server

To use New Relic APM Pro to gather and transmit data, the PHP agent must be installed on your server.

When prompted to choose a web agent, tap PHP.

Follow the instructions to set up the PHP agent on your server. If you need help, see: New Relic for PHP.

Make sure that cron is running on your server. To learn more, see:  Configure and run cron.

Step 3: Configure Your Store

On the Admin menu, tap Stores. Then under Settings, choose Configuration.

In the panel on the left under General, choose New Relic Reporting. Then, do the following:

Set Enable New Relic Integration to “Yes.”

In the Insights API URL, replace the percent (% symbol with your New Relic Account ID.

Enter your New Relic Account ID.

Enter your New Relic Application ID.

Enter your New Relic API Key.

Enter you Insights API Key.

In the New Relic Application Name field, enter a name to identify the configuration for internal reference.

When complete, tap Save Config.

Step 4: Enable Cron for New Relic Reporting

Expand the Cron section.

Set Enable Cron to”Yes.

When complete, tap Save Config.