MON-247 remove team variable

This commit is contained in:
Quentin Manfroi 2018-09-03 09:39:14 +02:00
parent abd749fbc7
commit 70ce8e68bc
2 changed files with 2 additions and 8 deletions

View File

@ -1,10 +1,5 @@
# Datadog global variables
variable "team" {
type = "string"
default = "k8s"
}
variable "environment" {
description = "Architecture environment"
}
@ -29,7 +24,6 @@ variable "delay" {
}
# Datadog monitors variables
# N/A
variable "ark_schedules_monitor_message" {
description = "Custom message for Ark schedules monitor"

View File

@ -9,7 +9,7 @@ data "template_file" "filter" {
}
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"
message = "${coalesce(var.ark_schedules_monitor_message, var.message)}"
@ -35,5 +35,5 @@ resource "datadog_monitor" "ark_schedules_monitor" {
require_full_window = false
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"]
}