Skip to content

Read max triggers limit from backend setting#1387

Open
manaswini1920 wants to merge 1 commit intoopensearch-project:mainfrom
manaswini1920:fix/configurable-max-triggers
Open

Read max triggers limit from backend setting#1387
manaswini1920 wants to merge 1 commit intoopensearch-project:mainfrom
manaswini1920:fix/configurable-max-triggers

Conversation

@manaswini1920
Copy link
Copy Markdown
Collaborator

Description

Fetch plugins.alerting.monitor.max_triggers cluster setting instead of using hardcoded MAX_TRIGGERS constant. Falls back to default of 10 if the setting cannot be retrieved.

Resolves opensearch-project/alerting#468

Issues Resolved

opensearch-project/alerting#1828
https://github.com/opensearch-project/alerting#468

Testing info here : opensearch-project/common-utils#913 (comment)

Check List

  • [X ] New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • [ 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.

@AWSHurneyt
Copy link
Copy Markdown
Collaborator

AWSHurneyt commented Mar 13, 2026

@manaswini1920 Could you remove this environment variable from the cypress workflow?
https://github.com/opensearch-project/alerting-dashboards-plugin/blob/main/.github/workflows/cypress-workflow.yml#L11C3-L11C21

And adjust this line to just ./gradlew :alerting:run? I think these changes should fix the cypress tests.
https://github.com/opensearch-project/alerting-dashboards-plugin/blob/main/.github/workflows/cypress-workflow.yml#L37

@manaswini1920 manaswini1920 force-pushed the fix/configurable-max-triggers branch from 87180bd to 928d125 Compare March 13, 2026 17:18
@manaswini1920 manaswini1920 force-pushed the fix/configurable-max-triggers branch from 928d125 to c765586 Compare April 10, 2026 22:46
Fetch plugins.alerting.monitor.max_triggers cluster setting instead of
using hardcoded MAX_TRIGGERS constant. Falls back to default of 10 if
the setting cannot be retrieved.

Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>

Resolves opensearch-project/alerting#468

Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
@manaswini1920 manaswini1920 force-pushed the fix/configurable-max-triggers branch from c765586 to 8f4be5d Compare April 13, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make number of triggers per monitor configurable

2 participants