ohltyler / alerting-dashboards-plugin

πŸ“Ÿ OpenSearch Dashboards Kibana Alerting Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSearch Alerting Dashboards

The OpenSearch Alerting Dashboards plugin lets you manage your OpenSearch Alerting plugin to monitor your data and send notifications when certain criteria are met---all from OpenSearch Dashboards.

Highlights

  • Create and schedule monitors, which run period queries against data in Opensearch.
  • 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).

Documentation

Please see our documentation.

Setup

  1. Download OpenSearch for the version that matches the OpenSearch Dashboard version specified in package.json.

  2. Download and install the appropriate OpenSearch Alerting plugin.

  3. Download the OpenSearch-Dashboards source code for the version specified in package.json you want to set up.

    See the OpenSearch Dashboards developer guide for more instructions on setting up your development environment.

  4. Change your node version to the version specified in .node-version inside the OpenSearch-Dashboards root directory.

  5. cd into the plugins directory of the OpenSearch-Dashboards source code directory.

  6. Check out this package from version control into the plugins directory.

  7. Run yarn osd bootstrap inside Opensearch-Dashboards/plugins/alerting-dashboards-plugin.

Ultimately, your directory structure should look like this:

.
β”œβ”€β”€ OpenSearch-Dashboards
β”‚   └── plugins
β”‚       └── alerting-dashboards-plugin

Build

To build the plugin's distributable zip simply run yarn build.

Example output: ./build/opendistroAlertingDashboards-1.0.0.0.zip

Run

  • yarn start

    • Starts OpenSearch-Dashboards and includes this plugin. OpenSearch-Dashboards will be available on localhost:5601.
    • Please run in the OpenSearch-Dashboards root directory
    • You must have OpenSearch running with the Alerting plugin

Test

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 OpenSearch and OpenSearch-Dashboards running with the Alerting plugin.

If you are running Cypress tests with OpenSearch-Dashboards development server, pass these 2 options to yarn start:

  1. --no-base-path: opt out the BasePathProxy.
  2. --no-watch: make sure your server is not restarted.

Contributing to OpenSearch Alerting OpenSearch-Dashboards

License

This code is licensed under the Apache 2.0 License.

Copyright

Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.

About

πŸ“Ÿ OpenSearch Dashboards Kibana Alerting Plugin

License:Apache License 2.0


Languages

Language:JavaScript 99.6%Language:Less 0.2%Language:Python 0.2%