DynamoDB CloudWatch Alarm Tables

0

Is it possible to enable an alarm for WriteThrottleEvents across all DynamoDB tables? I thought this would happen when I removed "Dimensions" field of "TableName" but this does not appear to be the case.

Is my only option to make one alarm, repeated for each table, just changing each alarm's "Dimensions" field of "TableName" according to each table specified? How else can this be done?

cshoban
已提问 4 年前906 查看次数
2 回答
0

Monitoring of count of Read/Write throttling is useful on table (its indexes) level. Each DynamoDB table and its GSI have their own provisioned capacity (Read/Write) and does not affect operation on other tables within same account. Can you share details of your use case, why do you want to setup one alarm for all tables within your account? I will be able to make some recommendations accordingly.

AWS
已回答 4 年前
0

To get specific, you can imagine I can have 2 alarms (foo and bar) which are identical except for the TableName value. I guess I was hoping it's possible to merge this alarms to minimize repeating configuration setup.

aws cloudwatch put-metric-alarm \
--alarm-actions arn:aws:sns:us-west-2:numbers:details \
--alarm-description "Alarm trigger when ConsumedWriteCapacityUnits > ProvisionedWriteCapacityUnits" \
--alarm-name ims-dynamodb-high-write-units-foo \
--comparison-operator GreaterThanThreshold \
--dimensions Name=TableName,Value=foo \
--evaluation-periods 1 \
--metric-name ConsumedWriteCapacityUnits \
--namespace AWS/DynamoDB \
--period 60 \
--region us-west-2 \
--statistic Average \
--threshold 500 \
--treat-missing-data notBreaching

aws cloudwatch put-metric-alarm \
--alarm-actions arn:aws:sns:us-west-2:numbers:details \
--alarm-description "Alarm trigger when ConsumedWriteCapacityUnits > ProvisionedWriteCapacityUnits" \
--alarm-name ims-dynamodb-high-write-units-bar \
--comparison-operator GreaterThanThreshold \
--dimensions Name=TableName,Value=bar \
--evaluation-periods 1 \
--metric-name ConsumedWriteCapacityUnits \
--namespace AWS/DynamoDB \
--period 60 \
--region us-west-2 \
--statistic Average \
--threshold 500 \
--treat-missing-data notBreaching

cshoban
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则