"Migrating from Monaco to Terraform for management zone: CD_SMACC_BE"

CD_SMACC_BE
Patryk Gudalewicz 2023-03-01 18:47:31 +01:00
parent 5ad7b30cd3
commit c5a505292c
1 changed files with 212 additions and 0 deletions

View File

@ -0,0 +1,212 @@
# DEFINE dynatrace_management_zone.CD_SMACC_BE.id = 4385063573403167214
resource "dynatrace_management_zone" "CD_SMACC_BE" {
name = "CD_SMACC_BE"
rules {
type = "SERVICE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "public n"
}
}
}
rules {
type = "SERVICE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "unmonitored"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "MetricsResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PingResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PrometheusResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-BE"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "MetricsResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PingResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PrometheusResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-KTS"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-BE"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-KTS"
}
}
}
}
}