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
demandé il y a 4 ans902 vues
2 réponses
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
répondu il y a 4 ans
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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions