Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.53 KB

DEVELOPER_GUIDE.md

File metadata and controls

45 lines (31 loc) · 1.53 KB

Developer Guide

So you want to contribute code to this project? Excellent! We're glad you're here. Here's what you need to do.

Setup

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

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

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

  4. cd into plugins directory in the OpenSearch Dashboards source code directory.

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

git clone [email protected]:opensearch-project/observability.git plugins --no-checkout
cd plugins
echo 'dashboards-observability/*' >> .git/info/sparse-checkout
git config core.sparseCheckout true
git checkout main
  1. Run yarn osd bootstrap inside OpenSearch-Dashboards/plugins/dashboards-observability.

Ultimately, your directory structure should look like this:

.
├── OpenSearch-Dashboards
│   └── plugins
│       └── dashboards-observability

Build

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

Example output: ./build/observability*.zip

Run

  • yarn start

    Starts OpenSearch Dashboards and includes this plugin. OpenSearch Dashboards will be available on localhost:5601.

Submitting Changes

See CONTRIBUTING.