Skip to content

Commit 8919c8f

Browse files
authored
Update and add documentation files (opensearch-project#38)
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent c785b5e commit 8919c8f

6 files changed

+97
-168
lines changed

CONTRIBUTING.md

+3-99
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,4 @@
1-
# Contributing Guidelines
1+
## Contributing to this Project
22

3-
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4-
documentation, we greatly value feedback and contributions from our community.
5-
6-
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7-
information to effectively respond to your bug report or contribution.
8-
9-
## Reporting Bugs/Feature Requests
10-
11-
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
12-
13-
When filing an issue, please check [existing open](https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/issues), or [recently closed](https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
14-
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
15-
16-
- A reproducible test case or series of steps
17-
- The version of our code being used
18-
- Any modifications you've made relevant to the bug
19-
- Anything unusual about your environment or deployment
20-
21-
## Contributing via Pull Requests
22-
23-
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
24-
25-
1. You are working against the latest source on the _main_ branch.
26-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
27-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
28-
29-
To send us a pull request, please:
30-
31-
1. Fork the repository.
32-
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
33-
3. Ensure local tests pass.
34-
4. Commit to your fork using clear commit messages.
35-
5. Send us a pull request, answering any default questions in the pull request interface.
36-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
37-
38-
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
39-
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
40-
41-
## Finding contributions to work on
42-
43-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/labels/help%20wanted) issues is a great place to start.
44-
45-
## Developer Certificate of Origin
46-
47-
OpenSearch is an open source product released under the Apache 2.0 license (see either [the Apache site](https://www.apache.org/licenses/LICENSE-2.0) or the [LICENSE.txt file](./LICENSE.txt)). The Apache 2.0 license allows you to freely use, modify, distribute, and sell your own products that include Apache 2.0 licensed software.
48-
49-
We respect intellectual property rights of others and we want to make sure all incoming contributions are correctly attributed and licensed. A Developer Certificate of Origin (DCO) is a lightweight mechanism to do that.
50-
51-
The DCO is a declaration attached to every contribution made by every developer. In the commit message of the contribution, the developer simply adds a `Signed-off-by` statement and thereby agrees to the DCO, which you can find below or at [DeveloperCertificate.org](http://developercertificate.org/).
52-
53-
```
54-
Developer's Certificate of Origin 1.1
55-
56-
By making a contribution to this project, I certify that:
57-
58-
(a) The contribution was created in whole or in part by me and I
59-
have the right to submit it under the open source license
60-
indicated in the file; or
61-
62-
(b) The contribution is based upon previous work that, to the
63-
best of my knowledge, is covered under an appropriate open
64-
source license and I have the right under that license to
65-
submit that work with modifications, whether created in whole
66-
or in part by me, under the same open source license (unless
67-
I am permitted to submit under a different license), as
68-
Indicated in the file; or
69-
70-
(c) The contribution was provided directly to me by some other
71-
person who certified (a), (b) or (c) and I have not modified
72-
it.
73-
74-
(d) I understand and agree that this project and the contribution
75-
are public and that a record of the contribution (including
76-
all personal information I submit with it, including my
77-
sign-off) is maintained indefinitely and may be redistributed
78-
consistent with this project or the open source license(s)
79-
involved.
80-
```
81-
82-
We require that every contribution to OpenSearch is signed with a Developer Certificate of Origin. Additionally, please use your real name. We do not accept anonymous contributors nor those utilizing pseudonyms.
83-
84-
Each commit must include a DCO which looks like this
85-
86-
```
87-
Signed-off-by: Jane Smith <jane.smith@email.com>
88-
```
89-
90-
You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use `-s` or `--signoff` to add the `Signed-off-by` line to the end of the commit message.
91-
92-
## Security issue notifications
93-
94-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
95-
96-
## Licensing
97-
98-
See the [LICENSE](https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/blob/main/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
99-
100-
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
3+
OpenSearch is a community project that is built and maintained by people just like **you**.
4+
[This document](https://github.com/opensearch-project/.github/blob/main/CONTRIBUTING.md) explains how you can contribute to this and related projects.

DEVELOPER_GUIDE.md

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
- [Developer guide](#developer-guide)
2+
- [Forking and Cloning](#forking-and-cloning)
3+
- [Install Prerequisites](#install-prerequisites)
4+
- [Environment Setup](#environment-setup)
5+
- [Build](#build)
6+
- [Run](#run)
7+
- [Test](#test)
8+
9+
## Developer guide
10+
11+
So you want to contribute code to this project? Excellent! We're glad you're here. Here's what you need to do.
12+
13+
### Forking and Cloning
14+
15+
Fork this repository on GitHub, and clone locally with `git clone`.
16+
17+
### Install Prerequisites
18+
19+
You will need to install [node.js](https://nodejs.org/en/), [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md), and [yarn](https://yarnpkg.com/) in your environment to properly pull down dependencies to build and bootstrap the plugin.
20+
21+
### Environment Setup
22+
23+
1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](./package.json#L7).
24+
2. Download and install the appropriate [Anomaly Detection OpenSearch Plugin](https://github.com/opensearch-project/anomaly-detection).
25+
3. Download the OpenSearch Dashboards source code for the [version specified in package.json](./package.json#L7) you want to set up.
26+
27+
See the [OpenSearch Dashboards contributing guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/CONTRIBUTING.md) and [developer guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/DEVELOPER_GUIDE.md) for more instructions on setting up your development environment.
28+
29+
4. Change your node version to the version specified in `.node-version` inside the OpenSearch Dashboards root directory (this can be done with the `nvm use` command).
30+
5. Create a `plugins` directory inside the OpenSearch Dashboards source code directory, if `plugins` directory doesn't exist.
31+
6. Check out this package from version control into the `plugins` directory.
32+
7. Run `yarn osd bootstrap` inside `OpenSearch-Dashboards/plugins/anomaly-detection-dashboards-plugin`.
33+
34+
Ultimately, your directory structure should look like this:
35+
36+
<!-- prettier-ignore -->
37+
```md
38+
.
39+
├── OpenSearch-Dashboards
40+
│ └──plugins
41+
│ └── anomaly-detection-dashboards-plugin
42+
```
43+
44+
### Build
45+
46+
To build the plugin's distributable zip simply run `yarn build`.
47+
48+
Example output: `./build/anomalyDetectionDashboards-1.0.0.0.zip`
49+
50+
### Run
51+
52+
In the base OpenSearch Dashboards directory, run
53+
54+
- `yarn start --no-base-path`
55+
56+
Starts OpenSearch Dashboards and includes this plugin. OpenSearch Dashboards will be available on `localhost:5601`.
57+
58+
### Test
59+
60+
- `yarn test:jest`
61+
62+
Runs the plugin unit tests.
63+
64+
- `yarn test:e2e`
65+
66+
Start OpenSearch Dashboards, wait for it to be available on `localhost:5601`, and runs end-to-end tests.
67+
68+
- `yarn cy:run`
69+
70+
Runs end-to-end tests on a currently running OpenSearch Dashboards server. Defaults to run the tests on `localhost:5601`, although you can change this to run on any
71+
OpenSearch Dashboards server with the command `yarn cy:run --config baseUrl=<your-custom-URL>`

MAINTAINERS.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
| Yizhe Liu | [yizheliu-amazon](https://github.com/yizheliu-amazon) | Amazon |
1010
| Vijayan Balasubramanian | [VijayanB](https://github.com/VijayanB) | Amazon |
1111
| Sarat Vemulapalli | [saratvemulapalli](https://github.com/saratvemulapalli) | Amazon |
12-
| Weicong Sun | [weicongs-amazon](https://github.com/weicongs-amazon) | Amazon |
12+
13+
[This document](https://github.com/opensearch-project/.github/blob/main/MAINTAINERS.md) explains what maintainers do in this repo, and how they should be doing it. If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).

README.md

+17-68
Original file line numberDiff line numberDiff line change
@@ -5,95 +5,44 @@
55
[![Forum](https://img.shields.io/badge/chat-on%20forums-blue)](https://discuss.opendistrocommunity.dev/c/Use-this-category-for-all-questions-around-machine-learning-plugins)
66
![PRs welcome!](https://img.shields.io/badge/PRs-welcome!-success)
77

8-
## OpenSearch Anomaly Detection Dashboards
8+
<img src="https://opensearch.org/assets/brand/SVG/Logo/opensearch_logo_default.svg" height="64px"/>
99

10-
The OpenSearch Anomaly Detection Dashboards plugin enables you to leverage Machine Learning based algorithms to automatically detect anomalies as your log data is ingested. Combined with Alerting, you can monitor your data in near real time and automatically send alert notifications. With an intuitive OpenSearch Dashboards interface and a powerful API, it is easy to set up, tune, and monitor your anomaly detectors.
10+
- [OpenSearch Anomaly Detection Dashboards Plugin](#opensearch-anomaly-detection-dashboards-plugin)
11+
- [Documentation](#documentation)
12+
- [Contributing](#contributing)
13+
- [Code of Conduct](#code-of-conduct)
14+
- [Security](#security)
15+
- [License](#license)
16+
- [Copyright](#copyright)
1117

12-
## Highlights
18+
## OpenSearch Anomaly Detection Dashboards Plugin
1319

14-
Anomaly detection is using Random Cut Forest (RCF) algorithm for detecting anomalous data points.
20+
The OpenSearch Anomaly Detection Dashboards plugin enables you to leverage Machine Learning based algorithms to automatically detect anomalies as your log data is ingested. Combined with [Alerting](https://docs-beta.opensearch.org/monitoring-plugins/alerting/index/), you can monitor your data in near real time and automatically send alert notifications. With an intuitive OpenSearch Dashboards interface and a powerful API, it is easy to set up, tune, and monitor your anomaly detectors.
1521

16-
You should use the plugin with the same version of the [OpenSearch Alerting Dashboards plugin](https://github.com/opensearch-project/alerting-dashboards-plugin). You can also create monitors based on a created anomaly detector. A scheduled monitor run checks the anomaly detection results regularly and collects anomalies to trigger alerts based on custom trigger conditions.
22+
Anomaly detection uses the Random Cut Forest (RCF) algorithm for detecting anomalous data points.
1723

18-
## Current Limitations
19-
20-
- We will continuously add new unit test cases, but we don't have 100% unit test coverage for now. This is a great area for developers from the community to contribute and help improve test coverage.
21-
- Please see documentation links and GitHub issues for other details.
24+
You should use the plugin with the same version of the [OpenSearch Alerting Dashboards Plugin](https://github.com/opensearch-project/alerting-dashboards-plugin). You can also create monitors based on a created anomaly detector. A scheduled monitor run checks the anomaly detection results regularly and collects anomalies to trigger alerts based on custom trigger conditions.
2225

2326
## Documentation
2427

2528
Please see our [documentation](https://docs-beta.opensearch.org/monitoring-plugins/ad/index/).
2629

27-
## Setup
28-
29-
1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](./package.json#L7).
30-
1. Download and install the appropriate [Anomaly Detection OpenSearch plugin](https://github.com/opensearch-project/anomaly-detection).
31-
1. Download the OpenSearch Dashboards source code for the [version specified in package.json](./package.json#L7) you want to set up.
32-
33-
See the [OpenSearch Dashboards contributing guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/CONTRIBUTING.md) and [developer guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/DEVELOPER_GUIDE.md) for more instructions on setting up your development environment.
34-
35-
1. Change your node version to the version specified in `.node-version` inside the OpenSearch Dashboards root directory.
36-
1. Create a `plugins` directory inside the OpenSearch Dashboards source code directory, if `plugins` directory doesn't exist.
37-
1. Check out this package from version control into the `plugins` directory.
38-
1. Run `yarn osd bootstrap` inside `OpenSearch-Dashboards/plugins/anomaly-detection-dashboards-plugin`.
39-
40-
Ultimately, your directory structure should look like this:
41-
42-
<!-- prettier-ignore -->
43-
```md
44-
.
45-
├── OpenSearch-Dashboards
46-
│ └──plugins
47-
│ └── anomaly-detection-dashboards-plugin
48-
```
49-
50-
## Build
51-
52-
To build the plugin's distributable zip simply run `yarn build`.
53-
54-
Example output: `./build/anomalyDetectionDashboards-1.0.0.0.zip`
55-
56-
## Run
57-
58-
In the base OpenSearch Dashboards directory, run
59-
60-
- `yarn start --no-base-path`
61-
62-
Starts OpenSearch Dashboards and includes this plugin. OpenSearch Dashboards will be available on `localhost:5601`.
63-
64-
## Test
65-
66-
- `yarn test:jest`
67-
68-
Runs the plugin unit tests.
69-
70-
- `yarn test:e2e`
71-
72-
Start OpenSearch Dashboards, wait for it to be available on `localhost:5601`, and runs end-to-end tests.
73-
74-
- `yarn cy:run`
75-
76-
Runs end-to-end tests on a currently running OpenSearch Dashboards server. Defaults to run the tests on `localhost:5601`, although you can change this to run on any
77-
OpenSearch Dashboards server with the command `yarn cy:run --config baseUrl=<your-custom-URL>`
78-
7930
## Contributing
8031

81-
We welcome you to get involved in development, documentation, testing the anomaly detection plugin. See our [CONTRIBUTING.md](CONTRIBUTING.md) and join in.
82-
83-
Since this is a OpenSearch Dashboards plugin, it can be useful to review the [OpenSearch Dashboards contributing guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/CONTRIBUTING.md) as well as the [developer guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/DEVELOPER_GUIDE.md) to help get started.
32+
See [developer guide](DEVELOPER_GUIDE.md) and [how to contribute to this project](CONTRIBUTING.md).
8433

8534
## Code of Conduct
8635

87-
This project has adopted an [Open Source Code of Conduct](CODE_OF_CONDUCT.md).
36+
This project has adopted the [Amazon Open Source Code of Conduct](CODE_OF_CONDUCT.md). For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq), or contact [opensource-codeofconduct@amazon.com](mailto:opensource-codeofconduct@amazon.com) with any additional questions or comments.
8837

89-
## Security issue notifications
38+
## Security
9039

9140
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.
9241

9342
## License
9443

95-
See the [LICENSE](LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
44+
This project is licensed under the [Apache v2.0 License](LICENSE.txt).
9645

9746
## Copyright
9847

99-
Copyright 2021 OpenSearch Contributors
48+
Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.

RELEASING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This project follows the [OpenSearch release process](https://github.com/opensearch-project/.github/blob/main/RELEASING.md).

SECURITY.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Reporting a Vulnerability
2+
3+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email to aws-security@amazon.com. Please do **not** create a public GitHub issue.

0 commit comments

Comments
 (0)