You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Join now to unlock these features and more
I'm trying to create a global policy so that when an incident is created within OpsGenie another team should have an alert generated, or be notified in some way.
From investigating, it looks like when an incident is created an alert is autogenerated for the incidents owning team that corresponds to this - looking at these alerts, I can see some commonality that is unique to them, such as 'Incident-id' fields in the extra properties fields, which seem to be good options to use to trigger the policy.
From testing however we seem to be running into issues with doing things this way.
It seems that irrespective of what option we set for the condition - ie message, description etc this seems to never trigger.
Has anyone been able to set something like this up and if so how did you go about it?
I'm trying to avoid enforcing how incidents should be raised, since this goes against our normal approach of letting teams work in the best ways for them hence the use of global policies and trying to use what OpsGenie auto fills on alerts generated by incident creation, rather than forcing the use of tags etc.
You can definitely use global policies to pull this off. You will want to use the responder alert or the owner-type alerts to key off within the policy. Here is an example video I put together showing this in action: https://app.screencast.com/5QmvchVRuUzHh
Please do let me know if you have any questions or need some clarifications on anything in the video Darren
Thats incredibly helpful. I'd actually just configured something using that very key-value string earlier this morning while poking around with it again. So its great to have confirmation that this was the right course to take.
Will let you know if we have any issues with this.
Thanks again :)
Hey @Chris DeGidio we've tested implementing this with one or two minor additions based on some different values we've seen thrown up by alerts for the key-value, however this only seems to trigger when manually creating incidents. We have some incident rulings that sometimes auto generate incidents too, which seem to be missed by this config - having checked the key-values we're tracking, they look to match what the ruling has set up.
Any ideas why this may not be working for incident ruling generated incidents?
This is the policy we have set upAnd the tracked key-values form the alert that was generated by the incident created by the incident ruling, showing they match what the policy is tracking against. Thanks.
Hi @Darren_Burrows I have used global policies such that when an alert (levels P1 to P3) from external sources are created within OpsGenie, an additional team, Team B, would have an alert notification. This was done by modifying the alert where the responder field also contained Team B in addition to Team A. If there was another method, I am keen to know too.