Merge pull request #132 in OPAPM/coco_apm_terraform_onboarding from CD_RemoteServiceCockpit to master

* commit '07bd1db8a9b02931771d7e14a8a2321b86086592':
  "Migrating from Monaco to Terraform for management zone: CD_RemoteServiceCockpit"
  "Migrating from Monaco to Terraform for management zone: CD_RemoteServiceCockpit"
  "Migrating from Monaco to Terraform for management zone: CD_RemoteServiceCockpit"
CD_TS-CMS
PATRYK GUDALEWICZ (ext.) 2023-03-01 19:16:15 +00:00
commit c449366d6b
3 changed files with 283 additions and 0 deletions

View File

@ -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"
}
}
}
}
}

View File

@ -0,0 +1,95 @@
# DEFINE dynatrace_management_zone.CD_RemoteServiceCockpit.id = -11067882662526399
resource "dynatrace_management_zone" "CD_RemoteServiceCockpit" {
name = "CD_RemoteServiceCockpit"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "rs-cockpit"
}
}
}
rules {
type = "CLOUD_APPLICATION_NAMESPACE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "rs-cockpit"
}
}
}
rules {
type = "HOST"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "RS Cockpit"
}
}
}
}
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 = "RS Cockpit"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "RS Cockpit"
}
}
}
}
}

View File

@ -0,0 +1,95 @@
# DEFINE dynatrace_management_zone.CD_RemoteServiceCockpit.id = -5574884807981411113
resource "dynatrace_management_zone" "CD_RemoteServiceCockpit" {
name = "CD_RemoteServiceCockpit"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "rs-cockpit"
}
}
}
rules {
type = "CLOUD_APPLICATION_NAMESPACE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "rs-cockpit"
}
}
}
rules {
type = "HOST"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "rs-cockpit"
}
}
}
}
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 = "rs-cockpit"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "rs-cockpit"
}
}
}
}
}