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?
Hi @[deleted] ,
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:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is a snap shot of the order in which the request come in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted] ,
Based on that screenshot, it appears Opsgenie is trying to close an alert vs. creating one:
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:
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.