Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented support for configuring a cluster metrics monitor to call cat/indices, and cat/shards. #609

Merged

Conversation

AWSHurneyt
Copy link
Collaborator

@AWSHurneyt AWSHurneyt commented Jul 11, 2023

Description

Implemented support for configuring a cluster metrics monitor to call cat/indices, and cat/shards.
Documentation issue opensearch-project/documentation-website#4437

Issues Resolved

opensearch-project/alerting#611

Screenshots

Indices and `Shards options appear in API selection dropdown.

Screenshot 2023-07-10 at 7 51 41 PM

Users can preview the response for Indices API. They can also, optionally, provide path parameters.

Screenshot 2023-07-10 at 7 52 06 PM

Users can preview the response for Shards API. They can also, optionally, provide path parameters.

Screenshot 2023-07-10 at 7 52 16 PM

An example trigger condition for the Indices API.

Screenshot 2023-07-10 at 7 52 33 PM

An example trigger condition for the Shards API.

Screenshot 2023-07-10 at 7 52 57 PM

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ces, and cat/shards API.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #609 (c9bef94) into main (18bdd05) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #609      +/-   ##
==========================================
- Coverage   51.97%   51.94%   -0.04%     
==========================================
  Files         220      220              
  Lines        5866     5870       +4     
  Branches      847      849       +2     
==========================================
  Hits         3049     3049              
- Misses       2814     2818       +4     
  Partials        3        3              

see 1 file with indirect coverage changes

@AWSHurneyt
Copy link
Collaborator Author

AWSHurneyt commented Jul 11, 2023

The cypress test workflow is failing in this PR because it depends on the changes in PR opensearch-project/alerting#992. Manual testing suggests the changes are working as intended.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
@AWSHurneyt AWSHurneyt merged commit e84dfcd into opensearch-project:main Jul 12, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 12, 2023
… cat/indices, and cat/shards. (#609)

* Added support for creating cluster metrics monitors with the cat/indices, and cat/shards API.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed import.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Adjusted label text.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit e84dfcd)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 12, 2023
… cat/indices, and cat/shards. (#609)

* Added support for creating cluster metrics monitors with the cat/indices, and cat/shards API.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed import.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Adjusted label text.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit e84dfcd)
AWSHurneyt added a commit that referenced this pull request Jul 12, 2023
… cat/indices, and cat/shards. (#609) (#616)

* Added support for creating cluster metrics monitors with the cat/indices, and cat/shards API.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed import.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Adjusted label text.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit e84dfcd)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
AWSHurneyt added a commit that referenced this pull request Jul 12, 2023
… cat/indices, and cat/shards. (#609) (#617)

* Added support for creating cluster metrics monitors with the cat/indices, and cat/shards API.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Updated snapshots.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed import.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Adjusted label text.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

---------

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit e84dfcd)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants