MON-247 remove team variable
This commit is contained in:
parent
abd749fbc7
commit
70ce8e68bc
@ -1,10 +1,5 @@
|
|||||||
# Datadog global variables
|
# Datadog global variables
|
||||||
|
|
||||||
variable "team" {
|
|
||||||
type = "string"
|
|
||||||
default = "k8s"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "environment" {
|
variable "environment" {
|
||||||
description = "Architecture environment"
|
description = "Architecture environment"
|
||||||
}
|
}
|
||||||
@ -29,7 +24,6 @@ variable "delay" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Datadog monitors variables
|
# Datadog monitors variables
|
||||||
# N/A
|
|
||||||
|
|
||||||
variable "ark_schedules_monitor_message" {
|
variable "ark_schedules_monitor_message" {
|
||||||
description = "Custom message for Ark schedules monitor"
|
description = "Custom message for Ark schedules monitor"
|
||||||
|
|||||||
@ -9,7 +9,7 @@ data "template_file" "filter" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "ark_schedules_monitor" {
|
resource "datadog_monitor" "ark_schedules_monitor" {
|
||||||
name = "[${var.environment}] [${var.team}] Ark backup failed on {{schedule.name}}"
|
name = "[${var.environment}] Ark backup failed on {{schedule.name}}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
message = "${coalesce(var.ark_schedules_monitor_message, var.message)}"
|
message = "${coalesce(var.ark_schedules_monitor_message, var.message)}"
|
||||||
|
|
||||||
@ -35,5 +35,5 @@ resource "datadog_monitor" "ark_schedules_monitor" {
|
|||||||
require_full_window = false
|
require_full_window = false
|
||||||
|
|
||||||
silenced = "${var.ark_schedules_monitor_silenced}"
|
silenced = "${var.ark_schedules_monitor_silenced}"
|
||||||
tags = ["team:${var.team}", "env:${var.environment}", "resource:ark", "provider:prometheus"]
|
tags = ["env:${var.environment}", "type:caas", "provider:prometheus", "resource:ark", "team:claranet", "created-by:terraform"]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user