-
Notifications
You must be signed in to change notification settings - Fork 93
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 cross-cluster monitor support #584
Implemented cross-cluster monitor support #584
Conversation
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
@@ -43,6 +43,7 @@ data class Alert( | |||
val aggregationResultBucket: AggregationResultBucket? = null, | |||
val executionId: String? = null, | |||
val associatedAlertIds: List<String>, | |||
val clusters: List<String>? = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this break security analytics constructor?? if yes, plz create PR for that too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is stored here? can you share an example list of opensource clusters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be called clusterNames or clusterIds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created this PR to update SAP opensearch-project/security-analytics#837
@@ -43,6 +43,7 @@ data class Alert( | |||
val aggregationResultBucket: AggregationResultBucket? = null, | |||
val executionId: String? = null, | |||
val associatedAlertIds: List<String>, | |||
val clusters: List<String>? = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz udpate the alert parsing unit tests to account for this field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revised.
@@ -43,6 +43,7 @@ data class Alert( | |||
val aggregationResultBucket: AggregationResultBucket? = null, | |||
val executionId: String? = null, | |||
val associatedAlertIds: List<String>, | |||
val clusters: List<String>? = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be called clusterNames or clusterIds
@@ -74,6 +75,7 @@ data class ClusterMetricsInput( | |||
.field(PATH_FIELD, path) | |||
.field(PATH_PARAMS_FIELD, pathParams) | |||
.field(URL_FIELD, url) | |||
.field(CLUSTERS_FIELD, clusters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same.. update parsing tests for clusterMetricsInput model or plz add a test if non-existent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revised.
Signed-off-by: AWSHurneyt <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #584 +/- ##
============================================
- Coverage 74.25% 74.13% -0.13%
- Complexity 884 890 +6
============================================
Files 133 133
Lines 5791 5822 +31
Branches 708 714 +6
============================================
+ Hits 4300 4316 +16
- Misses 1181 1194 +13
- Partials 310 312 +2 ☔ View full report in Codecov by Sentry. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/common-utils/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/common-utils/backport-2.x
# Create a new branch
git switch --create backport-584-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0c23cc5b594be2d057d3e0e079596686ef703a80
# Push it to GitHub
git push --set-upstream origin backport-584-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/common-utils/backport-2.x Then, create a pull request where the |
* Added clusters field to support cross cluster cluster metrics monitors. Signed-off-by: AWSHurneyt <[email protected]> * Fixed writeTo. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
…roject#584 (opensearch-project#586) * Added clusters field to support cross cluster cluster metrics monitors. Signed-off-by: AWSHurneyt <[email protected]> * Fixed writeTo. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
Description
Added
clusters
field to support cross-cluster cluster metrics monitors.Documentation PR for reference opensearch-project/documentation-website#6350
Issues Resolved
opensearch-project/alerting-dashboards-plugin#796
Check List
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.