Dynatrace tags not appearing in Opsgenie Alerts
Asked by Mark Allan:

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](https://community.atlassian.com/t5/image/serverpage/image-id/284461i983261A87A31ACE6/image-size/large?v=v2&px=999 "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](https://community.atlassian.com/t5/image/serverpage/image-id/284462i97B257B94BEF532C/image-size/large?v=v2&px=999 "alert_with_no_tag.jpg")

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

![tag_info_received.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/284464iF67BF2614D28DC55/image-size/large?v=v2&px=999 "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](https://community.atlassian.com/t5/image/serverpage/image-id/284465iE85A0E16A98BB5C0/image-size/large?v=v2&px=999 "no_tags_in_parsed_alert.JPG")


Answers:
author: John M
body: Hi [@Mark Allan](/t5/user/viewprofilepage/user-id/5331835) ,

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.png](https://community.atlassian.com/t5/image/serverpage/image-id/284794iED2A225B5566DA75/image-size/large?v=v2&px=999 "2023-10-05_14-18-09.png")![2023-10-05_14-17-46.png](https://community.atlassian.com/t5/image/serverpage/image-id/284795iBFB2243CE44A6081/image-size/large?v=v2&px=999 "2023-10-05_14-17-46.png")

comments: author: Mark Allan
body: Hi [@john](/t5/user/viewprofilepage/user-id/735032) 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 !