Im trying to create a cloudwatch alarm for dynamodb read capacity units
This is my code, I have given threshold as “4”, but in the console the threshold value is “0.07” instead of 4
resource "aws_cloudwatch_metric_alarm" "consumed_read_units" {
alarm_name = "dynamodb_${var.dynamodb_table_name}_consumed_read_units"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "5"
metric_name = "ConsumedReadCapacityUnits"
namespace = "AWS/DynamoDB"
period = "60"
statistic = "Average"
dimensions = {
TableName = "${var.dynamodb_table_name}"
}
threshold = "4"
alarm_description = "This metric monitors DynamoDB ConsumedReadCapacityUnits for ${var.dynamodb_table_name}"
insufficient_data_actions = []
}