From 03485e17d92dde9321f4d2fbd28ebed38aee4e81 Mon Sep 17 00:00:00 2001 From: "gauthier.ampe@fr.clara.net" Date: Fri, 26 Jul 2019 09:40:23 +0200 Subject: [PATCH] MON-484 add comment to explain the trick with avg --- cloud/azure/iothubs/monitors-iothubs.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/azure/iothubs/monitors-iothubs.tf b/cloud/azure/iothubs/monitors-iothubs.tf index c2ef38b..0f4e251 100644 --- a/cloud/azure/iothubs/monitors-iothubs.tf +++ b/cloud/azure/iothubs/monitors-iothubs.tf @@ -475,6 +475,7 @@ resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" { message = coalesce(var.too_many_d2c_telemetry_ingress_nosent_message, var.message) type = "query alert" + #For this monitor, the avg is needed to smooth the -1 and +1 that we meet regularly. With just a tiny diff like -1 / + 1, if we put 0.3 it should not ring anymore. But there is a bigger difference (exemple 20) The average will be strongly raised and an alert will be triggered. query = <