MON-287 update service check monitors configuration
This commit is contained in:
parent
dee9478d98
commit
47bf31bc3f
@ -5,17 +5,15 @@ resource "datadog_monitor" "datadog_apache_process" {
|
|||||||
type = "service check"
|
type = "service check"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
"apache.can_connect".over${module.filter-tags.service_check}.by("host","port").last(6).count_by_status()
|
"apache.can_connect".over${module.filter-tags.service_check}.by("host","port","server").last(1).pct_by_status()
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds = {
|
thresholds = {
|
||||||
ok = 1
|
warning = 0
|
||||||
warning = 2
|
critical = 1.1754943508222875e-38
|
||||||
critical = 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
evaluation_delay = "${var.delay}"
|
|
||||||
new_host_delay = "${var.delay}"
|
new_host_delay = "${var.delay}"
|
||||||
renotify_interval = 0
|
renotify_interval = 0
|
||||||
notify_audit = false
|
notify_audit = false
|
||||||
|
|||||||
@ -5,17 +5,15 @@ resource "datadog_monitor" "datadog_nginx_process" {
|
|||||||
type = "service check"
|
type = "service check"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
"nginx.can_connect".over${module.filter-tags.service_check}.by("host","port").last(6).count_by_status()
|
"nginx.can_connect".over${module.filter-tags.service_check}.by("host","port","server").last(1).pct_by_status()
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds = {
|
thresholds = {
|
||||||
ok = 1
|
warning = 0
|
||||||
warning = 2
|
critical = 1.1754943508222875e-38
|
||||||
critical = 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
evaluation_delay = "${var.delay}"
|
|
||||||
new_host_delay = "${var.delay}"
|
new_host_delay = "${var.delay}"
|
||||||
renotify_interval = 0
|
renotify_interval = 0
|
||||||
notify_audit = false
|
notify_audit = false
|
||||||
|
|||||||
@ -44,11 +44,10 @@ resource "datadog_monitor" "datadog_fpm_process" {
|
|||||||
thresholds = {
|
thresholds = {
|
||||||
ok = 1
|
ok = 1
|
||||||
warning = 2
|
warning = 2
|
||||||
critical = 4
|
critical = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
evaluation_delay = "${var.delay}"
|
|
||||||
new_host_delay = "${var.delay}"
|
new_host_delay = "${var.delay}"
|
||||||
renotify_interval = 0
|
renotify_interval = 0
|
||||||
notify_audit = false
|
notify_audit = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user