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 ClusterMetrics monitors #221

Merged

Conversation

AWSHurneyt
Copy link
Collaborator

Issue #, if available:

Description of changes:

  1. Implemented support for a new monitor input method that takes in URI components to allow monitoring based on responses from API calls to the local cluster.

CheckList:
[x] 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.

@@ -37,6 +37,7 @@ dependencies {
compile "org.opensearch.client:opensearch-rest-client:${opensearch_version}"
compile 'com.google.googlejavaformat:google-java-format:1.10.0'
compile "org.opensearch:common-utils:${common_utils_version}"
compile 'commons-validator:commons-validator:1.7'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be moved to alerting if we move the LocalUriInput class to alerting from core

@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2021

Codecov Report

Merging #221 (230bad2) into cluster-metrics-monitor-dev (5f18a5c) will decrease coverage by 0.14%.
The diff coverage is 75.09%.

Impacted file tree graph

@@                        Coverage Diff                        @@
##             cluster-metrics-monitor-dev     #221      +/-   ##
=================================================================
- Coverage                          78.59%   78.44%   -0.15%     
- Complexity                           218      276      +58     
=================================================================
  Files                                173      176       +3     
  Lines                               6975     7233     +258     
  Branches                             916      963      +47     
=================================================================
+ Hits                                5482     5674     +192     
- Misses                              1005     1058      +53     
- Partials                             488      501      +13     
Impacted Files Coverage Δ
...ensearch/alerting/settings/SupportedApiSettings.kt 29.62% <29.62%> (ø)
...ch/alerting/util/SupportedApiSettingsExtensions.kt 32.69% <32.69%> (ø)
...ain/kotlin/org/opensearch/alerting/InputService.kt 88.57% <75.00%> (+0.69%) ⬆️
...in/kotlin/org/opensearch/alerting/model/Monitor.kt 88.67% <85.71%> (-0.29%) ⬇️
...nsearch/alerting/core/model/ClusterMetricsInput.kt 94.67% <94.67%> (ø)
...n/kotlin/org/opensearch/alerting/AlertingPlugin.kt 94.73% <100.00%> (+0.03%) ⬆️
...ing/model/destination/DestinationContextFactory.kt 66.66% <0.00%> (-3.71%) ⬇️
.../kotlin/org/opensearch/alerting/core/JobSweeper.kt 71.50% <0.00%> (-0.50%) ⬇️
...ain/kotlin/org/opensearch/alerting/AlertService.kt 78.53% <0.00%> (-0.49%) ⬇️
.../alerting/transport/TransportIndexMonitorAction.kt 59.52% <0.00%> (+0.47%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f18a5c...230bad2. Read the comment docs.

Comment on lines 118 to 134
return when {
supportedJsonPayload.isEmpty() -> mappedActionResponse
else -> {
val output = hashMapOf<String, Any>()
for ((key, value) in supportedJsonPayload) {
when (val mappedValue = mappedActionResponse[key]) {
is Map<*, *> -> output[key] = XContentMapValues.filter(
mappedActionResponse[key] as MutableMap<String, *>?,
value.toTypedArray(), arrayOf()
)
else -> output[key] = mappedValue ?: hashMapOf<String, Any>()
}
}
output
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few possible concerns with this format I see:

  1. We are using supported_json_payloads.json to retrieve the allowed keys. This implies that whatever is explicitly mentioned is what is supported, however, if the map in the json is empty ({}) we allow everything through even though that would imply that nothing is supported.
  2. Do we support redaction of a nested map of allowed keys for more complex responses (assuming the result is not flattened)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are good points.

  1. I can see how this could be a bit confusing. For this use case, not including the API in the JSON would be the best way to redact everything from its response. This will be something we want to explain well in the documentation.
  2. If I'm understanding this point correctly, yes. The test redactFieldsFromResponse with non-empty supportedJsonPayload test case examines that functionality.

Comment on lines 424 to 382
testCount++
}
assertEquals(LocalUriInput.ApiType.values().size, testCount)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NP: Up to you but you can exclude the count assertion since if all the assertEquals in the forEach pass then we should be good and if any of them fail, the test will fail anyway.

@AWSHurneyt AWSHurneyt requested a review from a team November 19, 2021 23:16
@AWSHurneyt AWSHurneyt changed the base branch from main to local-uri-input-dev December 22, 2021 00:49
@AWSHurneyt AWSHurneyt closed this Dec 22, 2021
@AWSHurneyt AWSHurneyt deleted the localuri branch December 22, 2021 00:50
@AWSHurneyt AWSHurneyt restored the localuri branch December 22, 2021 00:50
@AWSHurneyt AWSHurneyt reopened this Dec 22, 2021
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…ricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
@AWSHurneyt AWSHurneyt changed the base branch from local-uri-input-dev to cluster-metrics-monitor-dev March 7, 2022 09:19
@AWSHurneyt AWSHurneyt changed the title Implemented support for LocalUriInput monitors Implemented support for ClusterMetrics monitors Mar 7, 2022
@AWSHurneyt
Copy link
Collaborator Author

As a side note, the integration tests pass locally. The security test workflow check seems to currently be failing due to the issue tracked in issue #300.

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

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
const val MIN_SOCKET_TIMEOUT = 1
const val MAX_SOCKET_TIMEOUT = 60

const val SUPPORTED_SCHEME = "http"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HttpClient is no more being used in your approach, better clean up fields not required in your approach.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created this issue to track this feedback #341


const val SUPPORTED_SCHEME = "http"
const val SUPPORTED_HOST = "localhost"
const val SUPPORTED_PORT = 9200
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created this issue to track this feedback #341

val pathParamsArray = pathParams.split(",").toTypedArray()
return ClusterStatsRequest(*pathParamsArray)
}
ClusterMetricType.NODES_STATS -> NodesStatsRequest().addMetrics(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is good for now, but ideally, we want to give control to choose what metrics or in general params they would want to pass. Let's add a todo task here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created this issue to track this feedback #341

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
/**
* An enum class to quickly reference various supported API.
*/
enum class ClusterMetricType(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic can be replaced with regex validations and in future releases we may want to keep it more generic so that if path requires some placeholders, users can configure them without changing code. For e.g. node stats api supports adding node id or cluster metric name as part of url path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created this issue to track this feedback #341

@rishabhmaurya
Copy link
Collaborator

What testing have we done for FGAC related use-cases? It would be great if you can add integ tests for such cases.

@AWSHurneyt
Copy link
Collaborator Author

AWSHurneyt commented Mar 10, 2022

What testing have we done for FGAC related use-cases? It would be great if you can add integ tests for such cases.

Created this issue to track this feedback #341

Manual testing involved creating a user with all permissions except cluster:monitor permissions. This prevents that user from running API like GET /_cluster/heath. The Preview query button for a ClusterMetrics monitor defined by that user fails to execute. In addition, execution of the monitor results in alerts with the following error

Error: Failed fetching inputs: OpenSearchSecurityException[no permissions for [cluster:monitor/health] and associated roles [noClusterApi, own_index]]

Also, I created a user without access to the opensearch_dashboards_sample_data_ecommerce index. Attempting to preview the response for a /_cluster/heath/opensearch_dashboards_sample_data_ecommerce monitor returns the same information as if that user ran GET /_cluster/heath/opensearch_dashboards_sample_data_ecommerce through DevTools. Attempts for that user to preview the response for _cat/recovery/opensearch_dashboards_sample_data_ecommerce fail to execute, and attempts to create the monitor display a popup error that says

[alerting_exception] User doesn't have read permissions for one or more configured index []

@AWSHurneyt AWSHurneyt merged commit 688e11d into opensearch-project:cluster-metrics-monitor-dev Mar 10, 2022
AWSHurneyt added a commit that referenced this pull request Mar 11, 2022
* Implemented support for LocalUriInput monitors.

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

* Refactored feature naming convention from LocalUriInput to ClusterMetricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

* Fixed ktlint errors.

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

* Implemented randomClusterMetricsMonitor test helper, and refactored tests accordingly.

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

* Renamed some assets to align with the new name for this feature.

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

* Refactored cluster metrics feature to remove support for Cat repositories API.

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

* Refactored supported JSON payload to return all response fields.

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

* Refactored nodes stats request object to return all metrics.

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

* Refactored nodes stats request object to return all metrics.

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

* Removing unused connectionTimeout and socketTimeout params.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
AWSHurneyt added a commit to AWSHurneyt/OpenSearch-Alerting that referenced this pull request Mar 11, 2022
…) (opensearch-project#342)

* Implemented support for LocalUriInput monitors.

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

* Refactored feature naming convention from LocalUriInput to ClusterMetricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

* Fixed ktlint errors.

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

* Implemented randomClusterMetricsMonitor test helper, and refactored tests accordingly.

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

* Renamed some assets to align with the new name for this feature.

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

* Refactored cluster metrics feature to remove support for Cat repositories API.

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

* Refactored supported JSON payload to return all response fields.

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

* Refactored nodes stats request object to return all metrics.

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

* Refactored nodes stats request object to return all metrics.

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

* Removing unused connectionTimeout and socketTimeout params.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
AWSHurneyt added a commit that referenced this pull request Mar 11, 2022
* Added support for JDK 8 and 14. (#335)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Added 1.3 release notes. (#336)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Add backport and auto delete workflow (#339)

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Implemented support for ClusterMetrics monitors (#221) (#342)

* Implemented support for LocalUriInput monitors.

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

* Refactored feature naming convention from LocalUriInput to ClusterMetricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

* Fixed ktlint errors.

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

* Implemented randomClusterMetricsMonitor test helper, and refactored tests accordingly.

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

* Renamed some assets to align with the new name for this feature.

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

* Refactored cluster metrics feature to remove support for Cat repositories API.

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

* Refactored supported JSON payload to return all response fields.

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

* Refactored nodes stats request object to return all metrics.

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

* Refactored nodes stats request object to return all metrics.

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

* Removing unused connectionTimeout and socketTimeout params.

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

* Added cluster metrics monitor to release notes. (#343)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Added cluster metrics monitor to release notes.

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

* Updated DEVELOPER_GUIDE.md and workflows to reference changes to the supported JDKs. (#338)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Added additional release note.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated workflows to build using JDK 11.

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

* Removing redundant JDK setup step.

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

* Fixed guide wording.

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

* Fixed guide wording.

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

* Reverted bwc workflow JDK.

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

Co-authored-by: Annie Lee <leeyun@amazon.com>
AWSHurneyt added a commit to AWSHurneyt/OpenSearch-Alerting that referenced this pull request Mar 11, 2022
…roject#345)

* Added support for JDK 8 and 14. (opensearch-project#335)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Added 1.3 release notes. (opensearch-project#336)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Add backport and auto delete workflow (opensearch-project#339)

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Implemented support for ClusterMetrics monitors (opensearch-project#221) (opensearch-project#342)

* Implemented support for LocalUriInput monitors.

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

* Refactored feature naming convention from LocalUriInput to ClusterMetricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

* Fixed ktlint errors.

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

* Implemented randomClusterMetricsMonitor test helper, and refactored tests accordingly.

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

* Renamed some assets to align with the new name for this feature.

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

* Refactored cluster metrics feature to remove support for Cat repositories API.

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

* Refactored supported JSON payload to return all response fields.

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

* Refactored nodes stats request object to return all metrics.

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

* Refactored nodes stats request object to return all metrics.

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

* Removing unused connectionTimeout and socketTimeout params.

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

* Added cluster metrics monitor to release notes. (opensearch-project#343)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Added cluster metrics monitor to release notes.

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

* Updated DEVELOPER_GUIDE.md and workflows to reference changes to the supported JDKs. (opensearch-project#338)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Added additional release note.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated workflows to build using JDK 11.

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

* Removing redundant JDK setup step.

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

* Fixed guide wording.

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

* Fixed guide wording.

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

* Reverted bwc workflow JDK.

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

Co-authored-by: Annie Lee <leeyun@amazon.com>
AWSHurneyt added a commit that referenced this pull request Mar 11, 2022
* Add 1.2.4.0 release notes (#282)

* Add 1.2.4.0 release notes

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

* Commented out flaky test in favor of known issue to unblock build (#331) (#332) (#333)

* Commented out flaky test in favor of known issue #300 to unblock build process.

Signed-off-by: Saurabh Singh <sisurab@amazon.com>

* Commenting out another test

Signed-off-by: Aditya Jindal <aditjind@amazon.com>

Co-authored-by: Saurabh Singh <sisurab@amazon.com>
Co-authored-by: Aditya Jindal <aditjind@amazon.com>

Co-authored-by: Saurabh Singh <sisurab@amazon.com>
Co-authored-by: Aditya Jindal <13850971+aditjind@users.noreply.github.com>

Co-authored-by: Saurabh Singh <sisurab@amazon.com>
Co-authored-by: Aditya Jindal <13850971+aditjind@users.noreply.github.com>

* Cherry-picking commits for 1.3 release from main to 1.x (#345)

* Added support for JDK 8 and 14. (#335)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Added 1.3 release notes. (#336)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Add backport and auto delete workflow (#339)

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Implemented support for ClusterMetrics monitors (#221) (#342)

* Implemented support for LocalUriInput monitors.

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

* Refactored feature naming convention from LocalUriInput to ClusterMetricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

* Fixed ktlint errors.

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

* Implemented randomClusterMetricsMonitor test helper, and refactored tests accordingly.

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

* Renamed some assets to align with the new name for this feature.

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

* Refactored cluster metrics feature to remove support for Cat repositories API.

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

* Refactored supported JSON payload to return all response fields.

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

* Refactored nodes stats request object to return all metrics.

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

* Refactored nodes stats request object to return all metrics.

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

* Removing unused connectionTimeout and socketTimeout params.

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

* Added cluster metrics monitor to release notes. (#343)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Added cluster metrics monitor to release notes.

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

* Updated DEVELOPER_GUIDE.md and workflows to reference changes to the supported JDKs. (#338)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Added additional release note.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated workflows to build using JDK 11.

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

* Removing redundant JDK setup step.

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

* Fixed guide wording.

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

* Fixed guide wording.

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

* Reverted bwc workflow JDK.

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

Co-authored-by: Annie Lee <leeyun@amazon.com>

Co-authored-by: Ashish Agrawal <ashisagr@amazon.com>
Co-authored-by: Saurabh Singh <getsaurabh02@gmail.com>
Co-authored-by: Saurabh Singh <sisurab@amazon.com>
Co-authored-by: Aditya Jindal <13850971+aditjind@users.noreply.github.com>
Co-authored-by: Annie Lee <leeyun@amazon.com>
AWSHurneyt added a commit to AWSHurneyt/OpenSearch-Alerting that referenced this pull request Mar 30, 2022
…roject#345)

* Added support for JDK 8 and 14. (opensearch-project#335)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Added 1.3 release notes. (opensearch-project#336)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Add backport and auto delete workflow (opensearch-project#339)

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Implemented support for ClusterMetrics monitors (opensearch-project#221) (opensearch-project#342)

* Implemented support for LocalUriInput monitors.

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

* Refactored feature naming convention from LocalUriInput to ClusterMetricsInput. Added Cluster Metrics as a new monitor type to align with frontend experience.

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

* Fixed ktlint errors.

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

* Implemented randomClusterMetricsMonitor test helper, and refactored tests accordingly.

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

* Renamed some assets to align with the new name for this feature.

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

* Refactored cluster metrics feature to remove support for Cat repositories API.

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

* Refactored supported JSON payload to return all response fields.

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

* Refactored nodes stats request object to return all metrics.

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

* Refactored nodes stats request object to return all metrics.

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

* Removing unused connectionTimeout and socketTimeout params.

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

* Added cluster metrics monitor to release notes. (opensearch-project#343)

* Added 1.3 release notes.

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

* Added 1.3 release notes.

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

* Added cluster metrics monitor to release notes.

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

* Updated DEVELOPER_GUIDE.md and workflows to reference changes to the supported JDKs. (opensearch-project#338)

* Added support for JDK 8 and 14.

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

* Added support for JDK 8 and 14.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Added additional release note.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated DEVELOPER_GUIDE.md to reference changes to the supported JDKs.

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

* Updated workflows to build using JDK 11.

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

* Removing redundant JDK setup step.

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

* Fixed guide wording.

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

* Fixed guide wording.

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

* Reverted bwc workflow JDK.

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

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

Successfully merging this pull request may close these issues.

6 participants