Skip to content

Commit 5e1aab2

Browse files
fix syntax
1 parent 0c19014 commit 5e1aab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monitoring.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locals {
55
var.enable_glue_create ? lower(var.glue_create_config.sqs_queue_name_dl) : local.base_dlq_name,
66
var.enable_glue_sync ? lower(var.glue_sync_config.sqs_queue_name_dl) : local.base_dlq_name,
77
]
8-
additional_query_conditions = length(var.monitoring_query_conditions) > 0 ? ",${var.monitoring_query_conditions}" : ""
8+
additional_query_conditions = length(var.monitoring_query_conditions) > 0 ? " ,${var.monitoring_query_conditions}" : ""
99
}
1010

1111
resource "datadog_monitor" "dead_letters_monitor" {
@@ -18,7 +18,7 @@ resource "datadog_monitor" "dead_letters_monitor" {
1818
dead_letters_queue_name = each.key
1919
notify = join(", ", var.dl_alert_recipients)
2020
})
21-
query = "avg(last_1h):avg:aws.sqs.approximate_number_of_messages_visible{queuename:${each.key}${local.additional_query_conditions} > ${var.dl_critical}}"
21+
query = "avg(last_1h):avg:aws.sqs.approximate_number_of_messages_visible{queuename:${each.key}${local.additional_query_conditions}} > ${var.dl_critical}"
2222

2323
monitor_thresholds {
2424
warning = var.dl_warning

0 commit comments

Comments
 (0)