Is there a way to resolve alerts instead of close them via the API?

Witold Gren
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!
June 4, 2020

Current I use OpsGenie with Prometheus and I have a big problem. Alertmanager creates new alert and after a while it closes this alert during this operation opsgenie always creates new alerts, not de-duplicate existing alert. The reason why this happens is because OpsGenie not solving the alarms but closing them. In summary, I have a very large number of the same alerts that should be duplicated.

In web app it it impossible to select a status other than closed.

1 answer

0 votes
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2020

Hi @Witold Gren - Opsgenie doesn't have an alert state of "Resolved". Alerts are either open or closed. However, there is the "acknowledge" action you can take on an alert.

 

What you  could do is edit the opsgenie_config in Prometheus and change "send_resolved" to FALSE - so that Prometheus does not send anything to Opsgenie when the alert is resolved, this will stop the alert from being closed in Opsgenie automatically.

 

There isn't really anything that could be adjusted on the Opsgenie side though, as the Prometheus integration is just sending requests to Opsgenie's alert API, so it's setup to post to the "Close Alert" endpoint when the alert is resolved if that "send_resolved" is set to True. 

 

Thanks,

Samir

Witold Gren
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!
June 9, 2020

Thanks Samir for response, but this information not solve my problem. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events