From 07fa84c85b766342cf630dff7f9e5384a648d6c1 Mon Sep 17 00:00:00 2001 From: "gauthier.ampe@fr.clara.net" Date: Wed, 24 Jul 2019 17:45:31 +0200 Subject: [PATCH] MON-484 variabilisation of treshold of telemetry ingress not sent monitor --- cloud/azure/iothubs/inputs.tf | 4 ++++ cloud/azure/iothubs/monitors-iothubs.tf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cloud/azure/iothubs/inputs.tf b/cloud/azure/iothubs/inputs.tf index 1fa7bf5..4c813a8 100644 --- a/cloud/azure/iothubs/inputs.tf +++ b/cloud/azure/iothubs/inputs.tf @@ -565,3 +565,7 @@ variable "invalid_d2c_telemetry_egress_rate_threshold_critical" { default = 90 } +variable "too_many_d2c_telemetry_ingress_nosent_threshold_critical" { + description = "D2C Telemetry ingress not sent limit (critical threshold)" + default = 0.3 +} diff --git a/cloud/azure/iothubs/monitors-iothubs.tf b/cloud/azure/iothubs/monitors-iothubs.tf index 654eb54..c2ef38b 100644 --- a/cloud/azure/iothubs/monitors-iothubs.tf +++ b/cloud/azure/iothubs/monitors-iothubs.tf @@ -480,7 +480,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" { default( avg:azure.devices_iothubs.d2c.telemetry.ingress.all_protocol${module.filter-tags.query_alert} by {resource_group,region,name}.as_rate() - avg:azure.devices_iothubs.d2c.telemetry.ingress.success${module.filter-tags.query_alert} by {resource_group,region,name}.as_rate() - , 0) > 0.3 + , 0) > ${var.too_many_d2c_telemetry_ingress_nosent_threshold_critical} EOQ evaluation_delay = var.evaluation_delay