Skip to content
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

[Alerting] provide links to Kibana alerting as context variables for alerting actions #64370

Closed
pmuellr opened this issue Apr 23, 2020 · 2 comments
Labels
Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@pmuellr
Copy link
Member

pmuellr commented Apr 23, 2020

Along with all the other mustache template variables we provide for action parameters, we should provide a link to the Kibana details page for the alert, and probably a link to the Kibana alert management page, which a customer could then add to the messages in their actions.

Here's what we currently make available:

const variables = {
alertId,
alertName,
spaceId,
tags,
alertInstanceId,
context,
state,
};

This implies we can get an external link to Kibana, and then once we have that, hopefully creating a URL based on that should be easy:

eg

  • ${kbn-url}/app/kibana#/management/kibana/triggersActions/alert/${alert-id}
  • ${kbn-url}/app/kibana#/management/kibana/triggersActions/alerts

We should then add one of these links to the default message from the index threshold:

const message = i18n.translate(
'xpack.alertingBuiltins.indexThreshold.alertTypeContextMessageDescription',
{
defaultMessage:
'alert {name} group {group} value {value} exceeded threshold {function} over {window} on {date}',
values: {
name: alertInfo.name,
group: baseContext.group,
value: baseContext.value,
function: humanFn,
window,
date: baseContext.date,
},
}
);

@pmuellr pmuellr added Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Apr 23, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@pmuellr
Copy link
Member Author

pmuellr commented Apr 27, 2020

DUP of #49392

@pmuellr pmuellr closed this as completed Apr 27, 2020
@kobelb kobelb added the needs-team Issues missing a team label label Jan 31, 2022
@botelastic botelastic bot removed the needs-team Issues missing a team label label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
Development

No branches or pull requests

3 participants