Dynatrace tags not appearing in Opsgenie Alerts

Mark Allan
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!
October 4, 2023

Background:  Opsgenie Integration Type = Dynatrace Webhook (Dynatrace V2) , Opsgenie Plan = part of a JSM Premium Plan

Dynatrace Tags are not being added to my alert when it is created in Opsgenie. When I look at debug logs in Opsgenie I can see the tags being passed in from Dynatrace in the "[DynatraceV2] Received integration request" log entry. So I know that the tags are being received in Opsgenie and it is not a Dynatrace problem.

However if I look at the "Started to execute action: Create Alert" debug log entry I can see that the -tags[] entry is empty.

In my Dynatrace Integration (in the Create Alert section) I have dragged and dropped the {{tags}} tag into the Tags field.

Do I need to do anything else to get this to work ?

As a workaround I have managed to get tag info to appear in the alert by adding {{_payload}} to the Description field. But ideally I want to set up my alert policies to operate on Tags and not searching through text in a long Description field. What am I doing wrong ?

Supporting screenshots:

  Opsgenie Dynatrace integration Create Alert config :

opsgenie_DT_create_alert_config.JPG

Example of alert that the above config produces. No tag in the Tags area but the tag info is now appearing in the big Description area as I'm dumping the payload in there:

alert_with_no_tag.jpg

Example of a tag coming in from Dynatrace in the "Received integration request" log entry:

tag_info_received.JPG

Example of the tag info subsequently not appearing in the "Started to execute action: Create Alert" log entry:

no_tags_in_parsed_alert.JPG

1 answer

1 accepted

1 vote
Answer accepted
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2023

Hi @Mark Allan ,

Just a small tweak here should get this working - can you try replacing 

"tags" with "Tags" (capital 'T') in the payload?
2023-10-05_14-18-09.png2023-10-05_14-17-46.png
Mark Allan
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!
October 6, 2023

Hi @john thank you, that worked !  I changed the Dynatrace payload from 

"tags": "{Tags}",
to  :
"Tags": "{Tags}",

and I now see the tags in the Tags area in the opsgenie alert. 

The original syntax works for our current notification tool and the tag info was arriving in Opsgenie so I had assumed the DT end was ok. Thank you once again !

Like John M likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events