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

Opsgenie Best Practices "Wednesdays"-Sending alerts to different teams under single integration

Sometimes, you might need to setup more than one from the same integration in order to specify alert creation depending on your filters defined under the integrations, and it might hard to check all of your integrations when you're about to troubleshoot an issue. Here is a little tip how to use multiple Create Alert rules and keep the control in one place, instead of setting up same multiple integrations. 

In Opsgenie, by using "Advance" settings of integrations, you'll have ability to control incoming payload and apply filters by defining your conditions, for example, during alert creation. According to your conditions, actions such as Ignore, Create, Close, Acknowledge and AddNote will be followed by top-down order. Basically, when Opsgenie receives an incoming payload, it will check your integration action rules one by one and if the incoming payload matches with your filters, actions will be executed. 

Instead of setting up multiple integrations and assigning to different teams, you have ability to define multiple Create Alert rules, and send alerts to different teams by adding teams should receive alerts in which conditions. It's very simple - all you need to do is adding multiple Create Alert rules, and assign these rules to different teams. Please keep in mind that in order to add teams from Alert Fields of integration, the integration should be assigned to "No-Team" - please see attached images. 

 

Opsgenie_-_Integration.jpg

 

 

 

 

 

12Opsgenie_-_Integration.jpg

 

 

13Opsgenie_-_Integration.jpg

 

 

 

7 comments

Manuel Ruiz
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 26, 2019

Hi there, excellent article!!
Do you know if is possible extract individual tags from DD_TAGS and use it as extra properties ?

Thanks a lot

Emirhan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 4, 2019

Thank you for your comment Manuel!

By default, Datadog integration is able to capture {{dd_tags}} field and add them into Extra Property field. Do you want to extract these tags one by one? 

Opsgenie_-_Integration.jpg

Manuel Ruiz
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!
August 13, 2019

Yeah !.. I want to extract these tags one by one?

troy.crosby
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!
February 26, 2020

@Manuel Ruiz you can do that like so:

{{dd_tags.extract(/regexpatternhere/)}}

You can also use some string functions like

{{dd_tags.extract(/regexpatternhere/).toLowerCase}}

{{dd_tags.substring("Start", "End")}}

Like Oleksandr Shmyrko likes this
Jason Barry
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!
February 24, 2021

Quick question, how would you go about linking the dd tag that contains a team name to a team in Opsgenie.

Katrina Pambid May 26, 2022

Hi, I am trying to assign different teams in one integration but I don't see any Teams field in the form. test.png

Like # people like this
Shahroz Naeem
Contributor
October 10, 2022

@Katrina Pambid 

This article is a bit outdated. 

You'd have to create the integration as a Global one and not define an individual team as the owner. Then create multiple create rules with different filters. If you have the same filters applied, only the first one will be executed. 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events