Troubleshoot New Relic
Find troubleshooting solutions for your New Relic account.
This section provides solutions for common New Relic troubleshooting scenarios.
Common Access Problems
New Relic Dashboard says "You do not have permission to view this account"
Select the User Account in the New Relic Dashboard.
Select Log Out from the drop-down menu.
Go to the Site Dashboard and click the Go to New Relic button.
If You Click the Go to New Relic Button and Are Instead Sent to a Log in Screen
Log into the Pantheon Dashboard in an Incognito or Private window. The New Relic accounts are shared via SSO, so loading the page in a private window will force new sign-in credentials. If you can sign in this way, use the steps below to resolve access for your main browser session.
Close all of your open New Relic tabs.
Delete all of the New Relic cookies from your browser (support articles for Chrome or Firefox).
Reload your Pantheon Dashboard.
Click the Go to New Relic button.
If You Are Prompted to Set Up New Relic
You will be prompted to set up New Relic if you try to access New Relic before any traffic reaches an environment.
Visit one of your site pages.
Close the tab and wait a few minutes.
Click the Go to New Relic button.
If you see "We're sorry, you haven't verified your email address yet."
A confirmation email is sent to the site owner to complete the setup process after activating New Relic; Performance Monitoring. The account must be verified before members of the site can access the New Relic dashboard.
If the New Relic account holder (the site owner or user who activated the New Relic® account for the site) did not receive the confirmation email, you can re-send the link by clicking Forgot your password:
Click Forgot your password? on New Relic's login page.
Enter the email address of the site owner.
Click Send my reset link.
Open the email and click the reset link.
Follow the prompts to access your account.
Contact support if you are unsure what user the New Relic account is associated with and are unable to identify where the password reset email has been sent.
Remove Multidev Environments in New Relic
You must manually remove a deleted Multidev environment in New Relic after you delete the Multidev from your Pantheon site.
Go to the Site Dashboard, select the New Relic tab, and click Open New Relic to see APM & Services.
Select the specific APM (application) you want to remove from the APM list, then click the Application tab in the left menu.
Navigate to the bottom of the page, click the Delete application button, then click the Confirmation button when prompted.
Enable Browser Monitoring for Drupal 10.2+
With the release of Drupal 10.2, a change to http headers in Drupal core prevents automatic injection of New Relic Browser Monitoring code. To continue using this feature, manually insert the tracking script into your templates. Visit the New Relic documentation for an example configuration.
Disable New Relic Browser Monitoring Agent
You might encounter situations where New Relic's Browser agent interferes with other systems. For example, the JavaScript tag might cause Google AMP validator failures, such as The tag 'script' is disallowed except in specific forms
. You can resolve many errors by disabling New Relic's browser monitoring agent.
New Relic is disabled on all AMP pages in this example:
$path = $_SERVER['REQUEST_URI'];
$find = '?amp';
$pos = strpos($path, $find);
if ($pos !== false){
if (function_exists('newrelic_disable_autorum')) {
newrelic_disable_autorum();
}
}
The code above should be added to settings.php
for Drupal sites or wp-config.php
for WordPress sites.
To isolate the disabling of New Relic to only AMP pages, the example logic checks the current request for ?amp
. Adjust this example as needed based on your site's implementation of Google AMP and it's corresponding URL patterns.
It is important to note that this method is sensitive to call location. Most customers find success calling this method early in a transaction. For Drupal, this can be done using an event subscriber that listens to the kernel.request
event, for instance.
APM Availability Monitoring
Availability monitoring from APM is heavily outdated, and will not work with the Pantheon platform. You can use the free New Relic Synthetic Lite service as an alternative. Refer to Configure Ping Monitors for Availability for more information.