2018-08-20 14:36:04 +02:00

31 lines
807 B
HCL

resource "datadog_monitor" "datadog_apache_process" {
name = "[${var.environment}] Can't connect to apache vhost status"
message = "${coalesce(var.apache_connect_message, var.message)}"
type = "service check"
query = <<EOF
"apache.can_connect".over${module.filter-tags.service_check}.by("host","port").last(6).count_by_status()
EOF
thresholds = {
ok = 1
warning = 2
critical = 4
}
notify_no_data = true
evaluation_delay = "${var.delay}"
new_host_delay = "${var.delay}"
renotify_interval = 0
notify_audit = false
timeout_h = 0
include_tags = true
locked = false
require_full_window = true
silenced = "${var.apache_connect_silenced}"
tags = ["env:${var.environment}", "resource:apache"]
}