Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,790
Community Members
 
Community Events
184
Community Groups

Opsgenie - New Relic Integration - Destinations

Hello,

With the new update to New Relic, there is no longer an Opsgenie integration but rather a webhook.  

https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/destinations/

I'm following this Opsgenie document but I don't seem to have the API URL when I use the "New" New Relic Opsgenie integration.

https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-new-relic-alerts-new/

If I use the "Legacy" New Relic Opsgenie integration, that provides the API URL, but when I test the connection, the New Relic UI gives a successful result but there is no alert in Opsgenie.

https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-new-relic-legacy/integrate-opsgenie-with-new-relic-legacy

Does anyone have a documented approach that I can borrow?

1 answer

0 votes
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 19, 2022

Hi @Chris ,

If you were to use the v2 New Relic integration, I believe the format of the URL might be something like this:

https://api.opsgenie.com/v2/json/newrelic?apiKey=XXXXX

Testing with Postman - that seems to work:

nr1.jpgnr2.jpg

I gave that a shot using the API key from the New Relic - New Integration.  The New Relic UI accepted it, but after testing it, the alert didn't make its way to Opsgenie -- Alert screen.  

 I am seeing data coming through in the opsgenie logs.  I'm wondering if it is having issues parsing the payload. I used the one in the document referenced above.  Do you have any examples I can try into New Relic?

Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 19, 2022 • edited

Are there any errors in the Opsgenie logs, or indication as to why an alert was not created? This Article my colleague shared might help as well: https://community.atlassian.com/t5/Opsgenie-articles/Integration-not-creating-Opsgenie-alert/ba-p/2070678

Here is a snap shot of the order in which the request come in. 

 

Screen Shot 2022-09-19 at 1.37.41 PM.png

Ok, when I remove this line from this doc, it works.

"current_state": {{#if issueClosedAtUtc}} "closed" {{else if issueAcknowledgedAt}} "acknowledged" {{else}} "open"{{/if}},

https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-new-relic-alerts-new/

I guess the json is off... 

Like Nick H likes this
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 19, 2022

Hi @Chris ,

Based on that screenshot, it appears Opsgenie is trying to close an alert vs. creating one:

nr3.jpg

 

Which leads me to believe the data being sent from New Relic is not matching on what the integration is expecting for an alert to be created. By default Opsgenie is looking to match on one of these two conditions:

nr4.jpg

 

Note the screenshot above is of the integration's Advanced tab which is only available on the standalone Standard and Enterprise plans, or the JSM Premium and Enterprise plans.

 

You should also review what data is parsing in the payload under the Processed incomingData and Received integration request logs. This should help understand whether not Opsgenie is parsing the fields as expected, or determine what might be going on:

nr5.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events