resource "datadog_monitor" "datadog_zookeeper_process_down" { count = var.zookeeper_process_enabled == "true" ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Zookeeper process is down" message = coalesce(var.zookeeper_process_message, var.message) type = "metric alert" query = < ${var.zookeeper_latency_threshold_critical} EOQ thresholds = { warning = var.zookeeper_latency_threshold_warning critical = var.zookeeper_latency_threshold_critical } notify_no_data = false evaluation_delay = 15 new_host_delay = 300 notify_audit = false timeout_h = 0 include_tags = true locked = false require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:zookeeper", "resource:zookeeper", "team:claranet", "created-by:terraform"], var.zookeeper_latency_availability_extra_tags) lifecycle { ignore_changes = ["silenced"] } }