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

[Uptime] Add Alerting UI #57919

Merged
merged 120 commits into from
Mar 19, 2020
Merged

Conversation

justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Feb 18, 2020

Summary

Introduce alerting UI to Uptime app.

Running this PR

There are a few configuration settings that must be enabled for alerting/actions to work. In your kibana.yml, specify the following:

xpack.actions.enabled: true
xpack.alerting.enabled: true
xpack.task_manager.enabled: true
xpack.triggers_actions_ui.enabled: true

In addition, make sure security is enabled for ES. You'll also need to use SSL for Elasticsearch and Kibana, you can do that with the following commands:

  • yarn start --ssl
  • yarn es snapshot --ssl

Also, you'll have to configure Heartbeat so it will work with ES in this configuration.

output.elasticsearch:
  ssl:
    certificate_authorities: ${AUTH}
    certificate: ${CERT}
    key: ${KEY}

You can find the necessary objects for these keys in your Kibana repo:

  • ~/kibana/packages/kbn-dev-utils/certs/ca.crt
  • ~/kibana/packages/kbn-dev-utils/certs/elasticsearch.crt
  • ~/kibana/packages/kbn-dev-utils/certs/elasticsearch.key

Once you get all that running, you're ready to look at the new functionality.

New functionality

  • We've added the beta Add Alert Flyout component to the Uptime app in this branch. You can access the flyout using the new popover button this PR introduces:

alerting_open_flyout

  • Upon opening the alert flyout, you can select the alert type this patch introduces, Monitor Status.

image

  • From here you can specify the alert parameters, as well as some custom filtering and logic the alert type defines.

image

  • Define a connector (I typically use server log) and create an alert. You should be able to see messages getting logged to your Kibana server log. There are several context fields you can include in your messages as well, and they're populated in the connector field by default:

image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@justinkambic justinkambic added Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.7.0 labels Feb 18, 2020
@justinkambic justinkambic requested a review from a team as a code owner February 18, 2020 21:13
@justinkambic justinkambic self-assigned this Feb 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@justinkambic justinkambic force-pushed the uptime_alerting-ui branch 3 times, most recently from 00410dd to d366a6e Compare March 2, 2020 17:39
@justinkambic
Copy link
Contributor Author

Alert Type seems weird for id: "xpack.uptime.alerts.downMonitor"

Good catch on this one.

Fixed in e482f08.

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!

@justinkambic
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@katrin-freihofner katrin-freihofner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a few minor wording/icon changes

Copy link
Contributor

@katrin-freihofner katrin-freihofner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

>
<FormattedMessage
id="xpack.uptime.alerts.toggleAlertFlyoutButtonText"
defaultMessage="Alerting"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defaultMessage="Alerting"
defaultMessage="Alerts"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 2519a8c.

<EuiContextMenuItem
data-test-subj="xpack.uptime.toggleAlertFlyout"
key="create-alert"
icon="plusInCircle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
icon="plusInCircle"
icon="alert"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</EuiContextMenuItem>,
<EuiContextMenuItem
data-test-subj="xpack.uptime.navigateToAlertingUi"
icon="gear"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
icon="gear"
icon="tableOfContents"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justinkambic
Copy link
Contributor Author

@katrin-freihofner I think I've implemented your feedback on the copy/icons.

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!

@justinkambic
Copy link
Contributor Author

@elasticmachine merge upstream

@justinkambic justinkambic merged commit fcf4396 into elastic:master Mar 19, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 20, 2020
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 22, 2020
andrewvc pushed a commit that referenced this pull request Mar 22, 2020
Backports the following commits to 7.x:

    [Uptime] Add Alerting UI (#57919)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:enhancement Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants