resource "datadog_monitor" "datadog_nginx_process" { count = var.nginx_connect_enabled == "true" ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Nginx vhost status does not respond" message = coalesce(var.nginx_connect_message, var.message) type = "service check" query = < ${var.nginx_dropped_threshold_critical} EOQ monitor_thresholds { critical = var.nginx_dropped_threshold_critical } evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = false notify_audit = false timeout_h = 0 include_tags = true locked = false require_full_window = true tags = concat(["env:${var.environment}", "type:middleware", "provider:nginx", "resource:nginx", "team:claranet", "created-by:terraform"], var.nginx_dropped_extra_tags) }