-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(aws-dynamodb): Cannot alarm on metricThrottledRequestsForOperations due to Alarm limits #24509
Comments
This limit is described here:
I'll try reproduce this in my account. |
Same issue with metricSystemErrorsForOperations. We basically just want to trigger an alarm based on the SystemErrors metric from the AWS/DynamoDB namespace. Is there another way to do this? (other than manipulating the MathExpression)
|
You can pass an option with the operations you want your alarm to listen to. Like this:
|
You can, but the point here is that the default value that CDK uses for |
I think this is solved by: #29341 Should we close this issue? Edit: actually nevermind, I think that limit bump is for metrics per alarm, and not math expressions. |
Does this issue still exist as we merged #29341 ? |
@pahud I suggested the same in the comment above, but no it doesn't fix it. Math expressions still have a limit of 10.
Unless you suggest that this task should be to rewrite the metric so that it doesn't use metric math somehow? |
Describe the bug
"metricThrottledRequestsForOperations" uses a math experession behind the hood to get the metric. By default,
operations
is set to cover everything (which is good). However, since there are more than 10 operations, trying to create a CloudWatchAlarm
with all operations results in the following error on sync:Would it be possible to change how the metrics are fetched to avoid this?
Expected Behavior
I can create an alarm on
table.metricThrottledRequestsForOperations()
Current Behavior
Trying to create a CloudWatch
Alarm
with all operations results in the following error on sync:Reproduction Steps
Possible Solution
Use a
SEARCH()
math expression or SQL style query and aggregate withSUM
in sumMetricForOperation, to find all throttled metrics for the table.Example:
Additional Information/Context
No response
CDK CLI Version
2.60.0
Framework Version
No response
Node.js Version
18
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: