How to Integrate New Relic with PagerDuty

Introduction

New Relic is an all-in-one web application performance tool that lets you see performance from the end user experience down to the line of application code. Combining real user monitoring, application monitoring, and availability monitoring in a single solution built from the ground up, New Relic lets developers and operations teams manage web application performance in real-time. New Relic integration with PagerDuty is done through PagerDuty Connect. Existing PagerDuty customers get New Relic Standard for free! Getting started only takes a few minutes. Just head over to New Relic and sign-up for an account.

In New Relic:

  1. From your New Relic account go to Tools and then select Alert Policies. New Relic Alert Policies
  2. Click on Channels and groups. New Relic Channels & Groups
  3. Click on Create channel and then select PagerDuty as the channel type. Please note that you will need to be an admin to complete this step.Create a New Relic Channel
  4. Click on the Alert with PagerDuty button. Add a PagerDuty Alert
  5. Enter your PagerDuty email and password, then click the Authorize Integration button. Enter your PagerDuty Credentials
  6. Enter a name for your service and select an escalation policy to use for notifications.  Click on the Finish Integration button.  If there is an existing New Relic service, you can also select it for the integration. Finish the PagerDuty Integration
  7. You have now successfully created a PagerDuty channel.  Make sure to select the appropriate Notification level that you’d like to receive alerts, and then click Save my changes. Select notification levels
  8. Next, you’ll want to use this channel as a contact method for your application policies.  Click the Application policies tab. New Relic Application Policies
  9. Find the application policy that you would like to send alerts to PagerDuty, then click on Alert channels. New Relic Alert Channels
  10. Select your newly created PagerDuty channel and then click Save now. Manage your New Relic Channels

Congratulations!  Your PagerDuty – New Relic integration is complete!  Alerts within your application policy will now trigger and resolve PagerDuty alerts.  Below is a sample of a New Relic alert triggering a PagerDuty incident.  Within the PagerDuty interface, there will be a link “View in New Relic” that will take you directly to the associated alert within New Relic. PagerDuty Incident Log New Relic Alert History

FAQ

Can you associate New Relic with more than one PagerDuty service?

Yes, you can tie New Relic to multiple PagerDuty services.  This is extremely useful for dividing your alerts up to different escalation policies so that the proper team is notified for an incident.  You will need to create multiple PagerDuty channels within New Relic.  Once you have created the multiple channels, you will associate the appropriate channel with the appropriate application policy within New Relic.

Will PagerDuty incidents automatically resolve once the New Relic alert is cleared?

Yes, PagerDuty incidents will automatically resolve when the alert ends within New Relic. Do you have additional questions?  Please contact support@pagerduty.com with questions.