-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support all event fields in the Pagerduty action. #63933
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
@mikecote @arisonl I've been on a call recently where With a PR already in place, it looked like there were some unanswered questions and a need for tests. Looking at some of the comments, there are questions around static and dynamic content. I do think we'd probably want to include context variables in this field in particular. |
I don't think there's a huge problem with the
I did add a comment to the PR that the schema definition for the params needs some slight tweaking.
The parameters are always available as a mustache template variable, |
++ I think I also agree that there are probably some challenges to getting the data out, but is that any different than other context variables? I feel like most of them are rather alert type specific with some common values. Not that that's ideal, and as we unify rules, maybe that gets better. |
Ya, sorry, I misunderstood the original question, shouldn't be a problem adding context variables to the custom details properties - or we need to make that possible anyway, since this function would likely be worthless without it.
Ya, makes sense to split |
EDIT: I realised since posting this that, being on the Kibana repo, perhaps this issue is actually referring to the Kibana Alerts connector 'PagerDuty' functionality (https://www.elastic.co/guide/en/kibana/current/pagerduty-action-type.html) rather than the Elastic watcher If so apologies for barking up the wrong tree! Original comment: It's worth noting that you can currently send The confusion lies in the fact that:
So to set images and links, simply supply something like this:
Then of the three v2 API fields mentioned in this ticket originally, only In other words, all 3 of these fields can be set, just not using the same strings for the watcher attributes, as are used in the underlying PagerDuty API. |
Specify which PagerDuty integration to select (given there isn't one called simply "API" any more). Also add a note to help avoid the confusion stemming from the fact that the watcher attributes still have names which seem to match the PagerDuty Events API v1 despite the fact that Elastic is actually now using v2 of that API. For reference: a ticket which I replied to, with a classic example of such confusion: elastic/kibana#63933 (comment)
cc @shanisagiv1 |
cc @elastic/response-ops-cases in case this is still a request for cases |
Is there something we can do to help get this prioritized? We (Platform SRE), along with other teams working on Serverless, are making heavy use of Kibana Alerting Rules and PagerDuty actions. We would greatly benefit from being able to include things like links to runbooks and dashboards in a PagerDuty action field. It's a significant improvement to the on-call experience for engineers to have links to the relevant information present in the alert rather than having to look for it separately. |
Hey @lucasmoore! It is a high-priority issue for us and we will start working on it soon. As |
Yes, that sounds good to me. Thanks! |
Related: #76910 |
PR #171748 added support for the UI. If needed I think is better to open a separate issue for |
Currently the Pagerduty action doesn't support setting the
custom_details
,images
orlinks
event fields. These fields should be configurable and templated.cc: @pmuellr
The text was updated successfully, but these errors were encountered: