<style>p { margin: 0; }span.fr-emoticon.fr-emoticon-img { background-repeat: no-repeat !important; font-size: inherit; height: 1em; width: 1em; min-height: 20px; min-width: 20px; display: inline-block; margin: -0.1em 0.1em 0.1em; line-height: 1; vertical-align: middle; } span.fr-emoticon { font-weight: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; display: inline; line-height: 0; } blockquote { border-left: solid 2px #5e35b1; color: #5e35b1; margin-left:0; padding-left:5px;}blockquote blockquote{ border-color: #00bcd4; color: #00bcd4;}blockquote blockquote blockquote{ border-color: #43a047; color: #43a047;} table.grid{ border-collapse: collapse;} table.grid td, table.grid th { border: 1px solid #ddd;} .fr-fic.fr-dib{ display: block; margin: 5px auto;}.fr-fic.fr-dib.fr-fir{ text-align: right; margin: 5px 0 5px auto;}.fr-fic.fr-dib.fr-fil{ text-align: left; margin: 5px auto 5px 0;}.fr-fic.fr-dii{ float: none; margin: 5px auto;}.fr-fic.fr-dii.fr-fil{ float: left; margin: 5px auto;}.fr-fic.fr-dii.fr-fir{ float: right; margin: 5px auto;}img.fr-dib.fr-fir { margin-right: 0; text-align: right;}img.fr-dib.fr-fil { margin-left: 0; text-align: left;}img.fr-dib { margin: 5px auto; display: block; float: none;}img.fr-bordered { box-sizing: content-box; border: solid 5px #CCC;}img.fr-shadow { box-shadow: 10px 10px 5px 0px #cccccc;}img.fr-rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;}</style><p><strong>In this guide we will cover:</strong></p><p id="isPasted"><strong>- What is the New Relic Integration?</strong></p><p><strong>- How to connect to the New Relic Integration</strong></p><p><strong>- Choosing an Integration version</strong></p><p><strong>- Legacy- Halo Integrator method</strong></p><p><strong>- Current - Webhooks</strong></p><p><strong>- Viewing Alerts</strong></p><p><br></p><p><br></p><p><strong><span style="font-size: 14pt;">What is the New Relic Integration?</span></strong></p><p>The New Relic integration allows you to manage incidents from New Relic in your Halo instance. When a issue is raised in New Relic this will create a ticket in your Halo instance. This can then be resolved either in Halo or in New Relic, when resolved in one application this will close the alert/ticket in the other application too. </p><p><br></p><p>A new integration method is available which allows issues to log tickets in Halo using webhooks. This method will process alerts faster also allowing logged tickets to pull in the priority and associated asset info from New Relic. When the issue is closed in New Relic the ticket in Halo can be updated with a chosen status rather than the ticket closing. </p><p><br></p><p><strong><span style="font-size: 14pt;">How to connect to the New Relic Integration</span></strong></p><p>First head to Configuration > Integrations > Incident Management and enable the New Relic integration module. </p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI4MjA1YjBmLWQ3MjYtNDVlNi1iZDUzLTFjYTlmNDE0NDRlYSJ9.42DtfkUwvFHJrCd5yjHAEzrPjQRupMG7-MOuCl75hOI" class="fr-fic fr-fil fr-dib" width="228" style="width: 230px; height: 151.033px;" height="151"></p><p><strong><span style="font-size: 10pt;">Fig 1. Enable integration module</span></strong></p><p><br></p><p>Once enabled click into the integration module to see the integration setup screen. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjczZmQyNjVmLTQ5YjQtNGVlMC1hOGU5LTcwNzM1MzQ2NmY5MiJ9.KzEy-FpjE7K7OQ5i620Eb7G0Ts8mbO-b21wg8TrsGek" class="fr-fic fr-fil fr-dib" width="1224" style="width: 1226px; height: 565.477px;" height="565"></p><p><strong><span style="font-size: 10pt;">Fig 2. Integration setup page in Halo</span></strong></p><p><br></p><p>Here, you will first need to select the Location that your New Relic instance is hosted in, options include 'Europe' or 'Rest of the World'. Then you will need to enter an API key. </p><p><br></p><p><strong><span style="font-size: 12pt;">Obtain API key</span></strong></p><p>You will need to obtain a User API Key from new Relic. </p><p><br></p><p>To obtain this head into you new Relic instance > select your profile > Administration area > API keys > Create Key, when creating a key choose 'User' as the 'Key Type'. Name the key and create. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjAyYmZhY2ZkLTNjMjgtNDA1OC1iNzU2LTU1NDRhZWIzMjMxYiJ9.9oExoR8Z3SoAJzWkDjCQWtzKXo-dz-B-Tgtwf_mWb3M" class="fr-fic fr-fil fr-dib" width="500" style="width: 502px; height: 549.392px;" height="549"></p><p><strong><span style="font-size: 10pt;">Fig 3. Create API key in New Relic</span></strong></p><p><br></p><p>Once created copy the key and paste it into the 'API Key' field in Halo. To validate your connection use the 'Validate API Key' button (you may need to validate twice before a success message appears).</p><p><br></p><p><strong><span style="font-size: 14pt;">Choosing an Integration version</span></strong></p><p>Only follow the section in line with the integration method you are using, we recommend using the 'Current' method as this supports all functionality. </p><p><br></p><p><strong><span style="font-size: 14pt;">Legacy- Halo Integrator method</span></strong></p><p>In the 'Integration Version' field choose 'Legacy' in the 'Integration Version' field.</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjFkODdiYTYyLTUxYzgtNDIxNi1iNjFjLWE3MzY0ZjczOWQ3OCJ9.W6zHPxP7vxHKnIRUHkQo43DSEF17u0i4F7GgBPhAb9w" class="fr-fic fr-fil fr-dib" width="833" style="width: 835px; height: 384.118px;" height="384"></p><p><strong><span style="font-size: 10pt;">Fig 4. Legacy integration version</span></strong></p><p><br></p><p><strong><span style="font-size: 12pt;">Configuring Ticket Creation</span></strong></p><p>Now you have connected you will need to determine what ticket type is used when new tickets are created from New Relic incidents and which user will be the end user of these tickets. This is determined using the fields highlighted in figure 5 (these fields will be under the 'Incidents' tab). </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImJjODhhMTFiLTE4ODUtNGI2Mi1hN2EwLWEzZmE0MjI0MTViZCJ9.LqFy3pRi9Tmtcyql96xdE0y3ZlDKRNzdoRaadgYU_M4" class="fr-fic fr-fil fr-dib" width="1190" style="width: 1192px; height: 199.113px;" height="199"></p><p><strong><span style="font-size: 10pt;">Fig 5. Settings to determine ticket type and user for alerts from Relic </span></strong></p><p><br></p><p>We recommend creating a new service user dedicated for New Relic alert tickets, to make reporting on these alerts easier. </p><p><br></p><p><strong><span style="font-size: 12pt;">Enabling Sync</span></strong></p><p>To have incidents/alerts imported on a recurring schedule and updates synced back to Relic you will need to enable the Halo integrator for the integration. This is enabled using the setting highlighted in figure 6. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImE5NmFjZjM4LTBhNzktNDY5MS1iYjMyLTY3N2RkMTM5YTY0NSJ9.O2VkWHvzlT6rumo_ta_LzCOWUr7UJIJpc-LHQMpiqPc" class="fr-fic fr-fil fr-dib" width="845" style="width: 847px; height: 534.904px;" height="535"></p><p><strong><span style="font-size: 10pt;">Fig 6. Enable Halo integrator for New Relic</span></strong></p><p><br></p><p>Once enabled the integrator will run for this integration on a daily basis (once every 24 hours). Therefore, alert tickets and incidents in Relic will be updated on a daily basis after the integrator has run. </p><p><br></p><p><strong><span style="font-size: 14pt;">Current - Webhooks</span></strong></p><p>When this integration version is chosen additional functionality will be available including a faster syncing of alerts, mapping New Relic and being able to choose the status the ticket moves to when the New Relic issue is closed. </p><p><br></p><p>To use this method choose 'Current' in the 'Integration version' field. </p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4Zjg3YjJmLTIyMDQtNGM3Zi1iZWJlLTkyNWRiMjY0MGQzYyJ9.L0tjK7Jbrx8cVhsXXkPJ1zGYElHxvj9NUhvM94mdFjA" class="fr-fic fr-fil fr-dib" width="843" style="width: 845px; height: 483.134px;" height="483"></p><p><strong><span style="font-size: 10pt;">Fig 7. Current Integration version</span></strong></p><p><br></p><p>When this method is chosen you will need to enter your New Relic account ID that is tied to the API key generated for connection. You account ID can be seen when generating the API key, as shown in figure 3. </p><p><br></p><p>In order to have issues in New Relic log tickets in Halo you will need to setup a webhook in New Relic which will be used to send a request to Halo to create a ticket when an issue is raised. Navigate to the 'Issues' tab, here you will be provided the details you need.</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjFhMTA3ZGU0LTM5Y2UtNDE4OS1iNWJmLTgxOTRjZWI5NGU3ZCJ9.8EgGJswDnT6XMxjZF9-muLfEnqA9GiH3u-QPswLDI0s" class="fr-fic fr-fil fr-dib" width="1520" style="width: 1522px; height: 769.152px;" height="769"></p><p><strong><span style="font-size: 10pt;">Fig 8. Issues tab</span></strong></p><p><br></p><p><strong><span style="font-size: 12pt;">Webhook setup- Use the following steps to setup a webhook in New Relic </span></strong></p><p>1. Select the 'Alerts' section and create an 'Alert Condition' and an 'Alert Policy'.</p><p>2. Go to the 'Destinations' section within 'Alerts'. Create a new 'Destination' that targets your Halo Endpoint URL. </p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjQ4ZDc1YzAyLTA1MzUtNDM1Yi04ZWEwLTY2ZTc1MWNmNDQyYyJ9.l5_fp1X3xm7q8vR0i4VK8HP1RE4fOuhH57oACr0M82s" class="fr-fic fr-fil fr-dib" width="1578" style="width: 1580px; height: 683.311px;" height="683"></p><p><strong><span style="font-size: 10pt;">Fig 9. Create New alert destination</span></strong></p><p><br></p><p>The Endpoint URL can be obtained by selecting the 'Webhook Configuration' button on the integration setup page in Halo.</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjlkOTk2NjllLTdkNjMtNGY3NS1iMmJkLTg4M2ZjNzFkZmU2YSJ9.QmWDQQCEDHYE6poXj-oJyAFETkykyNZSEfWePVcQecw" class="fr-fic fr-fil fr-dib" width="1188" style="width: 1190px; height: 724.985px;" height="725"></p><p><strong><span style="font-size: 10pt;">Fig 10. Webhook configuration Button</span></strong></p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRiMjg5MGI3LWMyNWItNDQwZS1hNzQ5LTc1MTcyYmI4OTRjYyJ9.0_pONlRJ99jIj1HZqBlz2sdP3u8760Av4xKfL4LRQ8A" class="fr-fic fr-fil fr-dib" width="645" height="588"></p><p><strong><span style="font-size: 10pt;">Fig 11. Endpoint URL for New Relic webhook</span></strong></p><p><br></p><p>Then ensure you choose 'Basic Authentication' for your webhook. The username and password required can be viewed/generated from the integration setup page in Halo (figure 10). </p><p><br></p><p>Once your destination is saved go to the 'Workflows' section and create a new 'Workflow'.</p><p><br></p><p>Configure filters to determine which issues will trigger an alert and then add a new notify channel with the type webhook. Select the previously created 'Destination' and in the 'Payload' copy and paste the templated payload provided in the integration setup page in Halo (figure 11). </p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjgwYTYyMjA4LWRmNTItNDIxNC1hMWQ5LTNlNGQwNDc5YWUxZSJ9.ukspNzK554GyNvNFNFsOwt_b6XCNIWR2HHV-26DYWMU" class="fr-fic fr-fil fr-dib" width="1520" style="width: 1522px; height: 772.559px;" height="773"></p><p><strong><span style="font-size: 10pt;">Fig 12. Webhook destination and payload</span></strong></p><p><br></p><p><strong><em>Note: If you would like the ticket logged to be associated with the asset the alert originated from ensure you include the JSON key/value pair "impactedEntities": {{json entitiesData.names}} in the webhook payload. </em></strong></p><p><br></p><p>Once the workflow is saved, webhook setup is complete. </p><p><br></p><p><strong><span style="font-size: 12pt;">Configure How Alerts are Logged</span></strong></p><p>Head back to the integration setup page in Halo to complete further configuration. </p><p><br></p><p><strong>Status after Issue is closed in New Relic</strong> - Here, choose the status you would like tickets in Halo to have when the issue is closed in New Relic. If you would like the ticket to be closed when the issue is closed ensure you choose the 'Closed' status here. </p><p><strong>Ticket Type for New Tickets</strong> - Determines which ticket type will be used to log alerts from New Relic. You may wish to create a dedicated ticket type for this or use the 'Alert' ticket type. If you would like the ticket logged to contain priority information from New Relic, ensure the ticket type has the 'Priority' field in the field list.</p><p><strong>User for New Tickets </strong>- Determines the user tickets logged from alerts will be assigned to. </p><p><br></p><p><strong><em>Note: The ticket type logged and user the ticket is assigned to can be dynamic based on the alert by customising the JSON payload for the webhook. </em></strong></p><p><br></p><p>In order to have the ticket logged assigned the correct priority based on it's New Relic priority ensure you complete the 'Priority Mappings' table as shown in figure 13. </p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNDJkZDVkLTM2NDAtNDg1ZC04Y2E0LTk5MTdlYjg3MzY5YyJ9.NJe1adgpw14JvLj2WVUSfp6ihtjwy2qWgrFsJbvKCRU" class="fr-fic fr-fil fr-dib" width="1468" style="width: 1470px; height: 247.351px;" height="247"></p><p><strong><span style="font-size: 10pt;">Fig 13. Priority Mappings</span></strong></p><p><br></p><p><strong>Associate related assets with new Tickets</strong> - Enable this if you would like the logged ticket to be associated with the asset that the alert originated from. </p><p><br></p><p><strong><span style="font-size: 12pt;">Syncing to New Relic</span></strong></p><p>When the alert ticket is closed off in Halo the linked New Relic issue will be closed too. If you would like a message to appear in Halo each time this sync occurs enable 'Show a message for each successful sync to New Relic'.</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImVkMTMzOWI1LTJjNDItNDg3Yi1hNDI1LTYwNzU5OTE5NWE5NiJ9.-cMcFWToIeMJLdPQqLysHW9vQArT09PB08cnNHeXml8" class="fr-fic fr-fil fr-dib" width="551" height="134"></p><p><strong><span style="font-size: 10pt;">Fig 14. Show a message for each successful sync to New Relic</span></strong></p><p id="isPasted"><br></p><p><strong><span style="font-size: 14pt;">Viewing Alerts</span></strong></p><p>Once the integration is connected incidents in New Relic will create tickets in Halo. The summary of the ticket will contain details of the incident, including:</p><p> Alert/Incident name</p><p>Threshold and conditions for triggering</p><p>Entity that triggered the alert/incident</p><p><br></p><p>If you are using the 'Current' integration method additional information will be added to the ticket logged if configured to do so. </p>