resource "datadog_monitor" "php_fpm_connect" { count = var.php_fpm_connect_enabled == "true" ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Php-fpm ping url does not respond" message = coalesce(var.php_fpm_connect_message, var.message) type = "service check" query = < ${var.php_fpm_busy_threshold_critical} EOQ thresholds = { warning = var.php_fpm_busy_threshold_warning critical = var.php_fpm_busy_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:php-fpm", "resource:php-fpm", "team:claranet", "created-by:terraform"], var.php_fpm_busy_extra_tags) lifecycle { ignore_changes = ["silenced"] } }