The Open Distro for Elasticsearch Alerting Kibana plugin lets you manage your Open Distro for Elasticsearch alerting plugin to monitor your data and send notifications when certain criteria are met---all from Kibana.
- Create and schedule monitors, which run period queries against data in Elasticsearch.
- Evaluate query results against triggers to see if they meet certain criteria.
- If trigger criteria are met, generate alerts and perform actions (e.g. post a message in a Slack channel).
Please see our documentation.
-
Download Elasticsearch for the version that matches the Kibana version specified in package.json.
-
Download and install the appropriate Open Distro for Elasticsearch Alerting plugin.
-
Download the Kibana source code for the version specified in package.json you want to set up.
See the Kibana contributing guide for more instructions on setting up your development environment.
-
Change your node version to the version specified in
.node-version
inside the Kibana root directory. -
cd into the
plugins
directory of the Kibana source code directory. -
Check out this package from version control into the
plugins
directory. -
Run
yarn kbn bootstrap
insidekibana/plugins/alerting-kibana-plugin
.
Ultimately, your directory structure should look like this:
.
βββ kibana
β βββ plugins
β βββ alerting-kibana-plugin
To build the plugin's distributable zip simply run yarn build
.
Example output: ./build/opendistroAlertingKibana-1.12.0.0.zip
-
yarn start
- Starts Kibana and includes this plugin. Kibana will be available on
localhost:5601
. - Please run in the Kibana root directory
- You must have Elasticsearch running with the Alerting plugin
- Starts Kibana and includes this plugin. Kibana will be available on
There are unit/stubbed integration tests and Cypress e2e/integration tests.
-
yarn test:jest
- Runs the plugin unit tests.
-
yarn run cypress open
- Opens the Cypress test runner.
-
yarn run cypress run
- Runs all Cypress tests headlessly in the Electron browser.
To run the Cypress tests, you must have both Elasticsearch and Kibana running with the Alerting plugin.
If you are running Cypress tests with Kibana development server, pass these 2 options to yarn start
:
--no-base-path
: opt out the BasePathProxy.--no-watch
: make sure your server is not restarted.
- Refer to CONTRIBUTING.md.
- Since this is a Kibana plugin, it can be useful to review the Kibana contributing guide alongside the documentation around Kibana plugins and plugin development.
This code is licensed under the Apache 2.0 License.
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.