MON-484 add comment to explain the trick with avg
This commit is contained in:
parent
06d34b47ff
commit
03485e17d9
@ -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)
|
message = coalesce(var.too_many_d2c_telemetry_ingress_nosent_message, var.message)
|
||||||
type = "query alert"
|
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 = <<EOQ
|
query = <<EOQ
|
||||||
avg(${var.too_many_d2c_telemetry_ingress_nosent_timeframe}):
|
avg(${var.too_many_d2c_telemetry_ingress_nosent_timeframe}):
|
||||||
default(
|
default(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user