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

How to close alert when Datadog monitor recovers

Frank Szymanski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2024

We are using the Datadog integration and our monitors create alerts by messaging opsgenie-service. However, I can't get things working to close the alert when the datadog monitor recovers. I thought we could just tag opsgenie-close, but it looks like that needs to come out of the event stream and not the alert?

Is there something that we need to set up in OpsGenie to implement this?

1 answer

0 votes
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2024

Hi @Frank Szymanski ,

Opsgenie closes alerts by matching the alias field of an incoming 'close' payload with the alias of an existing open alert. So, two things need to be true to close an alert via an incoming payload:

  1. The payload must match the integration's filter for the 'close' action
  2. The alias must parse to the same value as the value of the open alert being closed

To get the alias to to be the same, you must be sure that both the 'close' and 'create' actions use the same dynamic field or combination of dynamic fields, so that they ultimately parse to the same value.

Here is a screenshot of the 'close' action in the Datadog integration, which must contain the same dynamic fields as the 'create' action:

2024-02-22_12-56-56.png2024-02-22_12-56-18.png

Frank Szymanski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2024

Thanks. We eventually figured it out, but the confusion came from the documentation talking about using opsgenie-acknowledge and opsgenie-close when we really needed to just keep the same opsgenie-service in the monitor.

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events