No tags on PRTG alerts
Asked by Volkan Sutcu:

Hi All,

I'm currently integrating PRTG following the documentation [here](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-prtg/).

At some point, on PRTG side, we have to provide the payload to send to Opsgenie when a threshold is reached. But it seems that the payload does not contain the tags detail inside ([here](https://raw.githubusercontent.com/opsgenie/opsgenie-integration/master/prtg/Postdata.txt) is the payload).

Naturally, when I add "tags=%tags" in the middle of the payload chain, trigger an alert and then, take a look to the payload received on Opsgenie side, I can see that the tags are received which is good :

![TagsInLogs.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/232026i9D09585390591475/image-size/large?v=v2&px=999 "TagsInLogs.PNG")

But, to add that information into the "tags" field in the alert template of the PRTG intagration, I should drag and drop the "tags" field but it does not exist and adding it manually does not change anything (see below).

![NoTags.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/232025iD38A07F39CE59193/image-size/large?v=v2&px=999 "NoTags.PNG")

Any ideas or similar issue faced with a workaround ?

Thanks for your help


Answers:
author: Volkan Sutcu
body: Hello All,   

Coming back to my post, I found a workaround that is quite clear. After taking a look to the logs on opsgenie, I saw that the "tags" field was under _httpParams, so I used the [Dynamic fields](https://support.atlassian.com/opsgenie/docs/dynamic-fields-in-opsgenie-integrations/) to get that value like this :

![GettingTagsValue.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/232039i6AADDBEDC67DDBB6/image-size/large?v=v2&px=999 "GettingTagsValue.PNG")

If someone has a better way to do it, don't hesitate to propose here !

comments: author: Nicki
body: I've applied the method suggested, however, it brings ALL the tags from PRTG into OpsGenie as one tag with a very long name and spaces inbetween the tagnames as defined in PRTG, e.g. if I have tags Server, VM and Prod defined, it shows as 1 tag in OpsGenie called "Server VM Prod". Is there a way to split it into multiple tags?


author: Volkan Sutcu
body: Hi [@Nicki](/t5/user/viewprofilepage/user-id/5082430) ,   

I faced the same issue but didn't investigate further. It seems that there is a bunch of existing methods to parse the strings in the opsgenie [documentation](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/). It could maybe help you as a workaround.


author: Nicki
body: Thanks, but it does not appear to have anything that can help. No split function, and no array handling/parsing, which is sad.


author: Volkan Sutcu
body: Absolutely ! I admit that is an important function to have in that case.


author: Nick H
body: Hi [@Volkan Sutcu](/t5/user/viewprofilepage/user-id/5108514) ,

Since the tags field is not available by default with the PRTG integration, how you are extracting them with your custom field is the best way.

This Community Article might also be helpful for other options: [How to Extract Custom Fields and Data into an Alert](https://community.atlassian.com/t5/Opsgenie-articles/How-to-Extract-Custom-Fields-and-Data-into-an-Alert/ba-p/2133902)

comments: author: Volkan Sutcu
body: Hi [@Nick H](/t5/user/viewprofilepage/user-id/2540930),

Thanks for your message. Indeed, the workaround I applied comes from the article you mentioned and wrote !

Thanks for your help.


author: Fabian Alvaracin Paula
body: Hi [@Nick H](/t5/user/viewprofilepage/user-id/2540930)

is there a workaround for the essentials plan aswell?

I opened a Question myself ([https://community.atlassian.com/t5/Opsgenie-questions/Tags-field-in-PRTG-Integration/qaq-p/2227403?utm_source=dm\&utm_medium=unpaid-social\&utm_campaign=P:online\*O:community\*I:social_share\*](https://community.atlassian.com/t5/Opsgenie-questions/Tags-field-in-PRTG-Integration/qaq-p/2227403?utm_source=dm&utm_medium=unpaid-social&utm_campaign=P:online*O:community*I:social_share*))

But would be nice if this helps anyone else whom only have the essentials plan because automated filling of tags should be a default feature imho.

Thanks


Tags: alert

integration

prtg

tag