Compare commits
9 Commits
CD_tol-tss
...
CD_rsu
| Author | SHA1 | Date |
|---|---|---|
|
|
523745bdc6 | |
|
|
029a3ffda9 | |
|
|
5b9885fe09 | |
|
|
387f50cb4e | |
|
|
d8cbe8afd1 | |
|
|
c0a34c9a6b | |
|
|
e834ae3d43 | |
|
|
c09950b503 | |
|
|
7ffaff2ebb |
|
|
@ -0,0 +1,38 @@
|
|||
# DEFINE dynatrace_alerting.CD_rsu_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQwNzdhZGY2Mi1jODQyLTRhNWYtOTJiNi1jODhhODg3MTJhYWG-71TeFdrerQ
|
||||
data "dynatrace_management_zone" "CD_rsu_INT"{ name="CD_rsu" }
|
||||
resource "dynatrace_alerting" "CD_rsu_INT" {
|
||||
name = "CD_rsu INT"
|
||||
management_zone = data.dynatrace_management_zone.CD_rsu_INT.id
|
||||
rules {
|
||||
rule {
|
||||
delay_in_minutes = 0
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "AVAILABILITY"
|
||||
tags = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "CUSTOM_ALERT"
|
||||
tags = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "ERRORS"
|
||||
tags = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "PERFORMANCE"
|
||||
tags = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "RESOURCE_CONTENTION"
|
||||
tags = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
# DEFINE dynatrace_alerting.CD_tol-tssb_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ1NjliZmRiOS03ODk1LTQ1MWQtOTg4OS0xMTczNjRiNDZkZWW-71TeFdrerQ
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_INT"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_alerting" "CD_tol-tssb_INT" {
|
||||
name = "CD_tol-tssb INT"
|
||||
management_zone = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
rules {
|
||||
rule {
|
||||
delay_in_minutes = 0
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "AVAILABILITY"
|
||||
tags = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "CUSTOM_ALERT"
|
||||
tags = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "ERRORS"
|
||||
tags = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "PERFORMANCE"
|
||||
tags = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "RESOURCE_CONTENTION"
|
||||
tags = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +1,16 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_INT-TEST.id = 36dc59d8-006b-4beb-9973-84be761130bb
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_INT-TEST"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_INT-TEST.id = f094cd4c-193a-47ab-af56-b41d532b81dd
|
||||
data "dynatrace_management_zone" "CD_rsu_INT-TEST"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_INT-TEST" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb INT-TEST"
|
||||
name = "CD_rsu INT-TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "CD_tol-tssb" ]
|
||||
tags = [ "CD_rsu" ]
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT-TEST.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_INT-TEST.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -418,7 +418,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -459,7 +459,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -489,7 +489,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -519,7 +519,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -549,7 +549,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT-TEST" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_E2E.id = c4a7a14f-9417-4046-b6ad-331dde25ac87
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_E2E"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_INT.id = 6522dfa7-b86b-4aba-8776-32efda307bdd
|
||||
data "dynatrace_management_zone" "CD_rsu_INT"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_INT" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb E2E"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu INT"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -82,8 +82,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_E2E.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_INT.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -180,7 +180,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -225,7 +225,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -285,10 +285,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_INT.id = 6522dfa7-b86b-4aba-8776-32efda307bdd
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_INT" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_INT.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_INT.id = 5beeedb9-c383-4d64-b3d2-828ea5351bf1
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_INT"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_TEST.id = 67be57b4-71b6-4958-b23a-2a3ea2bb7f26
|
||||
data "dynatrace_management_zone" "CD_rsu_TEST"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_TEST" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb INT"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -82,8 +82,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_TEST.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -180,7 +180,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -225,7 +225,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -285,10 +285,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_TEST.id = 67be57b4-71b6-4958-b23a-2a3ea2bb7f26
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_TEST" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_TEST.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_rsu.id = -4691758522923968476
|
||||
resource "dynatrace_management_zone" "CD_rsu" {
|
||||
name = "CD_rsu"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"Namespace:rsu\"))"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
# DEFINE dynatrace_management_zone.CD_tol-tssb.id = -1465750590167206984
|
||||
resource "dynatrace_management_zone" "CD_tol-tssb" {
|
||||
name = "CD_tol-tssb"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "HOST_TAGS"
|
||||
}
|
||||
tag {
|
||||
# negate = false
|
||||
operator = "EQUALS"
|
||||
value {
|
||||
context = "CONTEXTLESS"
|
||||
key = "Component"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# DEFINE dynatrace_alerting.CD_rsu_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ0YTAxNjFlZS1jY2UwLTQ2ZTUtYjExMC02MGNkNzg3OTJmYTS-71TeFdrerQ
|
||||
data "dynatrace_management_zone" "CD_rsu_PROD"{ name="CD_rsu" }
|
||||
resource "dynatrace_alerting" "CD_rsu_PROD" {
|
||||
name = "CD_rsu PROD"
|
||||
management_zone = data.dynatrace_management_zone.CD_rsu_PROD.id
|
||||
rules {
|
||||
rule {
|
||||
delay_in_minutes = 0
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "AVAILABILITY"
|
||||
tags = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "CUSTOM_ALERT"
|
||||
tags = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "ERRORS"
|
||||
tags = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "PERFORMANCE"
|
||||
tags = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "RESOURCE_CONTENTION"
|
||||
tags = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
# DEFINE dynatrace_alerting.CD_tol-tssb_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRmNWViODUzOC1mOWYzLTQ2MzYtYmY3OS1kYmI5Y2VjZGU5ZWK-71TeFdrerQ
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_PROD"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_alerting" "CD_tol-tssb_PROD" {
|
||||
name = "CD_tol-tssb PROD"
|
||||
management_zone = data.dynatrace_management_zone.CD_tol-tssb_PROD.id
|
||||
rules {
|
||||
rule {
|
||||
delay_in_minutes = 0
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "AVAILABILITY"
|
||||
tags = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "CUSTOM_ALERT"
|
||||
tags = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 10
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "ERRORS"
|
||||
tags = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "PERFORMANCE"
|
||||
tags = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
rule {
|
||||
delay_in_minutes = 30
|
||||
include_mode = "INCLUDE_ALL"
|
||||
severity_level = "RESOURCE_CONTENTION"
|
||||
tags = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# ID a1bae9ff-5998-4d74-a179-58a2659b1352
|
||||
module CD_rsu_vdm_standard_E2E {
|
||||
|
||||
source = "../../_custom_modules/vdm_standard_dashboard"
|
||||
|
||||
dashboardName = "CD_RSU - CN E2E - VDM Standard Dashboard"
|
||||
tag = "rsu"
|
||||
environment = "E2E"
|
||||
managementZoneName = "CD_rsu"
|
||||
sloName = "VDM - RSU - CN E2E"
|
||||
appId = "APP-16772"
|
||||
reliabilityLink = "https://atc.bmwgroup.net/confluence/display/CDRVC/Reliability+Measurement#ReliabilityMeasurement-RemoteSoftwareUpgrade(RSU)"
|
||||
|
||||
reliabilityMetricSelector = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"UpdateRequestResource - rsu - e2e~",
|
||||
~"UpdateManifestResource - rsu - e2e~",
|
||||
~"SendReportResource - rsu - e2e~",
|
||||
~"MessageEndpointProxy - rsu - e2e~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"askForUpdate~",
|
||||
~"askForUpdateManifest~",
|
||||
~"sendReport~",
|
||||
~"Queue: BMW.RSU.ZFUS_MPG_OUTPUT~",
|
||||
~"Queue: BMW.RSU.RN.RNB_TO_RSA~",
|
||||
~"Queue: BMW.RSU.DEC_VEHICLE_REQUEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSA.VEHICLE_MESSAGES~",
|
||||
~"Queue: BMW.RSU.UPDATEMANIFEST.ZFUS_TO_RSA~",
|
||||
~"Queue: BMW.RSU.ENC_UPDATEMANIFEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSU.VEHICLE_TRIGGER~",
|
||||
~"Queue: BMW.RSU.RSA_PIPELINE~"
|
||||
)"))))):splitBy():avg:auto:sort(value(avg,ascending)):limit(11))
|
||||
EOT
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# ID 8059fedd-dfbd-4f54-911f-41c568f54443
|
||||
module CD_rsu_vdm_standard_PROD {
|
||||
|
||||
source = "../../_custom_modules/vdm_standard_dashboard"
|
||||
|
||||
dashboardName = "CD_RSU - CN PROD - VDM Standard Dashboard"
|
||||
tag = "rsu"
|
||||
environment = "PROD"
|
||||
managementZoneName = "CD_rsu"
|
||||
sloName = "VDM - RSU - CN PROD"
|
||||
appId = "APP-16772"
|
||||
reliabilityLink = "https://atc.bmwgroup.net/confluence/display/CDRVC/Reliability+Measurement#ReliabilityMeasurement-RemoteSoftwareUpgrade(RSU)"
|
||||
|
||||
reliabilityMetricSelector = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"UpdateRequestResource - rsu - prod~",
|
||||
~"UpdateManifestResource - rsu - prod~",
|
||||
~"SendReportResource - rsu - prod~",
|
||||
~"MessageEndpointProxy - rsu - prod~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"askForUpdate~",
|
||||
~"askForUpdateManifest~",
|
||||
~"sendReport~",
|
||||
~"Queue: BMW.RSU.ZFUS_MPG_OUTPUT~",
|
||||
~"Queue: BMW.RSU.RN.RNB_TO_RSA~",
|
||||
~"Queue: BMW.RSU.DEC_VEHICLE_REQUEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSA.VEHICLE_MESSAGES~",
|
||||
~"Queue: BMW.RSU.UPDATEMANIFEST.ZFUS_TO_RSA~",
|
||||
~"Queue: BMW.RSU.ENC_UPDATEMANIFEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSU.VEHICLE_TRIGGER~",
|
||||
~"Queue: BMW.RSU.RSA_PIPELINE~"
|
||||
)"))))):splitBy():avg:auto:sort(value(avg,ascending)):limit(11))
|
||||
EOT
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_PROD.id = 357121b1-20ff-42b7-981a-c82f333aefd2
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_PROD"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_E2E.id = 3a2aff5a-6c8b-4776-902a-985fd78b777b
|
||||
data "dynatrace_management_zone" "CD_rsu_E2E"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_E2E" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb PROD"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu E2E"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -82,8 +82,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_PROD.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_E2E.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -180,7 +180,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -225,7 +225,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -285,10 +285,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_E2E.id = 3a2aff5a-6c8b-4776-902a-985fd78b777b
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_E2E" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_E2E.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_TEST.id = fdebc0cc-912f-4af8-9871-e9076d0265c9
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_TEST"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_PROD.id = 6a719e58-5760-40f3-ab56-364ce0d4b37f
|
||||
data "dynatrace_management_zone" "CD_rsu_PROD"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_PROD" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu PROD"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -82,8 +82,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_PROD.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -180,7 +180,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -225,7 +225,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -285,10 +285,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_PROD.id = 6a719e58-5760-40f3-ab56-364ce0d4b37f
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_PROD" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_PROD.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_rsu.id = -7774508837329205967
|
||||
resource "dynatrace_management_zone" "CD_rsu" {
|
||||
name = "CD_rsu"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"Namespace:rsu\"))"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
# DEFINE dynatrace_management_zone.CD_tol-tssb.id = -3606919109579921371
|
||||
resource "dynatrace_management_zone" "CD_tol-tssb" {
|
||||
name = "CD_tol-tssb"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "HOST_TAGS"
|
||||
}
|
||||
tag {
|
||||
# negate = false
|
||||
operator = "EQUALS"
|
||||
value {
|
||||
context = "CONTEXTLESS"
|
||||
key = "Component"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_TEST.id = b58f4316-9d1e-4552-b74a-f53a7e1131b2
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_TEST"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_INT.id = dfb33c69-6663-44df-a822-1f2b5ceb0f11
|
||||
data "dynatrace_management_zone" "CD_rsu_INT"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_INT" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu INT"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -88,8 +88,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_INT.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -195,7 +195,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -279,7 +279,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -312,10 +312,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:TEST" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_INT.id = dfb33c69-6663-44df-a822-1f2b5ceb0f11
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_INT" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_INT.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,333 @@
|
|||
# DEFINE dynatrace_dashboard.CD_rsu_TEST.id = ec1cb3db-f7ad-47d7-930c-2accc694f4fe
|
||||
data "dynatrace_management_zone" "CD_rsu_TEST"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_TEST" {
|
||||
dashboard_metadata {
|
||||
name = "CD_rsu TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_TEST.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_TEST.id = ec1cb3db-f7ad-47d7-930c-2accc694f4fe
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_TEST" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_TEST.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,357 +0,0 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_INT.id = 00fd7636-1c6b-423f-8e21-677642ac3be6
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_INT"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb INT"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "CD_tol-tssb" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:INT" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:INT" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:INT" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:INT" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:INT" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,357 +0,0 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_TEST.id = cb7cb5d4-772a-4ad3-8eed-cf56efc832da
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_TEST"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_TEST" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "CD_tol-tssb" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_TEST.id
|
||||
}
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_rsu.id = -57539406124188920
|
||||
resource "dynatrace_management_zone" "CD_rsu" {
|
||||
name = "CD_rsu"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"Namespace:rsu\"))"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
# DEFINE dynatrace_management_zone.CD_tol-tssb.id = -2479801801971642988
|
||||
resource "dynatrace_management_zone" "CD_tol-tssb" {
|
||||
name = "CD_tol-tssb"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "HOST_TAGS"
|
||||
}
|
||||
tag {
|
||||
# negate = false
|
||||
operator = "EQUALS"
|
||||
value {
|
||||
context = "CONTEXTLESS"
|
||||
key = "Component"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# ID 6fe8b057-0b79-4ef5-abd0-437116465680
|
||||
module CD_rsu_vdm_standard_E2E {
|
||||
|
||||
source = "../../_custom_modules/vdm_standard_dashboard"
|
||||
|
||||
dashboardName = "CD_RSU - EMEA E2E - VDM Standard Dashboard"
|
||||
tag = "rsu"
|
||||
environment = "E2E"
|
||||
managementZoneName = "CD_rsu"
|
||||
sloName = "VDM - RSU - EMEA E2E"
|
||||
appId = "APP-16772"
|
||||
reliabilityLink = "https://atc.bmwgroup.net/confluence/display/CDRVC/Reliability+Measurement#ReliabilityMeasurement-RemoteSoftwareUpgrade(RSU)"
|
||||
|
||||
reliabilityMetricSelector = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"UpdateRequestResource - rsu - e2e~",
|
||||
~"UpdateManifestResource - rsu - e2e~",
|
||||
~"SendReportResource - rsu - e2e~",
|
||||
~"MessageEndpointProxy - rsu - e2e~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"askForUpdate~",
|
||||
~"askForUpdateManifest~",
|
||||
~"sendReport~",
|
||||
~"Queue: BMW.RSU.ZFUS_MPG_OUTPUT~",
|
||||
~"Queue: BMW.RSU.RN.RNB_TO_RSA~",
|
||||
~"Queue: BMW.RSU.DEC_VEHICLE_REQUEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSA.VEHICLE_MESSAGES~",
|
||||
~"Queue: BMW.RSU.UPDATEMANIFEST.ZFUS_TO_RSA~",
|
||||
~"Queue: BMW.RSU.ENC_UPDATEMANIFEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSU.VEHICLE_TRIGGER~",
|
||||
~"Queue: BMW.RSU.RSA_PIPELINE~"
|
||||
)"))))):splitBy():avg:auto:sort(value(avg,ascending)):limit(11))
|
||||
EOT
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# ID 210f0dfd-62c1-4f37-bdda-44053e354561
|
||||
module CD_rsu_vdm_standard_PROD {
|
||||
|
||||
source = "../../_custom_modules/vdm_standard_dashboard"
|
||||
|
||||
dashboardName = "CD_RSU - EMEA PROD - VDM Standard Dashboard"
|
||||
tag = "rsu"
|
||||
environment = "PROD"
|
||||
managementZoneName = "CD_rsu"
|
||||
sloName = "VDM - RSU - EMEA PROD"
|
||||
appId = "APP-16772"
|
||||
reliabilityLink = "https://atc.bmwgroup.net/confluence/display/CDRVC/Reliability+Measurement#ReliabilityMeasurement-RemoteSoftwareUpgrade(RSU)"
|
||||
|
||||
reliabilityMetricSelector = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"UpdateRequestResource - rsu - prod~",
|
||||
~"UpdateManifestResource - rsu - prod~",
|
||||
~"SendReportResource - rsu - prod~",
|
||||
~"MessageEndpointProxy - rsu - prod~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"askForUpdate~",
|
||||
~"askForUpdateManifest~",
|
||||
~"sendReport~",
|
||||
~"Queue: BMW.RSU.ZFUS_MPG_OUTPUT~",
|
||||
~"Queue: BMW.RSU.RN.RNB_TO_RSA~",
|
||||
~"Queue: BMW.RSU.DEC_VEHICLE_REQUEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSA.VEHICLE_MESSAGES~",
|
||||
~"Queue: BMW.RSU.UPDATEMANIFEST.ZFUS_TO_RSA~",
|
||||
~"Queue: BMW.RSU.ENC_UPDATEMANIFEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSU.VEHICLE_TRIGGER~",
|
||||
~"Queue: BMW.RSU.RSA_PIPELINE~"
|
||||
)"))))):splitBy():avg:auto:sort(value(avg,ascending)):limit(11))
|
||||
EOT
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_INT.id = 2742371a-b24a-4ea9-ade3-2296c9265d70
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_INT"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_E2E.id = a9a521ef-580c-410b-a55e-988f1d52d77d
|
||||
data "dynatrace_management_zone" "CD_rsu_E2E"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_E2E" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb INT"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu E2E"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -88,8 +88,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_INT.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_E2E.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -195,7 +195,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -279,7 +279,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -312,10 +312,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_INT" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:INT" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_E2E.id = a9a521ef-580c-410b-a55e-988f1d52d77d
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_E2E" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_E2E.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,333 @@
|
|||
# DEFINE dynatrace_dashboard.CD_rsu_PROD.id = 4cca4bc1-2ad0-421c-87c4-a02d4261917b
|
||||
data "dynatrace_management_zone" "CD_rsu_PROD"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_PROD" {
|
||||
dashboard_metadata {
|
||||
name = "CD_rsu PROD"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_PROD.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_PROD.id = 4cca4bc1-2ad0-421c-87c4-a02d4261917b
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_PROD" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_PROD.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_rsu.id = -5249314341918312822
|
||||
resource "dynatrace_management_zone" "CD_rsu" {
|
||||
name = "CD_rsu"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"Namespace:rsu\"))"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
# DEFINE dynatrace_management_zone.CD_tol-tssb.id = -7512073509502205738
|
||||
resource "dynatrace_management_zone" "CD_tol-tssb" {
|
||||
name = "CD_tol-tssb"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "HOST_TAGS"
|
||||
}
|
||||
tag {
|
||||
# negate = false
|
||||
operator = "EQUALS"
|
||||
value {
|
||||
context = "CONTEXTLESS"
|
||||
key = "Component"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_E2E.id = a83a2c5f-012b-44d8-b5d4-201a4271868e
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_E2E"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_INT.id = 869441a3-9e86-4793-b3a1-3042e8a37ae1
|
||||
data "dynatrace_management_zone" "CD_rsu_INT"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_INT" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb E2E"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu INT"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -88,8 +88,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_E2E.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_INT.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -195,7 +195,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -279,7 +279,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -312,10 +312,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
values = [ "Environment:INT", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_INT.id = 869441a3-9e86-4793-b3a1-3042e8a37ae1
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_INT" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_INT.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,333 @@
|
|||
# DEFINE dynatrace_dashboard.CD_rsu_TEST.id = bd319fc8-f5ac-4d44-98d4-e8cda1062b2d
|
||||
data "dynatrace_management_zone" "CD_rsu_TEST"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_TEST" {
|
||||
dashboard_metadata {
|
||||
name = "CD_rsu TEST"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_TEST.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:rsu", "Environment:TEST" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_TEST.id = bd319fc8-f5ac-4d44-98d4-e8cda1062b2d
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_TEST" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_TEST.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_rsu.id = -2830724422862041674
|
||||
resource "dynatrace_management_zone" "CD_rsu" {
|
||||
name = "CD_rsu"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"Namespace:rsu\"))"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
# DEFINE dynatrace_management_zone.CD_tol-tssb.id = 7963368354883748043
|
||||
resource "dynatrace_management_zone" "CD_tol-tssb" {
|
||||
name = "CD_tol-tssb"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "HOST_TAGS"
|
||||
}
|
||||
tag {
|
||||
# negate = false
|
||||
operator = "EQUALS"
|
||||
value {
|
||||
context = "CONTEXTLESS"
|
||||
key = "Component"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# ID 7fbaaf61-7309-4576-81fc-9ecc06a3e927
|
||||
module CD_rsu_vdm_standard_E2E {
|
||||
|
||||
source = "../../_custom_modules/vdm_standard_dashboard"
|
||||
|
||||
dashboardName = "CD_RSU - US E2E - VDM Standard Dashboard"
|
||||
tag = "rsu"
|
||||
environment = "E2E"
|
||||
managementZoneName = "CD_rsu"
|
||||
sloName = "VDM - RSU - US E2E"
|
||||
appId = "APP-16772"
|
||||
reliabilityLink = "https://atc.bmwgroup.net/confluence/display/CDRVC/Reliability+Measurement#ReliabilityMeasurement-RemoteSoftwareUpgrade(RSU)"
|
||||
|
||||
reliabilityMetricSelector = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"UpdateRequestResource - rsu - e2e~",
|
||||
~"UpdateManifestResource - rsu - e2e~",
|
||||
~"SendReportResource - rsu - e2e~",
|
||||
~"MessageEndpointProxy - rsu - e2e~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"askForUpdate~",
|
||||
~"askForUpdateManifest~",
|
||||
~"sendReport~",
|
||||
~"Queue: BMW.RSU.ZFUS_MPG_OUTPUT~",
|
||||
~"Queue: BMW.RSU.RN.RNB_TO_RSA~",
|
||||
~"Queue: BMW.RSU.DEC_VEHICLE_REQUEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSA.VEHICLE_MESSAGES~",
|
||||
~"Queue: BMW.RSU.UPDATEMANIFEST.ZFUS_TO_RSA~",
|
||||
~"Queue: BMW.RSU.ENC_UPDATEMANIFEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSU.VEHICLE_TRIGGER~",
|
||||
~"Queue: BMW.RSU.RSA_PIPELINE~"
|
||||
)"))))):splitBy():avg:auto:sort(value(avg,ascending)):limit(11))
|
||||
EOT
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
# ID 14e1d1d2-95dc-4bd4-9976-e58effd5d1ab
|
||||
module CD_rsu_vdm_standard_PROD {
|
||||
|
||||
source = "../../_custom_modules/vdm_standard_dashboard"
|
||||
|
||||
dashboardName = "CD_RSU - US PROD - VDM Standard Dashboard"
|
||||
tag = "rsu"
|
||||
environment = "PROD"
|
||||
managementZoneName = "CD_rsu"
|
||||
sloName = "VDM - RSU - US PROD"
|
||||
appId = "APP-16772"
|
||||
reliabilityLink = "https://atc.bmwgroup.net/confluence/display/CDRVC/Reliability+Measurement#ReliabilityMeasurement-RemoteSoftwareUpgrade(RSU)"
|
||||
|
||||
reliabilityMetricSelector = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"UpdateRequestResource - rsu - prod~",
|
||||
~"UpdateManifestResource - rsu - prod~",
|
||||
~"SendReportResource - rsu - prod~",
|
||||
~"MessageEndpointProxy - rsu - prod~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"askForUpdate~",
|
||||
~"askForUpdateManifest~",
|
||||
~"sendReport~",
|
||||
~"Queue: BMW.RSU.ZFUS_MPG_OUTPUT~",
|
||||
~"Queue: BMW.RSU.RN.RNB_TO_RSA~",
|
||||
~"Queue: BMW.RSU.DEC_VEHICLE_REQUEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSA.VEHICLE_MESSAGES~",
|
||||
~"Queue: BMW.RSU.UPDATEMANIFEST.ZFUS_TO_RSA~",
|
||||
~"Queue: BMW.RSU.ENC_UPDATEMANIFEST.ASBC_TO_RSA~",
|
||||
~"Queue: BMW.RSU.VEHICLE_TRIGGER~",
|
||||
~"Queue: BMW.RSU.RSA_PIPELINE~"
|
||||
)"))))):splitBy():avg:auto:sort(value(avg,ascending)):limit(11))
|
||||
EOT
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_PROD.id = 34352b16-e75f-4ba0-94fd-1274a5227904
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_PROD"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
||||
# DEFINE dynatrace_dashboard.CD_rsu_E2E.id = cb05930e-d192-4014-85c9-08fbee2deb18
|
||||
data "dynatrace_management_zone" "CD_rsu_E2E"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_E2E" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb PROD"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
name = "CD_rsu E2E"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -88,8 +88,8 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_PROD.id
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_E2E.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -195,7 +195,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -279,7 +279,7 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -312,10 +312,22 @@ resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
|||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
values = [ "Environment:E2E", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_E2E.id = cb05930e-d192-4014-85c9-08fbee2deb18
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_E2E" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_E2E.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,333 @@
|
|||
# DEFINE dynatrace_dashboard.CD_rsu_PROD.id = e8625bd3-71e5-405f-b122-dc5752e1f6a0
|
||||
data "dynatrace_management_zone" "CD_rsu_PROD"{ name="CD_rsu" }
|
||||
resource "dynatrace_dashboard" "CD_rsu_PROD" {
|
||||
dashboard_metadata {
|
||||
name = "CD_rsu PROD"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
# preset = false
|
||||
shared = true
|
||||
tags = [ "rsu" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_rsu"
|
||||
id = data.dynatrace_management_zone.CD_rsu_PROD.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:PROD", "Component:rsu" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_dashboard_sharing.CD_rsu_PROD.id = e8625bd3-71e5-405f-b122-dc5752e1f6a0
|
||||
resource "dynatrace_dashboard_sharing" "CD_rsu_PROD" {
|
||||
enabled = true
|
||||
dashboard_id = dynatrace_dashboard.CD_rsu_PROD.id
|
||||
# preset = false
|
||||
permissions {
|
||||
permission {
|
||||
type = "ALL"
|
||||
level = "VIEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,321 +0,0 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_E2E.id = 43b738f8-a9ad-4116-a35f-98432b9ad36b
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_E2E"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_E2E" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb E2E"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_E2E.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Environment:E2E", "Component:tol-tssb" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,321 +0,0 @@
|
|||
# DEFINE dynatrace_dashboard.CD_tol-tssb_PROD.id = ac060af1-76dd-4e9e-8f34-2c2b3e158955
|
||||
data "dynatrace_management_zone" "CD_tol-tssb_PROD"{ name="CD_tol-tssb" }
|
||||
resource "dynatrace_dashboard" "CD_tol-tssb_PROD" {
|
||||
dashboard_metadata {
|
||||
name = "CD_tol-tssb PROD"
|
||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
||||
preset = true
|
||||
shared = true
|
||||
tags = [ "tol-tssb" ]
|
||||
filter {
|
||||
timeframe = "-24h to now"
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 228
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#ff0000"
|
||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956393463
|
||||
}
|
||||
config {
|
||||
custom_color = "#fff29a"
|
||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1617956441725
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fourxx.rate"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.fivexx.rate"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Problems"
|
||||
configured = true
|
||||
tile_type = "OPEN_PROBLEMS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 950
|
||||
top = 38
|
||||
width = 152
|
||||
}
|
||||
filter {
|
||||
management_zone {
|
||||
name = "CD_tol-tssb"
|
||||
id = data.dynatrace_management_zone.CD_tol-tssb_PROD.id
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Overall Health"
|
||||
configured = true
|
||||
tile_type = "HEADER"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 0
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 532
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Custom chart"
|
||||
configured = true
|
||||
tile_type = "CUSTOM_CHARTING"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 304
|
||||
left = 38
|
||||
top = 570
|
||||
width = 1064
|
||||
}
|
||||
filter_config {
|
||||
type = "MIXED"
|
||||
custom_name = "Response time, Request Count and Number of Errors"
|
||||
default_name = "Custom chart"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
result_metadata {
|
||||
config {
|
||||
custom_color = "#008cdb"
|
||||
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275720776
|
||||
}
|
||||
config {
|
||||
custom_color = "#b4e5f9"
|
||||
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||
last_modified = 1595275686773
|
||||
}
|
||||
config {
|
||||
custom_color = "#ef651f"
|
||||
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||
last_modified = 1595275955999
|
||||
}
|
||||
}
|
||||
series {
|
||||
type = "LINE"
|
||||
aggregation = "AVG"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.response.time"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.requestCount.total"
|
||||
# sort_ascending = false
|
||||
# sort_column = false
|
||||
}
|
||||
series {
|
||||
type = "BAR"
|
||||
aggregation = "NONE"
|
||||
aggregation_rate = "TOTAL"
|
||||
entity_type = "SERVICE"
|
||||
metric = "builtin:service.errors.total.count"
|
||||
# sort_ascending = false
|
||||
sort_column = true
|
||||
}
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = "Markdown"
|
||||
configured = true
|
||||
markdown =<<-EOT
|
||||
---
|
||||
|
||||
EOT
|
||||
tile_type = "MARKDOWN"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 38
|
||||
left = 38
|
||||
top = 190
|
||||
width = 1064
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "DATABASES_OVERVIEW"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 646
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "DATABASE"
|
||||
custom_name = "Databases"
|
||||
default_name = "Databases"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "DATABASE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "SERVICES"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 342
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "SERVICE"
|
||||
custom_name = "Services"
|
||||
default_name = "Services"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "SERVICE"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tile {
|
||||
name = ""
|
||||
chart_visible = true
|
||||
configured = true
|
||||
tile_type = "HOSTS"
|
||||
unknowns = jsonencode({
|
||||
"isAutoRefreshDisabled": false
|
||||
})
|
||||
bounds {
|
||||
height = 152
|
||||
left = 38
|
||||
top = 38
|
||||
width = 190
|
||||
}
|
||||
filter_config {
|
||||
type = "HOST"
|
||||
custom_name = "Hosts"
|
||||
default_name = "Hosts"
|
||||
chart_config {
|
||||
type = "TIMESERIES"
|
||||
legend = true
|
||||
}
|
||||
filters {
|
||||
filter {
|
||||
entity_type = "HOST"
|
||||
match {
|
||||
key = "AUTO_TAGS"
|
||||
values = [ "Component:tol-tssb", "Environment:PROD" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_rsu.id = 8679577042813657764
|
||||
resource "dynatrace_management_zone" "CD_rsu" {
|
||||
name = "CD_rsu"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"Namespace:rsu\")"
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"Namespace:rsu\"))"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
# DEFINE dynatrace_management_zone.CD_tol-tssb.id = -5505687220442320658
|
||||
resource "dynatrace_management_zone" "CD_tol-tssb" {
|
||||
name = "CD_tol-tssb"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "HOST_TAGS"
|
||||
}
|
||||
tag {
|
||||
# negate = false
|
||||
operator = "EQUALS"
|
||||
value {
|
||||
context = "CONTEXTLESS"
|
||||
key = "Component"
|
||||
value = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 = "tol-tssb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue