You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PagerDuty v1 supports setting custom details for the alert via .details(<string>) This allows me to add more details there, including links to charts of the issue and/or information about solving the problem. This was added to PagerDuty v1 in August last year (#1512), but for some reason it doesn't seem that it was included in PagerDuty v2. PagerDuty v2 implementation doesn't set the details properly.
Usually, I see 'Event object is invalid' errors due to failures in the template rendering. It appears the template isn't rendering and is just showing as an empty string. PagerDuty is rejecting this because the details field in Kapacitor maps the summary field of PagerDuty.
If I switch the .details() value to a non-templated value it works correctly.
The text was updated successfully, but these errors were encountered:
I am looking into this issue. Can you share a TICKscript with an example of what you are trying to do? The reason v2 doesn't support details like v1 is because the v2 pager duty API support arbitrary JSON so all the details are already on the alert event in pager duty with v2 and so using the .details template should not have been necessary. What is your use case where you need the template in addition to all the details already on the alert event?
@rbetts Maybe? It depends on the use case that drives this request. The work in #1961 looks like a good addition regardless of how .details are handled.
I heard back from the original use case that triggered this feature request. The use case is to add links to the pager duty alerts. The PR here #1940 will definitely solve this issue and does so using the correct PagerDuty API calls instead of opaque details.
PagerDuty v1 supports setting custom details for the alert via
.details(<string>)
This allows me to add more details there, including links to charts of the issue and/or information about solving the problem. This was added to PagerDuty v1 in August last year (#1512), but for some reason it doesn't seem that it was included in PagerDuty v2. PagerDuty v2 implementation doesn't set the details properly.Usually, I see 'Event object is invalid' errors due to failures in the template rendering. It appears the template isn't rendering and is just showing as an empty string. PagerDuty is rejecting this because the
details
field in Kapacitor maps the summary field of PagerDuty.If I switch the
.details()
value to a non-templated value it works correctly.The text was updated successfully, but these errors were encountered: