27 lines
820 B
HCL
27 lines
820 B
HCL
resource "datadog_monitor" "Apache_process" {
|
|
name = "[${var.environment}] Apache process is down on {{host.name}}"
|
|
message = "${var.message}"
|
|
|
|
type = "service check"
|
|
query = "\"process.up\".over(\"dd_monitoring:enabled\",\"dd_apache:enabled\",\"process:apache\",\"env:${var.environment}\").by(\"host\",\"process\", \"app\").last(4).count_by_status()"
|
|
|
|
thresholds = {
|
|
ok = 1
|
|
warning = 2
|
|
critical = 4
|
|
}
|
|
|
|
notify_no_data = false
|
|
evaluation_delay = "${var.evaluation_delay}"
|
|
new_host_delay = "${var.evaluation_delay}"
|
|
renotify_interval = 60
|
|
notify_audit = false
|
|
timeout_h = 0
|
|
include_tags = true
|
|
locked = false
|
|
require_full_window = true
|
|
no_data_timeframe = 20
|
|
|
|
tags = ["env:${var.environment}", "type:apache"]
|
|
}
|