Integrating with New Relic
New Relic provides a suite of tools for tracking the performance of your cloud services. Use alerts from New Relic to power incidents and notifications in FireHydrant.
Configuration steps
-
First, you need to authorize the New Relic integration on FireHydrant's integrations page.
-
Once you click Authorize Application, you'll see a webhook URL provided.
-
In your New Relic account, click the Alerts & AI navigation item and, in the sub-navigation, click Destinations. In the Add a destination section near the top of the page, click the Webhook button.
-
Give your webhook a unique name, and paste the URL that was given to you in FireHydrant for the Endpoint URL. Then, click the Save destination button at the bottom.
-
From the Alerts & AI sub-navigation, click Alert conditions (policies) and find the policy for which you'd like to foward alerts to FireHydrant. Open the policy's Notification settings page and add a new workflow (or, if you already have an existing workflow, open its configuration form).
-
Click the Webhook button in the Add channel section to open a slideover form. Give the channel a name, select your FireHydrant webhook in the Destination dropdown and, for the payload, paste in the following:
{
"issue": {
"id": {{ json issueId }},
"title": {{ json issueTitle }},
"description": {{ json annotations.description.[0] }},
"priority": {{ json priority }},
"state": {{ json state }},
"created_at": {{ json createdAt }},
"closed_at": {{ json closedAt }},
"url": {{ json issuePageUrl }}
}
} -
Click the Save message button at the bottom of the page, or alternatively, the Send test notification button to send a test alert to FireHydrant. You should then see the alert logged on the FireHydrant New Relic configuration page (where you originally got the URL) under Alert Routing.
Using Alert Routes with New Relic
Once your New Relic instance is configured, you can setup Alert Routes to take action on your alerts based on the data included in the alert. You can automatically open new incidents, send alerts to any Slack channel, log an alert in FireHydrant, or simply ignore it. To learn more, read about Alert Routes.