MON-79 hardcode tags

This commit is contained in:
Quentin Manfroi 2017-11-23 11:34:12 +01:00
parent 14a79613b4
commit 7b9156b40b
2 changed files with 9 additions and 26 deletions

View File

@ -4,23 +4,6 @@ variable "environment" {
type = "string"
}
variable "subscription_id" {
description = "Azure account id used as filter for monitors"
type = "string"
}
variable "provider" {
description = "Cloud provider which the monitor and its based metric depend on"
type = "string"
default = "azure"
}
variable "service" {
description = "Service monitored by this set of monitors"
type = "string"
default = "storage"
}
# Global DataDog
variable "message" {
description = "Message sent when a Redis monitor is triggered"

View File

@ -32,7 +32,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
resource "datadog_monitor" "successful_requests" {
@ -61,7 +61,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
resource "datadog_monitor" "latency" {
@ -90,7 +90,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
resource "datadog_monitor" "timeout_error_requests" {
@ -119,7 +119,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
@ -149,7 +149,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
@ -179,7 +179,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
@ -209,7 +209,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
@ -239,7 +239,7 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}
@ -269,5 +269,5 @@ EOF
renotify_interval = 0
no_data_timeframe = 20
tags = ["env:${var.environment}","resource:${var.service}","team:${var.provider}"]
tags = ["env:${var.environment}","resource:storage","team:azure", "provider:azure"]
}