MON-74 convert all as_count queries to sum

This commit is contained in:
Quentin Manfroi 2017-11-26 20:26:18 +01:00
parent 012d16b77a
commit 178813dd5c

View File

@ -100,7 +100,7 @@ resource "datadog_monitor" "appservices_http_2xx_status_rate" {
message = "${var.message}"
query = <<EOF
avg(last_5m): (
sum(last_5m): (
avg:azure.app_services.http2xx{${data.template_file.filter.rendered}}.as_count() /
avg:azure.app_services.http2xx{${data.template_file.filter.rendered}}.as_count()
) < ${var.http_2xx_status_rate_threshold_critical}
@ -114,7 +114,7 @@ resource "datadog_monitor" "appservices_http_2xx_status_rate" {
critical = "${var.http_2xx_status_rate_threshold_critical}"
}
notify_no_data = true # Will notify when no data is received
notify_no_data = false # Will notify when no data is received
renotify_interval = 0
require_full_window = true
timeout_h = 0