Skip to content

feat(alarm): add minSampleCountToEvaluateDatapoint to CustomMonitoring #458

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

Conversation

miloszwatroba
Copy link
Contributor

@miloszwatroba miloszwatroba commented Nov 15, 2023

Fixes #452

Follow up to #453:

  • (feat) Exposing the new minSampleCountToEvaluateDatapoint through CustomMonitoring
  • (fix) Fixing the minSampleCountToEvaluateDatapoint MathExpression's period as it defaults to 5 minutes. This didn't come up during testing as I tested it using 5 minute period. Apparently, if we don't set the period on MathExpression explicitly, it overrides all child metrics to 5 minute, reference. To avoid similar situations in the future, extended the unit test to cover custom periods.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@miloszwatroba miloszwatroba marked this pull request as ready for review November 15, 2023 15:17
@echeung-amzn echeung-amzn merged commit 3bd2b37 into cdklabs:main Nov 16, 2023
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.

minMetricSamplesToAlarm uses incorrect evaluation period
2 participants