# # Service Check # resource "datadog_monitor" "not_responding" { count = var.not_responding_enabled ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Solr does not respond {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" message = coalesce(var.not_responding_message, var.message) type = "service check" query = < ${var.search_handler_errors_rate_threshold_critical} EOQ monitor_thresholds { warning = var.search_handler_errors_rate_threshold_warning critical = var.search_handler_errors_rate_threshold_critical } evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_audit = false locked = false include_tags = true require_full_window = true notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:solr", "resource:solr", "team:claranet", } # # Solr Warmup time # resource "datadog_monitor" "searcher_warmup_time" { count = var.searcher_warmup_time_enabled ? 1 : 0 message = coalesce(var.searcher_warmup_time_message, var.message) name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Solr searcher warmup time too high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" type = "metric alert" query = <= ${var.searcher_warmup_time_threshold_critical} EOQ monitor_thresholds { warning = var.searcher_warmup_time_threshold_warning critical = var.searcher_warmup_time_threshold_critical } evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_audit = false locked = false include_tags = true require_full_window = true notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:solr", "resource:solr", "team:claranet", }