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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,459,450
Community Members
 
Community Events
176
Community Groups

Auto close Cloudflare healthcheck webhook alert

Hi,

I've been trying to set up the auto close feature for incoming webhook alerts (cloudflare healthcheck) for some days now.

Current situation: Incoming alerts are working and trigger an alert in opsgenie, which is fine. But when cloudflare sends the "Ok" (or fixed) message, the alert does not get closed. When we started implementing the alert webhook, we even got the "Ok" message as an alert, this was later fixed with a filter for creating alerts like this:

Bildschirmfoto 2023-01-12 um 14.59.51.png

After reading through some posts like this one (https://community.atlassian.com/t5/Opsgenie-questions/Auto-Close-Dynatrace-alert/qaq-p/1957126) and the documentation, my approach was to change the alias of the alert. So I set up a regex to change the alias to the unique ID of the healthcheck. 

Bildschirmfoto 2023-01-12 um 15.00.08.png

But this doesn't seem to close the alert when the issue is resolved in cloudflare. Can we check on Opsgenie side, if the incoming webhook gets the "Ok" message from cloudflare? In cloudflare everything is set up to send the corresponding healthy/unhealthy messages.

Thanks in advance,

Simon

 

1 answer

1 vote
Nick H Atlassian Team Jan 12, 2023

Hi @Simon Kulessa ,

Important to note that our alert API uses a slightly different URL to close an alert vs. when creating an alert. You can review the format / parameters needed here: https://docs.opsgenie.com/docs/alert-api#close-alert

As you can see, an identifier is required in the URL (even if you have the action set to Match All Alerts, and the alias is matching). The alias can be used as the parameter - but again would be required to close an alert.

Hi Nick,

thanks for your quick reply. 

So it seems, that cloudflare has no option to get the identifier of an alert that has been created. We are using the webhook for 32 different healtchecks. 

So it seems to me, that we are unable to use one webhook for every "healthy" status (so to close the alert), but we would need to create a unique webhook for every "alias"?

Best,
Simon

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events