Skip to content

Commit

Permalink
Add maximum allowed monitor number. (opensearch-project#3732)
Browse files Browse the repository at this point in the history
* Add maximum allowed monitor number.

Signed-off-by: carolxob <[email protected]>

* Added note to comment on in GitHub.

Signed-off-by: carolxob <[email protected]>

* Update _observing-your-data/alerting/monitors.md

Co-authored-by: Melissa Vagi <[email protected]>

* Edits from doc review incorporated.

Signed-off-by: carolxob <[email protected]>

* Update _observing-your-data/alerting/monitors.md

Co-authored-by: Nathan Bower <[email protected]>

* Trying to commit.

Signed-off-by: carolxob <[email protected]>

* Minor adjustements to commit.

Signed-off-by: carolxob <[email protected]>

* Corrected per query monitor phrasing.

Signed-off-by: carolxob <[email protected]>

---------

Signed-off-by: carolxob <[email protected]>
Co-authored-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
  • Loading branch information
3 people authored and harshavamsi committed Oct 31, 2023
1 parent 91a28d3 commit fb3cd19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _observing-your-data/alerting/monitors.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ POST _nodes/reload_secure_settings
1. Specify a name for the monitor.
1. Choose either **Per query monitor**, **Per bucket monitor**, **Per cluster metrics monitor**, or **Per document monitor**.

Per query monitors run your specified query and then check whether the query's results trigger any alerts. Per bucket monitors let you select which fields to create buckets and categorize your results into those buckets. The Alerting plugin runs each bucket's unique results against a script you define later, so you have finer control over which results should trigger alerts. Each of those buckets can trigger an alert, but query-level monitors can only trigger one alert at a time.
OpenSearch supports the following types of monitors:

- **Per query monitors** run your specified query and then check whether the query's results trigger any alerts. Per query monitors can only trigger one alert at a time.
- **Per bucket monitors** let you create buckets based on selected fields and then categorize your results into those buckets. The Alerting plugin runs each bucket's unique results against a script you define later, so you have finer control over which results should trigger alerts. Furthermore, each bucket can trigger an alert.

The maximum number of monitors you can create is 1,000. You can change the default maximum number of alerts for your cluster by calling the cluster settings API `plugins.alerting.monitor.max_monitors`.

1. Decide how you want to define your query and triggers. You can use any of the following methods: visual editor, query editor, or anomaly detector.

Expand Down

0 comments on commit fb3cd19

Please sign in to comment.