MON-326 always use EOF syntax

This commit is contained in:
Quentin Manfroi 2019-04-23 10:43:05 +02:00
parent 31aa187501
commit ef7de8f6c6
2 changed files with 8 additions and 2 deletions

View File

@ -36,7 +36,11 @@ resource "datadog_monitor" "datadog_nginx_dropped_connections" {
type = "metric alert"
query = "${var.nginx_dropped_time_aggregator}(${var.nginx_dropped_timeframe}):avg:nginx.net.conn_dropped_per_s${module.filter-tags.query_alert} by {host} > ${var.nginx_dropped_threshold_critical}"
query = <<EOQ
${var.nginx_dropped_time_aggregator}(${var.nginx_dropped_timeframe}):
avg:nginx.net.conn_dropped_per_s${module.filter-tags.query_alert} by {host}
> ${var.nginx_dropped_threshold_critical}
EOQ
thresholds {
critical = "${var.nginx_dropped_threshold_critical}"

View File

@ -3,7 +3,9 @@ resource "datadog_monitor" "host_unreachable" {
name = "[${var.environment}] Host unreachable"
message = "${coalesce(var.unreachable_message, var.message)}"
query = "\"datadog.agent.up\"${module.filter-tags.service_check}.last(6).count_by_status()"
query = <<EOQ
"datadog.agent.up"${module.filter-tags.service_check}.last(6).count_by_status()
EOQ
type = "service check"