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
Community Members
Community Events
Community Groups

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

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 Jun 05, 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 for response, but this information not solve my problem. 

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

158 views 0 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you