Skip to content

AWS DynamoDB

AWS DynamoDB metrics include throughput capacity units, latency, concurrent connections, and read/write throughput, reflecting DynamoDB performance and scalability when handling large-scale data storage and access.

Configuration

Permissions

For AWS cloud collection permissions, see AWS cloud integration role authorization. The read-only permissions required by this integration are listed below.

  • dynamodb:ListTables: Get DynamoDB table list.
  • dynamodb:DescribeTable: Get DynamoDB table structure and status information.
  • tag:GetResources: Read resource tags through the shared tag collection module to supplement asset tags.
  • cloudwatch:ListMetrics: Discover CloudWatch monitoring metrics and dimensions.
  • cloudwatch:GetMetricData: Read in batches: CloudWatch monitoring metric data.

Install Func

We recommend enabling Guance Integrations - Extensions - Hosted Func: all prerequisites are installed automatically. Continue with script installation.

To deploy Func yourself, see Self-hosted Func.

Install Script

Prepare AWS AK in advance and authorize access as described in Permissions.

Activate Script in DataFlux Func (Automata)

  1. Log in to the Guance console
  2. Click the 【Integration】 menu and select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
  4. Click 【Test】, and if the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
  5. Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page
  6. On the cloud account details page, click [Integrations]. UnderNot InstalledfindAWS DynamoDB, click [Install], and complete installation in the dialog.

Activate Script Manually

  1. Sign in to the Func console, click [Script Market], openGuanceScript Market, and search for:integration_aws_dynamodb

  2. Click 【Install】, then enter the corresponding parameters: AWS AK ID, AK Secret, and account name.

  3. Click [Deploy Startup Script]. The system creates the Startup script set and configures the corresponding startup script automatically.

  4. Once enabled, view the trigger under Management / Automatic Trigger Configuration. Click [Run] to execute immediately without waiting for the schedule. After a short wait, view the execution records and logs.

Verification

  1. Under [Management / Automatic Trigger Configuration], confirm that an automatic trigger configuration exists for the task, and check the task records and logs for errors.
  2. In Guance, check [Infrastructure / Custom] for asset information.
  3. In Guance, check [Metrics] for the corresponding monitoring data.

Metrics

After configuring Amazon cloud monitoring, the default metrics are listed below. Configure additional metrics as needed. Amazon Cloud Monitoring Metric Details

ConditionalCheckFailedRequests

Number of failed conditional write attempts.

Metrics Name Description Unit Dimensions
ConditionalCheckFailedRequests_Average Average Failed Requests Count TableName
ConditionalCheckFailedRequests_Maximum Maximum Failed Requests Count TableName
ConditionalCheckFailedRequests_Minimum Minimum Failed Requests Count TableName
ConditionalCheckFailedRequests_SampleCount Failed Requests Count TableName
ConditionalCheckFailedRequests_Sum Total Failed Requests Count TableName

ConsumedReadCapacityUnits

Read capacity units consumed during the specified period, for tracking provisioned throughput usage.

Metrics Name Description Unit Dimensions
ConsumedReadCapacityUnits_Average Average read capacity consumed per request Count TableName
ConsumedReadCapacityUnits_Maximum Maximum read capacity units consumed by any request to a table or index Count TableName
ConsumedReadCapacityUnits_Minimum Minimum read capacity units consumed by any request to a table or index Count TableName
ConsumedReadCapacityUnits_SampleCount DynamoDB read requests, including those consuming no read capacity Count TableName
ConsumedReadCapacityUnits_Sum Total consumed read capacity units Count TableName

ConsumedWriteCapacityUnits

Write capacity units consumed during the specified period, for tracking provisioned throughput usage.

Metrics Name Description Unit Dimensions
ConsumedWriteCapacityUnits_Average Average write capacity consumed per request Count TableName
ConsumedWriteCapacityUnits_Maximum Maximum write capacity units consumed by any request to a table or index Count TableName
ConsumedWriteCapacityUnits_Minimum Minimum write capacity units consumed by any request to a table or index Count TableName
ConsumedWriteCapacityUnits_SampleCount DynamoDB write requests, including those consuming no read capacity Count TableName
ConsumedWriteCapacityUnits_Sum Total consumed write capacity units Count TableName

ProvisionedReadCapacityUnits

Metrics Name Description Unit Dimensions
ProvisionedReadCapacityUnits_Average Average provisioned read capacity for the table or global secondary index. Count TableName;indexes also include GlobalSecondaryIndexName

ProvisionedWriteCapacityUnits

Metrics Name Description Unit Dimensions
ProvisionedWriteCapacityUnits_Average Average provisioned write capacity for the table or global secondary index. Count TableName;indexes also include GlobalSecondaryIndexName

ReadThrottleEvents

Metrics Name Description Unit Dimensions
ReadThrottleEvents_Sum Read events throttled for exceeding provisioned capacity. Count TableName;indexes also include GlobalSecondaryIndexName

SuccessfulRequestLatency

Metrics Name Description Unit Dimensions
SuccessfulRequestLatency_Average Average server-side processing time for successful requests, excluding network and client time. ms TableName, Operation;stream requests also include StreamLabel

ThrottledRequests

Metrics Name Description Unit Dimensions
ThrottledRequests_Sum Requests throttled for exceeding throughput limits. Count TableName, Operation

UserErrors

Metrics Name Description Unit Dimensions
UserErrors_Sum HTTP 400 errors in the current account and region, excluding throughput limit and conditional check failures. Count -

WriteThrottleEvents

Metrics Name Description Unit Dimensions
WriteThrottleEvents_Sum Write events throttled for exceeding provisioned capacity. Count TableName;indexes also include GlobalSecondaryIndexName

Objects

Collected AWS DynamoDB object structure. View object data under Infrastructure / Custom.

{
  "measurement": "aws_dynamodb",
  "tags": {
      "RegionId"        : "cn-north-1",
      "TableArn"        : "arn:aws-cn:dynamodb:cn-north-1:",
      "TableId"         : "0ce8d4f9b35",
      "TableName"       : "eks-tflock",
      "TableStatus"     : "ACTIVE",
      "name"            : "eks-tflock"
  },
  "fields": {
    "AttributeDefinitions"  : "[{\"AttributeName\": \"LockID\", \"AttributeType\": \"S\"}]",
    "BillingModeSummary"    : "{}",
    "CreationDateTime"      : "2023-03-22T23:39:42.352000+08:00",
    "ItemCount"             : "1",
    "KeySchema"             : "[{\"AttributeName\": \"LockID\", \"KeyType\": \"HASH\"}]",
    "LocalSecondaryIndexes" : "{}",
    "TableSizeBytes"        : "96",
    "message"               : "{instance json info}"
  }
}

Note: Fields in tags and fields may change with subsequent updates

Tip 1: The value of tags.name is the instance ID, which is used as the unique identifier.

Tip 2: fields.message, fields.Endpoint are JSON serialized strings

Feedback

Is this page helpful?