diff --git a/cloud/azure/iothubs/inputs.tf b/cloud/azure/iothubs/inputs.tf index 71bea7c..deca1b7 100644 --- a/cloud/azure/iothubs/inputs.tf +++ b/cloud/azure/iothubs/inputs.tf @@ -565,7 +565,12 @@ variable "invalid_d2c_telemetry_egress_rate_threshold_critical" { default = 90 } -variable "too_many_d2c_telemetry_ingress_nosent_threshold_critical" { +variable "too_many_d2c_telemetry_ingress_nosent_rate_threshold_critical" { description = "D2C Telemetry ingress not sent limit (critical threshold)" - default = 1 + default = 10 +} + +variable "too_many_d2c_telemetry_ingress_nosent_rate_threshold_warning" { + description = "D2C Telemetry ingress not sent limit (warning threshold)" + default = 20 } diff --git a/cloud/azure/iothubs/monitors-iothubs.tf b/cloud/azure/iothubs/monitors-iothubs.tf index f5bfcaa..ffb1764 100644 --- a/cloud/azure/iothubs/monitors-iothubs.tf +++ b/cloud/azure/iothubs/monitors-iothubs.tf @@ -481,9 +481,14 @@ resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" { default( 100-(default(avg:zure.devices_iothubs.d2c.telemetry.ingress.success${module.filter-tags.query_alert} by {resource_group,region,name}.as_rate(),0) / default(avg:azure.devices_iothubs.d2c.telemetry.ingress.all_protocol${module.filter-tags.query_alert} by {resource_group,region,name}.as_rate(),0) - * 100),0) > ${var.too_many_d2c_telemetry_ingress_nosent_threshold_critical} + * 100),0) > ${var.too_many_d2c_telemetry_ingress_nosent_rate_threshold_critical} EOQ + thresholds = { + warning = var.too_many_d2c_telemetry_ingress_nosent_rate_threshold_warning + critical = var.too_many_d2c_telemetry_ingress_nosent_rate_threshold_critical + } + evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = false