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年前813ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ