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 :
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:
Example of a tag coming in from Dynatrace in the "Received integration request" log entry:
Example of the tag info subsequently not appearing in the "Started to execute action: Create Alert" log entry:
Hi @Mark Allan ,
Just a small tweak here should get this working - can you try replacing
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 !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.