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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Site Admin
TAGS
Community showcase
Published in Opsgenie

New! Investigate and re-deploy stable deployments from the Incident Investigation view in Opsgenie

We’re excited to announce the latest enhancement to Opsgenie’s Incident Investigation view. Now when an incident occurs users can select the previous stable deployment, and begin the redeployment pro...

305 views 0 3
Read article

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