Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

OpsGenie Integration

SOLVED

OpsGenie Integration

Hi...I'm setting up the AppDynamics to OpsGenie Integration via an HTTP request.  On the OpsGenie side the dup detect field is called alias and needs to be unique per alert that comes in from AppDyanmics.  Would the AppDynamics parameter INCIDENT_ID be the most unique field per alert that is sent into OpsGenie?  Does anyone have a sample of what they have used for the alias field in OpsGenie?

OpsGenie Integration
6 REPLIES 6
Producer

Re: OpsGenie Integration

By default, the OpsGenie AppD integration uses {{incident_id}} as the Alias.

Re: OpsGenie Integration

I just noticed that for SaaS based EUM Alerts incident_id value is not populated. What is another value I can use for SaaS EUM alerts?
Producer

Re: OpsGenie Integration

Check the Payload within the HTTP Request Template you've setup in AppDynamics for OpsGenie.

If you want to use incident_id, the payload should include the following within it:
"incident_id": "${latestEvent.incident.id}"

Re: OpsGenie Integration

Hi...yes I have that coded in my payload.  For this type of event EUM_CLOUD_SYNTHETIC_CONFIRMED_ERROR_EVENT the value is:

DEBUG Null reference [template 'payload', line 21, column 17] : ${latestEvent.incident.id} cannot be resolved.
DEBUG Null reference [template 'payload', line 22, column 19] : ${latestEvent.incident.name} cannot be resolved.

 

My payload values are:

{
"event_name": "${latestEvent.displayName}",
"event_guid": "${latestEvent.guid}",
"event_id": "${latestEvent.id}",
"policy": "${policy.name}",
"event_time": "${latestEvent.eventTime}",
"app_id": "${latestEvent.application.id}",
"app_name": "${latestEvent.application.name}",
"event_message": "${latestEvent.eventMessage}",
"severity": "${latestEvent.severity}",
"event_deep_link": "${latestEvent.deepLink}",
"controller_url": "${controllerUrl}",
"node_id": "${latestEvent.node.id}",
"node_name": "${latestEvent.node.name}",
"summary": "${latestEvent.summaryMessage}",
"event_type": "${latestEvent.eventType}",
"tier_id": "${latestEvent.tier.id}",
"tier_name": "${latestEvent.tier.name}",
"health_rule_id": "${latestEvent.healthRule.id}",
"health_rule_name": "${latestEvent.healthRule.name}",
"incident_id": "${latestEvent.incident.id}",
"incident_name": "${latestEvent.incident.name}"
}

Re: OpsGenie Integration

Policy based events don't have incident_id in the payload, so what is the best alias value for a Policy based alert?

Re: OpsGenie Integration

I was able to use event_guid for Policy based events.