File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ resource "datadog_monitor" "dead_letters_monitor" {
1515 type = " metric alert"
1616 name = " ${ each . key } -monitor"
1717 message = templatefile (" ${ path . module } /templates/dl_monitor.tmpl" , {
18+ dl_alert_message = var.dl_alert_message
1819 dead_letters_queue_name = each.key
1920 notify = join (" , " , var. dl_alert_recipients )
2021 })
Original file line number Diff line number Diff line change 22Monitor state: :redalert: at {{last_triggered_at}} UTC
33
44Dead letters detected in dead letter queue $ {dead_letters_queue_name}
5+
6+ $ {dl_alert_message}
7+
58They are there for 1 hour
69{{/is_alert}}
710
Original file line number Diff line number Diff line change @@ -250,6 +250,11 @@ variable "dl_alert_recipients" {
250250 description = " List of the alert recipients"
251251}
252252
253+ variable "dl_alert_message" {
254+ type = string
255+ default = " "
256+ }
257+
253258variable "dl_warning" {
254259 type = number
255260 default = 0
You can’t perform that action at this time.
0 commit comments