resource "aws_cloudwatch_metric_alarm" "Kafka-ZooKeeperRequestLatencyMsMean" { alarm_name = "${var.cw-alarm-prefix}:Kafka:ZooKeeperRequestLatencyMsMean:${var.cluster-name}" comparison_operator = "GreaterThanThreshold" evaluation_periods = "3" metric_name = "ZooKeeperRequestLatencyMsMean" period = "1800" statistic = "Average" threshold = var.threshold-ZooKeeperRequestLatencyMsMean alarm_description = "Kafka:ZooKeeperRequestLatencyMsMean" namespace = "AWS/Kafka" insufficient_data_actions = [] actions_enabled = var.actions-enabled alarm_actions = [var.alarm-actions-urgent] ok_actions = [var.alarm-actions-urgent] dimensions = { "Cluster Name" = var.cluster-name } tags = var.default-tags lifecycle { ignore_changes = [tags] } }