VMware Cloud Community
shoaling
Contributor
Contributor

Adding tags in Alerts

I am sending all alerts via a web hook to PagerDuty. We have the JSON payload setup and they are received in PagerDuty. How can I add tags to the alerts and pass that into the payload so that PagerDuty can see those? 

 

The reason for the tags is to route the alerts to a Technical Service in PagerDuty based on the tags.

Reply
0 Kudos
1 Reply
sxnxr
Commander
Commander

I think you can but depends on the version of vrops. in 8.6 (not sure what version it was introduced) you can create custom rest payloads and do about 90% of what the webhook can do natively in vrops now.

 

as an example you can add custom properties (up to you how you add the either API or with group membership) to the payload. In this case i have "is linux" dragged across

sxnxr_0-1643280326049.png

on the next page you can coup it from the parameters section and add it to the payload

sxnxr_1-1643280544186.png

I have not tested or use this function because the 10% that this does not do that the web hook does i need. Hope this will point you in a direction 

 

Reply
0 Kudos