MON-168 update service checks queries with EOF way
This commit is contained in:
parent
5aa679b6ce
commit
ff67290d15
@ -4,7 +4,9 @@ resource "datadog_monitor" "datadog_apache_process" {
|
||||
|
||||
type = "service check"
|
||||
|
||||
query = "\"apache.can_connect\".over(\"dd_apache:enabled\",\"dd_monitoring:enabled\",\"env:${var.environment}\").by(\"host\",\"port\").last(6).count_by_status()"
|
||||
query = <<EOF
|
||||
"apache.can_connect".over("dd_apache:enabled","dd_monitoring:enabled","env:${var.environment}").by("host","port").last(6).count_by_status()
|
||||
EOF
|
||||
|
||||
thresholds = {
|
||||
ok = 1
|
||||
|
||||
@ -4,7 +4,9 @@ resource "datadog_monitor" "datadog_nginx_process" {
|
||||
|
||||
type = "service check"
|
||||
|
||||
query = "\"nginx.can_connect\".over(\"dd_nginx:enabled\",\"dd_monitoring:enabled\",\"env:${var.environment}\").by(\"host\",\"port\").last(6).count_by_status()"
|
||||
query = <<EOF
|
||||
"nginx.can_connect".over("dd_nginx:enabled","dd_monitoring:enabled","env:${var.environment}").by("host","port").last(6).count_by_status()
|
||||
EOF
|
||||
|
||||
thresholds = {
|
||||
ok = 1
|
||||
|
||||
@ -46,7 +46,9 @@ resource "datadog_monitor" "datadog_fpm_process" {
|
||||
|
||||
type = "service check"
|
||||
|
||||
query = "\"php_fpm.can_ping\".over(\"dd_php_fpm:enabled\",\"dd_monitoring:enabled\",\"env:${var.environment}\").by(\"host\",\"port\").last(6).count_by_status()"
|
||||
query = <<EOF
|
||||
"php_fpm.can_ping".over("dd_php_fpm:enabled","dd_monitoring:enabled","env:${var.environment}").by("host","port").last(6).count_by_status()
|
||||
EOF
|
||||
|
||||
thresholds = {
|
||||
ok = 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user