resource "datadog_monitor" "not_responding" { count = var.zookeeper_not_responding_enabled ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Zookeeper service does not respond {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}" message = coalesce(var.zookeeper_not_responding_message, var.message) type = "service check" 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 = var.evaluation_delay new_host_delay = var.new_host_delay notify_audit = var.zookeeper_latency_notify_audit timeout_h = var.zookeeper_latency_timeout_h 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] } }