MON-139 - Updated Azure monitors name with new best practice

This commit is contained in:
Alexandre Gaillet 2018-03-20 16:47:50 +01:00
parent 2a4746b52d
commit 86cf2774d6
8 changed files with 43 additions and 43 deletions

View File

@ -39,7 +39,7 @@ resource "datadog_monitor" "apimgt_status" {
}
resource "datadog_monitor" "apimgt_failed_requests" {
name = "[${var.environment}] API Management too many failed requests {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] API Management too many failed requests {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_requests_message, var.message)}"
query = <<EOF
@ -72,7 +72,7 @@ resource "datadog_monitor" "apimgt_failed_requests" {
}
resource "datadog_monitor" "apimgt_other_requests" {
name = "[${var.environment}] API Management too many other requests {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] API Management too many other requests {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.other_requests_message, var.message)}"
query = <<EOF
@ -105,7 +105,7 @@ resource "datadog_monitor" "apimgt_other_requests" {
}
resource "datadog_monitor" "apimgt_unauthorized_requests" {
name = "[${var.environment}] API Management too many unauthorized requests {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] API Management too many unauthorized requests {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.unauthorized_requests_message, var.message)}"
query = <<EOF
@ -138,7 +138,7 @@ resource "datadog_monitor" "apimgt_unauthorized_requests" {
}
resource "datadog_monitor" "apimgt_successful_requests" {
name = "[${var.environment}] API Management successful requests rate too low {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] API Management successful requests rate too low {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.successful_requests_message, var.message)}"
query = <<EOF

View File

@ -8,7 +8,7 @@ data "template_file" "filter" {
# Monitoring App Services response time
resource "datadog_monitor" "appservices_response_time" {
name = "[${var.environment}] App Services response time too high {{comparator}} {{#is_alert}}{{threshold}}s{{/is_alert}}{{#is_warning}}{{warn_threshold}}s{{/is_warning}} ({{value}}s)"
name = "[${var.environment}] App Services response time too high {{#is_alert}}{{comparator}}{{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}s ({{value}}s){{/is_warning}}"
type = "metric alert"
message = "${coalesce(var.response_time_message, var.message)}"
@ -39,7 +39,7 @@ resource "datadog_monitor" "appservices_response_time" {
# Monitoring App Services memory usage
resource "datadog_monitor" "appservices_memory_usage_count" {
name = "[${var.environment}] App Services memory usage {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] App Services memory usage {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
type = "metric alert"
message = "${coalesce(var.memory_usage_message, var.message)}"
@ -70,7 +70,7 @@ resource "datadog_monitor" "appservices_memory_usage_count" {
# Monitoring App Services 5xx errors percent
resource "datadog_monitor" "appservices_http_5xx_errors_count" {
name = "[${var.environment}] App Services HTTP 5xx errors too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] App Services HTTP 5xx errors too high {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
type = "metric alert"
message = "${coalesce(var.http_5xx_requests_message, var.message)}"
@ -102,7 +102,7 @@ resource "datadog_monitor" "appservices_http_5xx_errors_count" {
# Monitoring App Services 4xx errors percent
resource "datadog_monitor" "appservices_http_4xx_errors_count" {
name = "[${var.environment}] App Services HTTP 4xx errors too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] App Services HTTP 4xx errors too high {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
type = "metric alert"
message = "${coalesce(var.http_4xx_requests_message, var.message)}"
@ -134,7 +134,7 @@ resource "datadog_monitor" "appservices_http_4xx_errors_count" {
# Monitoring App Services HTTP 2xx & 3xx status pages percent
resource "datadog_monitor" "appservices_http_success_status_rate" {
name = "[${var.environment}] App Services HTTP successful responses too low {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] App Services HTTP successful responses too low {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
type = "metric alert"
message = "${coalesce(var.http_successful_requests_message, var.message)}"

View File

@ -33,7 +33,7 @@ resource "datadog_monitor" "eventhub_status" {
}
resource "datadog_monitor" "eventhub_failed_requests" {
name = "[${var.environment}] Event Hub too many failed requests {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Event Hub too many failed requests {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_requests_rate_message, var.message)}"
query = <<EOF
@ -69,7 +69,7 @@ resource "datadog_monitor" "eventhub_failed_requests" {
}
resource "datadog_monitor" "eventhub_errors" {
name = "[${var.environment}] Event Hub too many errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Event Hub too many errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.errors_rate_message, var.message)}"
query = <<EOF

View File

@ -1,5 +1,5 @@
resource "datadog_monitor" "too_many_jobs_failed" {
name = "[${var.environment}] IOT Hub Too many jobs failed {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many jobs failed {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_jobs_rate_message, var.message)}"
query = <<EOF
@ -34,7 +34,7 @@ resource "datadog_monitor" "too_many_jobs_failed" {
}
resource "datadog_monitor" "too_many_list_jobs_failed" {
name = "[${var.environment}] IOT Hub Too many list_jobs failure {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many list_jobs failure {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_listjobs_rate_message, var.message)}"
query = <<EOF
@ -69,7 +69,7 @@ resource "datadog_monitor" "too_many_list_jobs_failed" {
}
resource "datadog_monitor" "too_many_query_jobs_failed" {
name = "[${var.environment}] IOT Hub Too many query_jobs failed {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many query_jobs failed {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_queryjobs_rate_message, var.message)}"
query = <<EOF
@ -130,7 +130,7 @@ resource "datadog_monitor" "status" {
}
resource "datadog_monitor" "total_devices" {
name = "[${var.environment}] IOT Hub Total devices is wrong {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] IOT Hub Total devices is wrong {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.total_devices_message, var.message)}"
query = <<EOF
@ -156,7 +156,7 @@ resource "datadog_monitor" "total_devices" {
}
resource "datadog_monitor" "too_many_c2d_methods_failed" {
name = "[${var.environment}] IOT Hub Too many c2d methods failure {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many c2d methods failure {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_c2d_methods_rate_message, var.message)}"
query = <<EOF
@ -191,7 +191,7 @@ resource "datadog_monitor" "too_many_c2d_methods_failed" {
}
resource "datadog_monitor" "too_many_c2d_twin_read_failed" {
name = "[${var.environment}] IOT Hub Too many c2d twin read failure {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many c2d twin read failure {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_c2d_twin_read_rate_message, var.message)}"
query = <<EOF
@ -226,7 +226,7 @@ resource "datadog_monitor" "too_many_c2d_twin_read_failed" {
}
resource "datadog_monitor" "too_many_c2d_twin_update_failed" {
name = "[${var.environment}] IOT Hub Too many c2d twin update failure {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many c2d twin update failure {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_c2d_twin_update_rate_message, var.message)}"
query = <<EOF
@ -261,7 +261,7 @@ resource "datadog_monitor" "too_many_c2d_twin_update_failed" {
}
resource "datadog_monitor" "too_many_d2c_twin_read_failed" {
name = "[${var.environment}] IOT Hub Too many d2c twin read failure {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many d2c twin read failure {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_d2c_twin_read_rate_message, var.message)}"
query = <<EOF
@ -296,7 +296,7 @@ resource "datadog_monitor" "too_many_d2c_twin_read_failed" {
}
resource "datadog_monitor" "too_many_d2c_twin_update_failed" {
name = "[${var.environment}] IOT Hub Too many d2c twin update failure {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] IOT Hub Too many d2c twin update failure {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_d2c_twin_update_rate_message, var.message)}"
query = <<EOF
@ -331,7 +331,7 @@ resource "datadog_monitor" "too_many_d2c_twin_update_failed" {
}
resource "datadog_monitor" "too_many_d2c_telemetry_egress_dropped" {
name = "[${var.environment}] IOT Hub Too many d2c telemetry egress dropped {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] IOT Hub Too many d2c telemetry egress dropped {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.dropped_d2c_telemetry_egress_message, var.message)}"
query = <<EOF
@ -369,7 +369,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_egress_dropped" {
}
resource "datadog_monitor" "too_many_d2c_telemetry_egress_orphaned" {
name = "[${var.environment}] IOT Hub Too many d2c telemetry egress orphaned {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] IOT Hub Too many d2c telemetry egress orphaned {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.orphaned_d2c_telemetry_egress_message, var.message)}"
query = <<EOF
@ -407,7 +407,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_egress_orphaned" {
}
resource "datadog_monitor" "too_many_d2c_telemetry_egress_invalid" {
name = "[${var.environment}] IOT Hub Too many d2c telemetry egress invalid {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] IOT Hub Too many d2c telemetry egress invalid {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.invalid_d2c_telemetry_egress_message, var.message)}"
query = <<EOF
@ -445,7 +445,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_egress_invalid" {
}
resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" {
name = "[${var.environment}] IOT Hub Too many d2c telemetry ingress not sent {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] IOT Hub Too many d2c telemetry ingress not sent {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.too_many_d2c_telemetry_ingress_nosent_message, var.message)}"
query = <<EOF

View File

@ -33,7 +33,7 @@ EOF
}
resource "datadog_monitor" "evictedkeys" {
name = "[${var.environment}] Redis too many evictedkeys {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] Redis too many evictedkeys {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.evictedkeys_limit_message, var.message)}"
query = <<EOF
@ -66,7 +66,7 @@ EOF
}
resource "datadog_monitor" "percent_processor_time" {
name = "[${var.environment}] Redis processor time too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Redis processor time too high {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.percent_processor_time_message, var.message)}"
query = <<EOF
@ -99,7 +99,7 @@ EOF
}
resource "datadog_monitor" "server_load" {
name = "[${var.environment}] Redis server load too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Redis server load too high {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.server_load_rate_message, var.message)}"
query = <<EOF

View File

@ -7,7 +7,7 @@ data "template_file" "filter" {
}
resource "datadog_monitor" "sql-database_cpu_90_15min" {
name = "[${var.environment}] SQL Database CPU too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] SQL Database CPU too high {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.cpu_message, var.message)}"
query = <<EOF
@ -39,7 +39,7 @@ resource "datadog_monitor" "sql-database_cpu_90_15min" {
}
resource "datadog_monitor" "sql-database_free_space_low" {
name = "[${var.environment}] SQL Database low free space {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] SQL Database low free space {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.diskspace_message, var.message)}"
type = "metric alert"
@ -72,7 +72,7 @@ resource "datadog_monitor" "sql-database_free_space_low" {
}
resource "datadog_monitor" "sql-database_dtu_consumption_high" {
name = "[${var.environment}] SQL Database DTU Consumption too high {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] SQL Database DTU Consumption too high {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.dtu_message, var.message)}"
type = "metric alert"
@ -105,7 +105,7 @@ resource "datadog_monitor" "sql-database_dtu_consumption_high" {
}
resource "datadog_monitor" "sql-database_deadlocks_count" {
name = "[${var.environment}] SQL Database Deadlocks too high {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] SQL Database Deadlocks too high {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.deadlock_message, var.message)}"
type = "metric alert"

View File

@ -39,7 +39,7 @@ EOF
}
resource "datadog_monitor" "successful_requests" {
name = "[${var.environment}] Azure Storage too few successful requests {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too few successful requests {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.successful_requests_message, var.message)}"
query = <<EOF
@ -71,7 +71,7 @@ EOF
}
resource "datadog_monitor" "latency" {
name = "[${var.environment}] Azure Storage too high end to end latency {{comparator}} {{#is_alert}}{{threshold}}ms{{/is_alert}}{{#is_warning}}{{warn_threshold}}ms{{/is_warning}} ({{value}}ms)"
name = "[${var.environment}] Azure Storage too high end to end latency {{#is_alert}}{{comparator}}{{threshold}}ms ({{value}}ms){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}ms ({{value}}ms){{/is_warning}}"
message = "${coalesce(var.latency_message, var.message)}"
query = <<EOF
@ -103,7 +103,7 @@ EOF
}
resource "datadog_monitor" "timeout_error_requests" {
name = "[${var.environment}] Azure Storage too many timeout errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too many timeout errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.timeout_error_requests_message, var.message)}"
query = <<EOF
@ -135,7 +135,7 @@ EOF
}
resource "datadog_monitor" "network_error_requests" {
name = "[${var.environment}] Azure Storage too many network errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too many network errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.network_error_requests_message, var.message)}"
query = <<EOF
@ -167,7 +167,7 @@ EOF
}
resource "datadog_monitor" "throttling_error_requests" {
name = "[${var.environment}] Azure Storage too many throttling errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too many throttling errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.throttling_error_requests_message, var.message)}"
query = <<EOF
@ -199,7 +199,7 @@ EOF
}
resource "datadog_monitor" "server_other_error_requests" {
name = "[${var.environment}] Azure Storage too many server_other errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too many server_other errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.server_other_error_requests_message, var.message)}"
query = <<EOF
@ -231,7 +231,7 @@ EOF
}
resource "datadog_monitor" "client_other_error_requests" {
name = "[${var.environment}] Azure Storage too many client_other errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too many client_other errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.client_other_error_requests_message, var.message)}"
query = <<EOF
@ -263,7 +263,7 @@ EOF
}
resource "datadog_monitor" "authorization_error_requests" {
name = "[${var.environment}] Azure Storage too many authorization errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Azure Storage too many authorization errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.authorization_error_requests_message, var.message)}"
query = <<EOF

View File

@ -33,7 +33,7 @@ resource "datadog_monitor" "status" {
}
resource "datadog_monitor" "su_utilization" {
name = "[${var.environment}] Stream Analytics streaming units utilization too high {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] Stream Analytics streaming units utilization too high {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.su_utilization_message, var.message)}"
query = <<EOF
@ -66,7 +66,7 @@ resource "datadog_monitor" "su_utilization" {
}
resource "datadog_monitor" "failed_function_requests" {
name = "[${var.environment}] Stream Analytics too many failed requests {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Stream Analytics too many failed requests {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.failed_function_requests_message, var.message)}"
query = <<EOF
@ -100,7 +100,7 @@ resource "datadog_monitor" "failed_function_requests" {
}
resource "datadog_monitor" "conversion_errors" {
name = "[${var.environment}] Stream Analytics too many conversion errors {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Stream Analytics too many conversion errors {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.conversion_errors_message, var.message)}"
query = <<EOF
@ -133,7 +133,7 @@ resource "datadog_monitor" "conversion_errors" {
}
resource "datadog_monitor" "runtime_errors" {
name = "[${var.environment}] Stream Analytics too many runtime errors {{comparator}} {{#is_alert}}{{threshold}}{{/is_alert}}{{#is_warning}}{{warn_threshold}}{{/is_warning}} ({{value}})"
name = "[${var.environment}] Stream Analytics too many runtime errors {{#is_alert}}{{comparator}}{{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}} ({{value}}){{/is_warning}}"
message = "${coalesce(var.runtime_errors_message, var.message)}"
query = <<EOF