diff --git a/CN_PROD/management_zone/cd_remoteservicecockpit.tf b/CN_PROD/management_zone/cd_remoteservicecockpit.tf new file mode 100644 index 00000000..47b7d49e --- /dev/null +++ b/CN_PROD/management_zone/cd_remoteservicecockpit.tf @@ -0,0 +1,93 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServiceCockpit.id = 3477102420781561840 +resource "dynatrace_management_zone" "CD_RemoteServiceCockpit" { + name = "CD_RemoteServiceCockpit" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "KUBERNETES_CLUSTER_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "rs-cockpit" + } + } + } + rules { + type = "CLOUD_APPLICATION_NAMESPACE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "KUBERNETES_CLUSTER_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "rs-cockpit" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RS Cockpit" + } + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "rs-cockpit" + } + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "PROCESS_GROUP_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "rs-cockpit" + } + } + } + } +}