MON-96 fix comparator html not interpreted
This commit is contained in:
parent
a2bc4d40f0
commit
1f834374ea
@ -38,7 +38,7 @@ resource "datadog_monitor" "ALB_no_healthy_instances" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ALB_latency" {
|
resource "datadog_monitor" "ALB_latency" {
|
||||||
name = "[${var.environment}] ALB latency {{#is_alert}}{{comparator}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
name = "[${var.environment}] ALB latency {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.latency_message, var.message)}"
|
message = "${coalesce(var.latency_message, var.message)}"
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ resource "datadog_monitor" "ALB_latency" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ALB_httpcode_elb_5xx" {
|
resource "datadog_monitor" "ALB_httpcode_elb_5xx" {
|
||||||
name = "[${var.environment}] ALB HTTP code 5xx {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ALB HTTP code 5xx {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.httpcode_elb_5xx_message, var.message)}"
|
message = "${coalesce(var.httpcode_elb_5xx_message, var.message)}"
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_5xx" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ALB_httpcode_elb_4xx" {
|
resource "datadog_monitor" "ALB_httpcode_elb_4xx" {
|
||||||
name = "[${var.environment}] ALB HTTP code 4xx {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ALB HTTP code 4xx {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.httpcode_elb_4xx_message, var.message)}"
|
message = "${coalesce(var.httpcode_elb_4xx_message, var.message)}"
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_4xx" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ALB_httpcode_target_5xx" {
|
resource "datadog_monitor" "ALB_httpcode_target_5xx" {
|
||||||
name = "[${var.environment}] ALB target HTTP code 5xx {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ALB target HTTP code 5xx {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.httpcode_target_5xx_message, var.message)}"
|
message = "${coalesce(var.httpcode_target_5xx_message, var.message)}"
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ resource "datadog_monitor" "ALB_httpcode_target_5xx" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ALB_httpcode_target_4xx" {
|
resource "datadog_monitor" "ALB_httpcode_target_4xx" {
|
||||||
name = "[${var.environment}] ALB target HTTP code 4xx {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ALB target HTTP code 4xx {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.httpcode_target_4xx_message, var.message)}"
|
message = "${coalesce(var.httpcode_target_4xx_message, var.message)}"
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Monitoring Api Gateway latency
|
# Monitoring Api Gateway latency
|
||||||
resource "datadog_monitor" "API_Gateway_latency" {
|
resource "datadog_monitor" "API_Gateway_latency" {
|
||||||
name = "[${var.environment}] API Gateway latency {{#is_alert}}{{comparator}} {{threshold}}ms ({{value}}ms){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}ms ({{value}}ms){{/is_warning}}"
|
name = "[${var.environment}] API Gateway latency {{#is_alert}}{{{comparator}}} {{threshold}}ms ({{value}}ms){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}ms ({{value}}ms){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.latency_message, var.message)}"
|
message = "${coalesce(var.latency_message, var.message)}"
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ resource "datadog_monitor" "API_Gateway_latency" {
|
|||||||
|
|
||||||
# Monitoring API Gateway 5xx errors percent
|
# Monitoring API Gateway 5xx errors percent
|
||||||
resource "datadog_monitor" "API_http_5xx_errors_count" {
|
resource "datadog_monitor" "API_http_5xx_errors_count" {
|
||||||
name = "[${var.environment}] API Gateway HTTP 5xx errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] API Gateway HTTP 5xx errors {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.http_5xx_requests_message, var.message)}"
|
message = "${coalesce(var.http_5xx_requests_message, var.message)}"
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ resource "datadog_monitor" "API_http_5xx_errors_count" {
|
|||||||
|
|
||||||
# Monitoring API Gateway 4xx errors percent
|
# Monitoring API Gateway 4xx errors percent
|
||||||
resource "datadog_monitor" "API_http_4xx_errors_count" {
|
resource "datadog_monitor" "API_http_4xx_errors_count" {
|
||||||
name = "[${var.environment}] API Gateway HTTP 4xx errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] API Gateway HTTP 4xx errors {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.http_4xx_requests_message, var.message)}"
|
message = "${coalesce(var.http_4xx_requests_message, var.message)}"
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ EOF
|
|||||||
|
|
||||||
### Elasticsearch cluster free storage space monitor ###
|
### Elasticsearch cluster free storage space monitor ###
|
||||||
resource "datadog_monitor" "es_free_space_low" {
|
resource "datadog_monitor" "es_free_space_low" {
|
||||||
name = "[${var.environment}] ElasticSearch cluster free storage space {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ElasticSearch cluster free storage space {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.diskspace_message, var.message)}"
|
message = "${coalesce(var.diskspace_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
@ -82,7 +82,7 @@ EOF
|
|||||||
|
|
||||||
### Elasticsearch cluster CPU monitor ###
|
### Elasticsearch cluster CPU monitor ###
|
||||||
resource "datadog_monitor" "es_cpu_90_15min" {
|
resource "datadog_monitor" "es_cpu_90_15min" {
|
||||||
name = "[${var.environment}] ElasticSearch cluster CPU high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ElasticSearch cluster CPU high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.cpu_message, var.message)}"
|
message = "${coalesce(var.cpu_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
|
|||||||
@ -35,7 +35,7 @@ resource "datadog_monitor" "ELB_no_healthy_instances" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ELB_too_much_4xx" {
|
resource "datadog_monitor" "ELB_too_much_4xx" {
|
||||||
name = "[${var.environment}] ELB 4xx errors too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ELB 4xx errors too high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.elb_4xx_message, var.message)}"
|
message = "${coalesce(var.elb_4xx_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -71,7 +71,7 @@ resource "datadog_monitor" "ELB_too_much_4xx" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ELB_too_much_5xx" {
|
resource "datadog_monitor" "ELB_too_much_5xx" {
|
||||||
name = "[${var.environment}] ELB 5xx errors too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ELB 5xx errors too high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.elb_5xx_message, var.message)}"
|
message = "${coalesce(var.elb_5xx_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -107,7 +107,7 @@ resource "datadog_monitor" "ELB_too_much_5xx" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ELB_too_much_4xx_backend" {
|
resource "datadog_monitor" "ELB_too_much_4xx_backend" {
|
||||||
name = "[${var.environment}] ELB backend 4xx errors too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ELB backend 4xx errors too high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.elb_backend_4xx_message, var.message)}"
|
message = "${coalesce(var.elb_backend_4xx_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -143,7 +143,7 @@ resource "datadog_monitor" "ELB_too_much_4xx_backend" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ELB_too_much_5xx_backend" {
|
resource "datadog_monitor" "ELB_too_much_5xx_backend" {
|
||||||
name = "[${var.environment}] ELB backend 5xx errors too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] ELB backend 5xx errors too high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.elb_backend_5xx_message, var.message)}"
|
message = "${coalesce(var.elb_backend_5xx_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -179,7 +179,7 @@ resource "datadog_monitor" "ELB_too_much_5xx_backend" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ELB_backend_latency" {
|
resource "datadog_monitor" "ELB_backend_latency" {
|
||||||
name = "[${var.environment}] ELB latency too high {{#is_alert}}{{comparator}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
name = "[${var.environment}] ELB latency too high {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||||
message = "${coalesce(var.elb_backend_latency_message, var.message)}"
|
message = "${coalesce(var.elb_backend_latency_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -8,7 +8,7 @@ data "template_file" "filter" {
|
|||||||
|
|
||||||
### RDS instance CPU monitor ###
|
### RDS instance CPU monitor ###
|
||||||
resource "datadog_monitor" "rds_cpu_90_15min" {
|
resource "datadog_monitor" "rds_cpu_90_15min" {
|
||||||
name = "[${var.environment}] RDS instance CPU high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] RDS instance CPU high {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.cpu_message, var.message)}"
|
message = "${coalesce(var.cpu_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
@ -41,7 +41,7 @@ EOF
|
|||||||
|
|
||||||
### RDS instance free space monitor ###
|
### RDS instance free space monitor ###
|
||||||
resource "datadog_monitor" "rds_free_space_low" {
|
resource "datadog_monitor" "rds_free_space_low" {
|
||||||
name = "[${var.environment}] RDS instance free space {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] RDS instance free space {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.diskspace_message, var.message)}"
|
message = "${coalesce(var.diskspace_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
|
|||||||
@ -39,7 +39,7 @@ resource "datadog_monitor" "apimgt_status" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "apimgt_failed_requests" {
|
resource "datadog_monitor" "apimgt_failed_requests" {
|
||||||
name = "[${var.environment}] API Management too many failed requests {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.failed_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -72,7 +72,7 @@ resource "datadog_monitor" "apimgt_failed_requests" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "apimgt_other_requests" {
|
resource "datadog_monitor" "apimgt_other_requests" {
|
||||||
name = "[${var.environment}] API Management too many other requests {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.other_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -105,7 +105,7 @@ resource "datadog_monitor" "apimgt_other_requests" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "apimgt_unauthorized_requests" {
|
resource "datadog_monitor" "apimgt_unauthorized_requests" {
|
||||||
name = "[${var.environment}] API Management too many unauthorized requests {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.unauthorized_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -138,7 +138,7 @@ resource "datadog_monitor" "apimgt_unauthorized_requests" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "apimgt_successful_requests" {
|
resource "datadog_monitor" "apimgt_successful_requests" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.successful_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -8,7 +8,7 @@ data "template_file" "filter" {
|
|||||||
|
|
||||||
# Monitoring App Services response time
|
# Monitoring App Services response time
|
||||||
resource "datadog_monitor" "appservices_response_time" {
|
resource "datadog_monitor" "appservices_response_time" {
|
||||||
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}}"
|
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"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.response_time_message, var.message)}"
|
message = "${coalesce(var.response_time_message, var.message)}"
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ resource "datadog_monitor" "appservices_response_time" {
|
|||||||
|
|
||||||
# Monitoring App Services memory usage
|
# Monitoring App Services memory usage
|
||||||
resource "datadog_monitor" "appservices_memory_usage_count" {
|
resource "datadog_monitor" "appservices_memory_usage_count" {
|
||||||
name = "[${var.environment}] App Services memory usage {{#is_alert}}{{comparator}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
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"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.memory_usage_message, var.message)}"
|
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
|
# Monitoring App Services 5xx errors percent
|
||||||
resource "datadog_monitor" "appservices_http_5xx_errors_count" {
|
resource "datadog_monitor" "appservices_http_5xx_errors_count" {
|
||||||
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}}"
|
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"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.http_5xx_requests_message, var.message)}"
|
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
|
# Monitoring App Services 4xx errors percent
|
||||||
resource "datadog_monitor" "appservices_http_4xx_errors_count" {
|
resource "datadog_monitor" "appservices_http_4xx_errors_count" {
|
||||||
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}}"
|
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"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.http_4xx_requests_message, var.message)}"
|
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
|
# Monitoring App Services HTTP 2xx & 3xx status pages percent
|
||||||
resource "datadog_monitor" "appservices_http_success_status_rate" {
|
resource "datadog_monitor" "appservices_http_success_status_rate" {
|
||||||
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}}"
|
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"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.http_successful_requests_message, var.message)}"
|
message = "${coalesce(var.http_successful_requests_message, var.message)}"
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ resource "datadog_monitor" "eventhub_status" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "eventhub_failed_requests" {
|
resource "datadog_monitor" "eventhub_failed_requests" {
|
||||||
name = "[${var.environment}] Event Hub too many failed requests {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.failed_requests_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -69,7 +69,7 @@ resource "datadog_monitor" "eventhub_failed_requests" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "eventhub_errors" {
|
resource "datadog_monitor" "eventhub_errors" {
|
||||||
name = "[${var.environment}] Event Hub too many errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.errors_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
resource "datadog_monitor" "too_many_jobs_failed" {
|
resource "datadog_monitor" "too_many_jobs_failed" {
|
||||||
name = "[${var.environment}] IOT Hub Too many jobs failed {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.failed_jobs_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -34,7 +34,7 @@ resource "datadog_monitor" "too_many_jobs_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_list_jobs_failed" {
|
resource "datadog_monitor" "too_many_list_jobs_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_listjobs_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -69,7 +69,7 @@ resource "datadog_monitor" "too_many_list_jobs_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_query_jobs_failed" {
|
resource "datadog_monitor" "too_many_query_jobs_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_queryjobs_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -130,7 +130,7 @@ resource "datadog_monitor" "status" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "total_devices" {
|
resource "datadog_monitor" "total_devices" {
|
||||||
name = "[${var.environment}] IOT Hub Total devices is wrong {{#is_alert}}{{comparator}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.total_devices_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -156,7 +156,7 @@ resource "datadog_monitor" "total_devices" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_c2d_methods_failed" {
|
resource "datadog_monitor" "too_many_c2d_methods_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_c2d_methods_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -191,7 +191,7 @@ resource "datadog_monitor" "too_many_c2d_methods_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_c2d_twin_read_failed" {
|
resource "datadog_monitor" "too_many_c2d_twin_read_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_c2d_twin_read_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -226,7 +226,7 @@ resource "datadog_monitor" "too_many_c2d_twin_read_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_c2d_twin_update_failed" {
|
resource "datadog_monitor" "too_many_c2d_twin_update_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_c2d_twin_update_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -261,7 +261,7 @@ resource "datadog_monitor" "too_many_c2d_twin_update_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_d2c_twin_read_failed" {
|
resource "datadog_monitor" "too_many_d2c_twin_read_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_d2c_twin_read_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -296,7 +296,7 @@ resource "datadog_monitor" "too_many_d2c_twin_read_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_d2c_twin_update_failed" {
|
resource "datadog_monitor" "too_many_d2c_twin_update_failed" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.failed_d2c_twin_update_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -331,7 +331,7 @@ resource "datadog_monitor" "too_many_d2c_twin_update_failed" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_d2c_telemetry_egress_dropped" {
|
resource "datadog_monitor" "too_many_d2c_telemetry_egress_dropped" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.dropped_d2c_telemetry_egress_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -369,7 +369,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_egress_dropped" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_d2c_telemetry_egress_orphaned" {
|
resource "datadog_monitor" "too_many_d2c_telemetry_egress_orphaned" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.orphaned_d2c_telemetry_egress_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -407,7 +407,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_egress_orphaned" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_d2c_telemetry_egress_invalid" {
|
resource "datadog_monitor" "too_many_d2c_telemetry_egress_invalid" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.invalid_d2c_telemetry_egress_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -445,7 +445,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_egress_invalid" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" {
|
resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.too_many_d2c_telemetry_ingress_nosent_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -33,7 +33,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "evictedkeys" {
|
resource "datadog_monitor" "evictedkeys" {
|
||||||
name = "[${var.environment}] Redis too many evictedkeys {{#is_alert}}{{comparator}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.evictedkeys_limit_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -66,7 +66,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "percent_processor_time" {
|
resource "datadog_monitor" "percent_processor_time" {
|
||||||
name = "[${var.environment}] Redis processor time too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.percent_processor_time_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -99,7 +99,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "server_load" {
|
resource "datadog_monitor" "server_load" {
|
||||||
name = "[${var.environment}] Redis server load too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.server_load_rate_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -7,7 +7,7 @@ data "template_file" "filter" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "sql-database_cpu_90_15min" {
|
resource "datadog_monitor" "sql-database_cpu_90_15min" {
|
||||||
name = "[${var.environment}] SQL Database CPU too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.cpu_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -39,7 +39,7 @@ resource "datadog_monitor" "sql-database_cpu_90_15min" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "sql-database_free_space_low" {
|
resource "datadog_monitor" "sql-database_free_space_low" {
|
||||||
name = "[${var.environment}] SQL Database low free space {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.diskspace_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
@ -72,7 +72,7 @@ resource "datadog_monitor" "sql-database_free_space_low" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "sql-database_dtu_consumption_high" {
|
resource "datadog_monitor" "sql-database_dtu_consumption_high" {
|
||||||
name = "[${var.environment}] SQL Database DTU Consumption too high {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.dtu_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
@ -105,7 +105,7 @@ resource "datadog_monitor" "sql-database_dtu_consumption_high" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "sql-database_deadlocks_count" {
|
resource "datadog_monitor" "sql-database_deadlocks_count" {
|
||||||
name = "[${var.environment}] SQL Database Deadlocks too high {{#is_alert}}{{comparator}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.deadlock_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
|
|||||||
@ -39,7 +39,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "successful_requests" {
|
resource "datadog_monitor" "successful_requests" {
|
||||||
name = "[${var.environment}] Azure Storage too few successful requests {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.successful_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -71,7 +71,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "latency" {
|
resource "datadog_monitor" "latency" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.latency_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -103,7 +103,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "timeout_error_requests" {
|
resource "datadog_monitor" "timeout_error_requests" {
|
||||||
name = "[${var.environment}] Azure Storage too many timeout errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.timeout_error_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -135,7 +135,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "network_error_requests" {
|
resource "datadog_monitor" "network_error_requests" {
|
||||||
name = "[${var.environment}] Azure Storage too many network errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.network_error_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -167,7 +167,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "throttling_error_requests" {
|
resource "datadog_monitor" "throttling_error_requests" {
|
||||||
name = "[${var.environment}] Azure Storage too many throttling errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.throttling_error_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -199,7 +199,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "server_other_error_requests" {
|
resource "datadog_monitor" "server_other_error_requests" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.server_other_error_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -231,7 +231,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "client_other_error_requests" {
|
resource "datadog_monitor" "client_other_error_requests" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.client_other_error_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -263,7 +263,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "authorization_error_requests" {
|
resource "datadog_monitor" "authorization_error_requests" {
|
||||||
name = "[${var.environment}] Azure Storage too many authorization errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.authorization_error_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -33,7 +33,7 @@ resource "datadog_monitor" "status" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "su_utilization" {
|
resource "datadog_monitor" "su_utilization" {
|
||||||
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}}"
|
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)}"
|
message = "${coalesce(var.su_utilization_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -66,7 +66,7 @@ resource "datadog_monitor" "su_utilization" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "failed_function_requests" {
|
resource "datadog_monitor" "failed_function_requests" {
|
||||||
name = "[${var.environment}] Stream Analytics too many failed requests {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.failed_function_requests_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -100,7 +100,7 @@ resource "datadog_monitor" "failed_function_requests" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "conversion_errors" {
|
resource "datadog_monitor" "conversion_errors" {
|
||||||
name = "[${var.environment}] Stream Analytics too many conversion errors {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.conversion_errors_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -133,7 +133,7 @@ resource "datadog_monitor" "conversion_errors" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "runtime_errors" {
|
resource "datadog_monitor" "runtime_errors" {
|
||||||
name = "[${var.environment}] Stream Analytics too many runtime errors {{#is_alert}}{{comparator}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
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)}"
|
message = "${coalesce(var.runtime_errors_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
@ -7,7 +7,7 @@ data "template_file" "filter" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "datadog_php_fpm_connect_idle" {
|
resource "datadog_monitor" "datadog_php_fpm_connect_idle" {
|
||||||
name = "[${var.environment}] php_fpm busy worker {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] php_fpm busy worker {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.php_fpm_busy_message, var.message)}"
|
message = "${coalesce(var.php_fpm_busy_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
|
|||||||
@ -7,7 +7,7 @@ data "template_file" "filter" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "datadog_cpu_too_high" {
|
resource "datadog_monitor" "datadog_cpu_too_high" {
|
||||||
name = "[${var.environment}] CPU usage {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] CPU usage {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.cpu_high_message, var.message)}"
|
message = "${coalesce(var.cpu_high_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -39,7 +39,7 @@ resource "datadog_monitor" "datadog_cpu_too_high" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "datadog_load_too_high" {
|
resource "datadog_monitor" "datadog_load_too_high" {
|
||||||
name = "[${var.environment}] CPU load 5 {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] CPU load 5 {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.cpu_load_message, var.message)}"
|
message = "${coalesce(var.cpu_load_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -72,7 +72,7 @@ resource "datadog_monitor" "datadog_load_too_high" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "datadog_free_disk_space_too_low" {
|
resource "datadog_monitor" "datadog_free_disk_space_too_low" {
|
||||||
name = "[${var.environment}] Free disk space {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] Free disk space {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.free_disk_space_message, var.message)}"
|
message = "${coalesce(var.free_disk_space_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -105,7 +105,7 @@ resource "datadog_monitor" "datadog_free_disk_space_too_low" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
|
resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
|
||||||
name = "[${var.environment}] Free disk inodes {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] Free disk inodes {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${coalesce(var.free_disk_inodes_message, var.message)}"
|
message = "${coalesce(var.free_disk_inodes_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
@ -138,7 +138,7 @@ resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "datadog_free_memory" {
|
resource "datadog_monitor" "datadog_free_memory" {
|
||||||
name = "[${var.environment}] Free memory {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] Free memory {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||||
message = "${var.free_memory_message}"
|
message = "${var.free_memory_message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user