Merge pull request #271 in OPAPM/coco_apm_terraform_onboarding from CD_dpp to master

* commit '25c7134ad63e422ffed7c4e771fead21bd8b300a':
  "Migrating from Monaco to Terraform for management zone: CD_dpp"
  "Migrating from Monaco to Terraform for management zone: CD_dpp"
  "Migrating from Monaco to Terraform for management zone: CD_dpp"
  "Migrating from Monaco to Terraform for management zone: CD_dpp"
  "Migrating from Monaco to Terraform for management zone: CD_dpp"
  "Migrating from Monaco to Terraform for management zone: CD_dpp"
CD_TS-CMS
PATRYK GUDALEWICZ (ext.) 2023-03-01 19:35:25 +00:00
commit 40a0360cb6
25 changed files with 5005 additions and 0 deletions

View File

@ -0,0 +1,38 @@
# DEFINE dynatrace_alerting.CD_dpp_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ2YzRlODRkMi04NDBhLTNkNTEtYjUyZS1hMDk1ZjgyODY4Nji-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_INT"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_INT" {
name = "CD_dpp INT"
management_zone = data.dynatrace_management_zone.CD_dpp_INT.id
rules {
rule {
delay_in_minutes = 0
include_mode = "INCLUDE_ALL"
severity_level = "AVAILABILITY"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "CUSTOM_ALERT"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "ERRORS"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "PERFORMANCE"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "RESOURCE_CONTENTION"
tags = [ "Environment:INT" ]
}
}
}

View File

@ -0,0 +1,330 @@
# DEFINE dynatrace_dashboard.CD_dpp_INT.id = 7d4f9c3d-5ea7-4980-ad5f-d3fc7f49cf91
data "dynatrace_management_zone" "CD_dpp_INT"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_dpp_INT" {
dashboard_metadata {
name = "CD_dpp INT"
owner = "Ignacio.Goldman@partner.bmwgroup.com"
preset = true
shared = true
tags = [ "CD_dpp" ]
filter {
timeframe = "-24h to now"
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 228
width = 1064
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 152
left = 950
top = 38
width = 152
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_INT.id
}
}
}
tile {
name = "Overall Health"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 38
top = 0
width = 1064
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_INT.id
}
}
}
tile {
name = "Markdown"
configured = true
markdown =<<-EOT
---
EOT
tile_type = "MARKDOWN"
bounds {
height = 38
left = 38
top = 532
width = 1064
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 570
width = 1064
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 38
left = 38
top = 190
width = 1064
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
bounds {
height = 152
left = 646
top = 38
width = 190
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 152
left = 342
top = 38
width = 190
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 152
left = 38
top = 38
width = 190
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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" ]
}
}
}
}
}
}

View File

@ -0,0 +1,330 @@
# DEFINE dynatrace_dashboard.CD_dpp_TEST.id = 8500c63e-0b55-47db-9d15-8f35f62acf90
data "dynatrace_management_zone" "CD_dpp_TEST"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_dpp_TEST" {
dashboard_metadata {
name = "CD_dpp TEST"
owner = "Ignacio.Goldman@partner.bmwgroup.com"
preset = true
shared = true
tags = [ "CD_dpp" ]
filter {
timeframe = "-24h to now"
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 228
width = 1064
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 152
left = 950
top = 38
width = 152
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_TEST.id
}
}
}
tile {
name = "Overall Health"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 38
top = 0
width = 1064
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_TEST.id
}
}
}
tile {
name = "Markdown"
configured = true
markdown =<<-EOT
---
EOT
tile_type = "MARKDOWN"
bounds {
height = 38
left = 38
top = 532
width = 1064
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 570
width = 1064
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 38
left = 38
top = 190
width = 1064
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
bounds {
height = 152
left = 646
top = 38
width = 190
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 152
left = 342
top = 38
width = 190
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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"
bounds {
height = 152
left = 38
top = 38
width = 190
}
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_dpp_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" ]
}
}
}
}
}
}

View File

@ -0,0 +1,20 @@
# DEFINE dynatrace_management_zone.CD_dpp.id = -486409711555004775
resource "dynatrace_management_zone" "CD_dpp" {
name = "CD_dpp"
entity_selector_based_rule {
enabled = true
selector = "type(HOST),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:DPP\"))"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP\")"
}
}

View File

@ -0,0 +1,38 @@
# DEFINE dynatrace_alerting.CD_dpp_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRkY2ZmYmE2MC0zNmNiLTM2M2UtYTRiNi00MmEwM2VjZGQxMzi-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_PROD"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_PROD" {
name = "CD_dpp PROD"
management_zone = data.dynatrace_management_zone.CD_dpp_PROD.id
rules {
rule {
delay_in_minutes = 0
include_mode = "INCLUDE_ALL"
severity_level = "AVAILABILITY"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "CUSTOM_ALERT"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "ERRORS"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "PERFORMANCE"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "RESOURCE_CONTENTION"
tags = [ "Environment:PROD" ]
}
}
}

View File

@ -0,0 +1,21 @@
# DEFINE dynatrace_alerting.CD_dpp_Unexpected_low_traffic_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ5MzM0N2QwMy03M2Q2LTMyMmEtOGJjNS03ZTNkNzYxZjNhMGG-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_Unexpected_low_traffic_PROD"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_Unexpected_low_traffic_PROD" {
name = "CD_dpp Unexpected low traffic PROD"
management_zone = data.dynatrace_management_zone.CD_dpp_Unexpected_low_traffic_PROD.id
filters {
filter {
predefined {
type = "SERVICE_UNEXPECTED_LOW_LOAD"
# negate = false
}
}
}
rules {
rule {
delay_in_minutes = 0
include_mode = "NONE"
severity_level = "AVAILABILITY"
}
}
}

View File

@ -0,0 +1,376 @@
# DEFINE dynatrace_dashboard.CD_DPP_E2E.id = c57d0e06-50fd-475c-82c9-87726ac6b59c
data "dynatrace_management_zone" "CD_DPP_E2E"{ name="CD_discover-bmw-composite-service" }
resource "dynatrace_dashboard" "CD_DPP_E2E" {
dashboard_metadata {
name = "CD_DPP_E2E"
owner = "daniel.leopold@partner.bmw.de"
preset = true
shared = true
tags = [ "CDDPP", "DPP", "CD_DPP", "CD_dpp", "SEC.DPP" ]
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 342
width = 304
}
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 = "#ef651f"
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
last_modified = 1595276148986
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fourxx.rate"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fivexx.rate"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
bounds {
height = 152
left = 950
top = 342
width = 152
}
}
tile {
name = "Markdown"
configured = true
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
tile_type = "MARKDOWN"
bounds {
height = 304
left = 1254
top = 38
width = 152
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 38
top = 950
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Garbage collection suspension time"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "PROCESS_GROUP_INSTANCE"
metric = "builtin:tech.jvm.memory.gc.suspensionTime"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.process_group_instance"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "PROCESS_GROUP_INSTANCE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 38
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Response time, Throughput 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 = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.total.count"
# sort_ascending = false
# sort_column = false
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "SERVICES"
bounds {
height = 304
left = 342
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "DPP" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
bounds {
height = 304
left = 646
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "dpp" ]
}
}
}
}
}
tile {
name = "Data explorer results"
configured = true
custom_name = "Data explorer results"
tile_type = "DATA_EXPLORER"
unknowns = jsonencode({
"metricExpressions": [
"resolution=null\u0026(builtin:tech.jvm.memory.gc.suspensionTime:filter(and(or(in(\"dt.entity.process_group_instance\",entitySelector(\"type(process_group_instance),tag(~\"Environment:E2E~\")\"))))):splitBy(\"dt.entity.process_group_instance\"):avg:auto:sort(value(avg,descending)):limit(20)):limit(100):names"
],
"queries": [
{
"enabled": true,
"filterBy": {
"criteria": [],
"filterOperator": "AND",
"nestedFilters": [
{
"criteria": [
{
"evaluator": "IN",
"value": "Environment:E2E"
}
],
"filter": "dt.entity.process_group_instance",
"filterOperator": "OR",
"filterType": "TAG",
"nestedFilters": []
}
]
},
"id": "A",
"limit": 20,
"metric": "builtin:tech.jvm.memory.gc.suspensionTime",
"rate": "NONE",
"spaceAggregation": "AVG",
"splitBy": [
"dt.entity.process_group_instance"
],
"timeAggregation": "DEFAULT"
}
],
"visualConfig": {
"axes": {
"xAxis": {
"visible": true
},
"yAxes": []
},
"global": {},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT",
"seriesType": "LINE"
},
"seriesOverrides": []
}
],
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540",
"value": 0
},
{
"color": "#f5d30f",
"value": 2
},
{
"color": "#dc172a",
"value": 30
}
],
"visible": true
}
],
"type": "GRAPH_CHART"
}
})
bounds {
height = 304
left = 38
top = 646
width = 1216
}
}
}

View File

@ -0,0 +1,412 @@
# DEFINE dynatrace_dashboard.CD_DPP_PROD.id = bc157a4e-67e1-42c2-b9b7-7ca18e74bab0
data "dynatrace_management_zone" "CD_DPP_PROD"{ name="CD_discover-bmw-composite-service" }
resource "dynatrace_dashboard" "CD_DPP_PROD" {
dashboard_metadata {
name = "CD_DPP_PROD"
owner = "daniel.leopold@partner.bmw.de"
# preset = false
shared = true
tags = [ "CDDPP", "DPP", "CD_dpp", "CD_DPP", "SEC.DPP" ]
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 342
width = 304
}
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 = "#ef651f"
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
last_modified = 1595276148986
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fourxx.rate"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fivexx.rate"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
}
}
}
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
bounds {
height = 152
left = 950
top = 342
width = 152
}
}
tile {
name = "Markdown"
configured = true
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
tile_type = "MARKDOWN"
bounds {
height = 304
left = 1254
top = 342
width = 152
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 38
top = 950
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Garbage collection suspension time"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "PROCESS_GROUP_INSTANCE"
metric = "builtin:tech.jvm.memory.gc.suspensionTime"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.process_group_instance"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "PROCESS_GROUP_INSTANCE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 38
top = 38
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Response time, Throughput 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
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.requestCount.total"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.total.count"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
match {
key = "SERVICE_SOFTWARE_TECH"
values = [ "JAVA" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "SERVICES"
bounds {
height = 304
left = 342
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "DPP" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
bounds {
height = 304
left = 646
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "dpp" ]
}
}
}
}
}
tile {
name = "Data explorer results"
configured = true
custom_name = "Data explorer results"
tile_type = "DATA_EXPLORER"
unknowns = jsonencode({
"metricExpressions": [
"resolution=null\u0026(builtin:tech.jvm.memory.gc.suspensionTime:filter(and(or(in(\"dt.entity.process_group_instance\",entitySelector(\"type(process_group_instance),tag(~\"Environment:PROD~\")\"))))):splitBy(\"dt.entity.process_group_instance\"):avg:auto:sort(value(avg,descending)):limit(20)):limit(100):names"
],
"queries": [
{
"enabled": true,
"filterBy": {
"criteria": [],
"filterOperator": "AND",
"nestedFilters": [
{
"criteria": [
{
"evaluator": "IN",
"value": "Environment:PROD"
}
],
"filter": "dt.entity.process_group_instance",
"filterOperator": "OR",
"filterType": "TAG",
"nestedFilters": []
}
]
},
"id": "A",
"limit": 20,
"metric": "builtin:tech.jvm.memory.gc.suspensionTime",
"rate": "NONE",
"spaceAggregation": "AVG",
"splitBy": [
"dt.entity.process_group_instance"
],
"timeAggregation": "DEFAULT"
}
],
"visualConfig": {
"axes": {
"xAxis": {
"visible": true
},
"yAxes": []
},
"global": {},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT",
"seriesType": "LINE"
},
"seriesOverrides": []
}
],
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540",
"value": 0
},
{
"color": "#f5d30f",
"value": 2
},
{
"color": "#dc172a",
"value": 30
}
],
"visible": true
}
],
"type": "GRAPH_CHART"
}
})
bounds {
height = 304
left = 38
top = 646
width = 1216
}
}
}
# DEFINE dynatrace_dashboard_sharing.CD_DPP_PROD.id = bc157a4e-67e1-42c2-b9b7-7ca18e74bab0
resource "dynatrace_dashboard_sharing" "CD_DPP_PROD" {
enabled = true
dashboard_id = dynatrace_dashboard.CD_DPP_PROD.id
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
permission {
type = "USER"
id = "simon.jonischkeit@partner.bmw.de"
level = "EDIT"
}
permission {
type = "GROUP"
id = "dynatracede-8teamdppdpm"
level = "EDIT"
}
}
}

View File

@ -0,0 +1,24 @@
# DEFINE dynatrace_management_zone.CD_dpp.id = -6234622144415277186
resource "dynatrace_management_zone" "CD_dpp" {
name = "CD_dpp"
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),tag(\"compass-id:DPP-TRN\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(HOST),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:DPP\"))"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:DPP\")"
}
}

View File

@ -0,0 +1,360 @@
# DEFINE dynatrace_dashboard.CD_dpp_INT.id = cc4ef003-3bc7-4d17-971e-8d5480af541e
data "dynatrace_management_zone" "CD_dpp_INT"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_dpp_INT" {
dashboard_metadata {
name = "CD_dpp INT"
owner = "Ignacio.Goldman@partner.bmwgroup.com"
preset = true
shared = true
tags = [ "CD_dpp" ]
unknowns = jsonencode({
"popularity": 1
})
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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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" ]
}
}
}
}
}
}

View File

@ -0,0 +1,357 @@
# DEFINE dynatrace_dashboard.CD_dpp_TEST.id = 3edc7da1-996f-4bfc-8de0-de23b6dd932b
data "dynatrace_management_zone" "CD_dpp_TEST"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_dpp_TEST" {
dashboard_metadata {
name = "CD_dpp TEST"
owner = "Ignacio.Goldman@partner.bmwgroup.com"
preset = true
shared = true
tags = [ "CD_dpp" ]
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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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" ]
}
}
}
}
}
}

View File

@ -0,0 +1,20 @@
# DEFINE dynatrace_management_zone.CD_dpp.id = 3258257559085186750
resource "dynatrace_management_zone" "CD_dpp" {
name = "CD_dpp"
entity_selector_based_rule {
enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:DPP\"))"
}
entity_selector_based_rule {
enabled = true
selector = "type(HOST),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP\")"
}
}

View File

@ -0,0 +1,38 @@
# DEFINE dynatrace_alerting.CD_dpp_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRiNDRjYWYyZS0wYTFkLTM1NTAtODAyNS1iMjdkNzcxZGE4MGO-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_PROD"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_PROD" {
name = "CD_dpp PROD"
management_zone = data.dynatrace_management_zone.CD_dpp_PROD.id
rules {
rule {
delay_in_minutes = 0
include_mode = "INCLUDE_ALL"
severity_level = "AVAILABILITY"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "CUSTOM_ALERT"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "ERRORS"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "PERFORMANCE"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "RESOURCE_CONTENTION"
tags = [ "Environment:PROD" ]
}
}
}

View File

@ -0,0 +1,426 @@
# DEFINE dynatrace_dashboard.CD_DPP_E2E.id = 9e4a2212-19fa-43cf-bc0f-71389f8f109d
data "dynatrace_management_zone" "CD_DPP_E2E"{ name="CD_dpm" }
resource "dynatrace_dashboard" "CD_DPP_E2E" {
dashboard_metadata {
name = "CD_DPP_E2E"
owner = "daniel.leopold@partner.bmw.de"
# preset = false
shared = true
tags = [ "CDDPP", "DPP", "CD_DPP", "CD_dpp", "SEC.DPP" ]
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 342
width = 304
}
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 = "#ef651f"
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
last_modified = 1595276148986
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fourxx.rate"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fivexx.rate"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 152
left = 950
top = 342
width = 152
}
}
tile {
name = "Markdown"
configured = true
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
tile_type = "MARKDOWN"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 1254
top = 38
width = 152
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 266
left = 38
top = 950
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Garbage collection suspension time"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "PROCESS_GROUP_INSTANCE"
metric = "builtin:tech.jvm.memory.gc.suspensionTime"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.process_group_instance"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "PROCESS_GROUP_INSTANCE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 38
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Response time, Throughput 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 = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
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" ]
}
match {
key = "SERVICE_SOFTWARE_TECH"
values = [ "JAVA" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "SERVICES"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 342
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "DPP" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 646
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "dpp" ]
}
}
}
}
}
tile {
name = "Data explorer results"
configured = true
custom_name = "Data explorer results"
tile_type = "DATA_EXPLORER"
unknowns = jsonencode({
"isAutoRefreshDisabled": false,
"metricExpressions": [
"resolution=null\u0026(builtin:tech.jvm.memory.gc.suspensionTime:filter(and(or(in(\"dt.entity.process_group_instance\",entitySelector(\"type(process_group_instance),tag(~\"Environment:E2E~\")\"))))):splitBy(\"dt.entity.process_group_instance\"):avg:auto:sort(value(avg,descending)):limit(20)):limit(100):names"
],
"queries": [
{
"enabled": true,
"filterBy": {
"criteria": [],
"filterOperator": "AND",
"nestedFilters": [
{
"criteria": [
{
"evaluator": "IN",
"value": "Environment:E2E"
}
],
"filter": "dt.entity.process_group_instance",
"filterOperator": "OR",
"filterType": "TAG",
"nestedFilters": []
}
]
},
"id": "A",
"limit": 20,
"metric": "builtin:tech.jvm.memory.gc.suspensionTime",
"rate": "NONE",
"spaceAggregation": "AVG",
"splitBy": [
"dt.entity.process_group_instance"
],
"timeAggregation": "DEFAULT"
}
],
"visualConfig": {
"axes": {
"xAxis": {
"visible": true
},
"yAxes": []
},
"global": {},
"graphChartSettings": {
"connectNulls": false
},
"heatmapSettings": {
"yAxis": "VALUE"
},
"honeycombSettings": {
"showHive": true,
"showLabels": false,
"showLegend": true
},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT",
"seriesType": "LINE"
},
"seriesOverrides": []
}
],
"tableSettings": {},
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540",
"value": 0
},
{
"color": "#f5d30f",
"value": 2
},
{
"color": "#dc172a",
"value": 30
}
],
"visible": true
}
],
"type": "GRAPH_CHART"
}
})
bounds {
height = 304
left = 38
top = 646
width = 1216
}
}
}
# DEFINE dynatrace_dashboard_sharing.CD_DPP_E2E.id = 9e4a2212-19fa-43cf-bc0f-71389f8f109d
resource "dynatrace_dashboard_sharing" "CD_DPP_E2E" {
enabled = true
dashboard_id = dynatrace_dashboard.CD_DPP_E2E.id
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
}
}

View File

@ -0,0 +1,485 @@
# DEFINE dynatrace_dashboard.CD_DPP_PROD.id = c9f554b7-8e80-47b8-94ec-bdabe442dbed
data "dynatrace_management_zone" "CD_DPP_PROD"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_DPP_PROD" {
dashboard_metadata {
name = "CD_DPP_PROD"
owner = "daniel.leopold@partner.bmw.de"
# preset = false
shared = true
tags = [ "CDDPP", "DPP", "CD_dpp", "CD_DPP", "SEC.DPP" ]
unknowns = jsonencode({
"popularity": 1
})
filter {
management_zone {
name = "CD_dpp"
id = data.dynatrace_management_zone.CD_DPP_PROD.id
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 342
width = 304
}
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 = "#ef651f"
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
last_modified = 1595276148986
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fourxx.rate"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fivexx.rate"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
}
}
}
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 152
left = 950
top = 342
width = 152
}
}
tile {
name = "Markdown"
configured = true
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
tile_type = "MARKDOWN"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 1254
top = 342
width = 152
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 266
left = 38
top = 950
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Garbage collection suspension time"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "PROCESS_GROUP_INSTANCE"
metric = "builtin:tech.jvm.memory.gc.suspensionTime"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.process_group_instance"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "PROCESS_GROUP_INSTANCE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 38
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Response time, Throughput 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
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.requestCount.total"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.total.count"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
match {
key = "SERVICE_SOFTWARE_TECH"
values = [ "JAVA" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "SERVICES"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 342
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "DPP" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 646
top = 342
width = 304
}
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" ]
}
match {
key = "NAME"
values = [ "dpp" ]
}
}
}
}
}
tile {
name = "Data explorer results"
configured = true
custom_name = "Data explorer results"
tile_type = "DATA_EXPLORER"
unknowns = jsonencode({
"isAutoRefreshDisabled": false,
"metricExpressions": [
"resolution=null\u0026(builtin:tech.jvm.memory.gc.suspensionTime:filter(and(or(in(\"dt.entity.process_group_instance\",entitySelector(\"type(process_group_instance),tag(~\"Environment:PROD~\")\"))))):splitBy(\"dt.entity.process_group_instance\"):avg:auto:sort(value(avg,descending)):limit(20)):limit(100):names"
],
"queries": [
{
"enabled": true,
"filterBy": {
"criteria": [],
"filterOperator": "AND",
"nestedFilters": [
{
"criteria": [
{
"evaluator": "IN",
"value": "Environment:PROD"
}
],
"filter": "dt.entity.process_group_instance",
"filterOperator": "OR",
"filterType": "TAG",
"nestedFilters": []
}
]
},
"id": "A",
"limit": 20,
"metric": "builtin:tech.jvm.memory.gc.suspensionTime",
"rate": "NONE",
"spaceAggregation": "AVG",
"splitBy": [
"dt.entity.process_group_instance"
],
"timeAggregation": "DEFAULT"
}
],
"visualConfig": {
"axes": {
"xAxis": {
"visible": true
},
"yAxes": []
},
"global": {},
"graphChartSettings": {
"connectNulls": false
},
"heatmapSettings": {
"yAxis": "VALUE"
},
"honeycombSettings": {
"showHive": true,
"showLabels": false,
"showLegend": true
},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT",
"seriesType": "LINE"
},
"seriesOverrides": []
}
],
"tableSettings": {},
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540",
"value": 0
},
{
"color": "#f5d30f",
"value": 5
},
{
"color": "#dc172a",
"value": 30
}
],
"visible": true
}
],
"type": "GRAPH_CHART"
}
})
bounds {
height = 304
left = 38
top = 646
width = 1216
}
}
}
# DEFINE dynatrace_dashboard_sharing.CD_DPP_PROD.id = c9f554b7-8e80-47b8-94ec-bdabe442dbed
resource "dynatrace_dashboard_sharing" "CD_DPP_PROD" {
enabled = true
dashboard_id = dynatrace_dashboard.CD_DPP_PROD.id
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
permission {
type = "USER"
id = "salman.said@partner.bmw.de"
level = "EDIT"
}
permission {
type = "USER"
id = "joao.pp.ribeiro@ctw.bmwgroup.com"
level = "EDIT"
}
permission {
type = "USER"
id = "francisco.pereira@ctw.bmwgroup.com"
level = "EDIT"
}
permission {
type = "USER"
id = "juliana.orem@ctw.bmwgroup.com"
level = "EDIT"
}
permission {
type = "USER"
id = "ramona.al-dreihi@bmw.de"
level = "EDIT"
}
permission {
type = "USER"
id = "rafael.noronha@ctw.bmwgroup.com"
level = "EDIT"
}
permission {
type = "USER"
id = "goncalo.pinho@ctw.bmwgroup.com"
level = "EDIT"
}
permission {
type = "GROUP"
id = "55835960-b952-469e-b0ff-61abd1e323a9"
level = "EDIT"
}
}
}

View File

@ -0,0 +1,24 @@
# DEFINE dynatrace_management_zone.CD_dpp.id = 7431808806854689694
resource "dynatrace_management_zone" "CD_dpp" {
name = "CD_dpp"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP-TRN\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:DPP\"))"
}
entity_selector_based_rule {
enabled = true
selector = "type(HOST),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP\")"
}
}

View File

@ -0,0 +1,38 @@
# DEFINE dynatrace_alerting.CD_dpp_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQyM2E2MmU2Zi03OWEwLTM3OGItODIwZS0xMDIxMjNlZjhjNTC-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_INT"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_INT" {
name = "CD_dpp INT"
management_zone = data.dynatrace_management_zone.CD_dpp_INT.id
rules {
rule {
delay_in_minutes = 0
include_mode = "INCLUDE_ALL"
severity_level = "AVAILABILITY"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "CUSTOM_ALERT"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "ERRORS"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "PERFORMANCE"
tags = [ "Environment:INT" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "RESOURCE_CONTENTION"
tags = [ "Environment:INT" ]
}
}
}

View File

@ -0,0 +1,357 @@
# DEFINE dynatrace_dashboard.CD_dpp_INT.id = d11b3768-7937-4ad4-994b-fead72185ed7
data "dynatrace_management_zone" "CD_dpp_INT"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_dpp_INT" {
dashboard_metadata {
name = "CD_dpp INT"
owner = "Ignacio.Goldman@partner.bmwgroup.com"
preset = true
shared = true
tags = [ "CD_dpp" ]
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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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" ]
}
}
}
}
}
}

View File

@ -0,0 +1,357 @@
# DEFINE dynatrace_dashboard.CD_dpp_TEST.id = fa12a6e9-8f18-48a9-a1c0-1f8384cdb348
data "dynatrace_management_zone" "CD_dpp_TEST"{ name="CD_dpp" }
resource "dynatrace_dashboard" "CD_dpp_TEST" {
dashboard_metadata {
name = "CD_dpp TEST"
owner = "Ignacio.Goldman@partner.bmwgroup.com"
preset = true
shared = true
tags = [ "CD_dpp" ]
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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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_dpp"
id = data.dynatrace_management_zone.CD_dpp_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" ]
}
}
}
}
}
}

View File

@ -0,0 +1,20 @@
# DEFINE dynatrace_management_zone.CD_dpp.id = 4581095701552749331
resource "dynatrace_management_zone" "CD_dpp" {
name = "CD_dpp"
entity_selector_based_rule {
enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:DPP\"))"
}
entity_selector_based_rule {
enabled = true
selector = "type(HOST),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP\")"
}
}

View File

@ -0,0 +1,38 @@
# DEFINE dynatrace_alerting.CD_dpp_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRhOWJiOTZlZi1hMjdmLTM3OWItYjUyZS0zMzZlZjY1N2QyYmW-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_PROD"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_PROD" {
name = "CD_dpp PROD"
management_zone = data.dynatrace_management_zone.CD_dpp_PROD.id
rules {
rule {
delay_in_minutes = 0
include_mode = "INCLUDE_ALL"
severity_level = "AVAILABILITY"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "CUSTOM_ALERT"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 10
include_mode = "INCLUDE_ALL"
severity_level = "ERRORS"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "PERFORMANCE"
tags = [ "Environment:PROD" ]
}
rule {
delay_in_minutes = 30
include_mode = "INCLUDE_ALL"
severity_level = "RESOURCE_CONTENTION"
tags = [ "Environment:PROD" ]
}
}
}

View File

@ -0,0 +1,21 @@
# DEFINE dynatrace_alerting.CD_dpp_Unexpected_low_traffic_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ3ZTQxZjA1Yy05ZTBiLTNmZDAtYmI4Zi04NmZkNDdkYWYyNze-71TeFdrerQ
data "dynatrace_management_zone" "CD_dpp_Unexpected_low_traffic_PROD"{ name="CD_dpp" }
resource "dynatrace_alerting" "CD_dpp_Unexpected_low_traffic_PROD" {
name = "CD_dpp Unexpected low traffic PROD"
management_zone = data.dynatrace_management_zone.CD_dpp_Unexpected_low_traffic_PROD.id
filters {
filter {
predefined {
type = "SERVICE_UNEXPECTED_LOW_LOAD"
# negate = false
}
}
}
rules {
rule {
delay_in_minutes = 0
include_mode = "NONE"
severity_level = "AVAILABILITY"
}
}
}

View File

@ -0,0 +1,420 @@
# DEFINE dynatrace_dashboard.CD_DPP_E2E.id = 04328c6b-9f8e-466c-ad5f-3486bcb02545
data "dynatrace_management_zone" "CD_DPP_E2E"{ name="CD_discover-bmw-composite-service" }
resource "dynatrace_dashboard" "CD_DPP_E2E" {
dashboard_metadata {
name = "CD_DPP_E2E"
owner = "Daniel.Leopold@partner.bmw.de"
# preset = false
shared = true
tags = [ "CDDPP", "DPP", "CD_DPP", "CD_dpp", "SEC.DPP" ]
unknowns = jsonencode({
"popularity": 1
})
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 342
width = 304
}
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 = "#ef651f"
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
last_modified = 1595276148986
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fourxx.rate"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fivexx.rate"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 152
left = 950
top = 342
width = 152
}
}
tile {
name = "Markdown"
configured = true
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
tile_type = "MARKDOWN"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 1254
top = 38
width = 152
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 266
left = 38
top = 950
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Garbage collection suspension time"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "PROCESS_GROUP_INSTANCE"
metric = "builtin:tech.jvm.memory.gc.suspensionTime"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.process_group_instance"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "PROCESS_GROUP_INSTANCE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 38
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Response time, Throughput 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 = true
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.requestCount.total"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.total.count"
# sort_ascending = false
# sort_column = false
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:E2E" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "SERVICES"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 342
top = 342
width = 304
}
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" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 646
top = 342
width = 304
}
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" ]
}
}
}
}
}
tile {
name = "Data explorer results"
configured = true
custom_name = "Data explorer results"
tile_type = "DATA_EXPLORER"
unknowns = jsonencode({
"isAutoRefreshDisabled": false,
"metricExpressions": [
"resolution=null\u0026(builtin:tech.jvm.memory.gc.suspensionTime:filter(and(or(in(\"dt.entity.process_group_instance\",entitySelector(\"type(process_group_instance),tag(~\"Environment:E2E~\")\"))))):splitBy(\"dt.entity.process_group_instance\"):avg:auto:sort(value(avg,descending)):limit(20)):limit(100):names"
],
"queries": [
{
"enabled": true,
"filterBy": {
"criteria": [],
"filterOperator": "AND",
"nestedFilters": [
{
"criteria": [
{
"evaluator": "IN",
"value": "Environment:E2E"
}
],
"filter": "dt.entity.process_group_instance",
"filterOperator": "OR",
"filterType": "TAG",
"nestedFilters": []
}
]
},
"id": "A",
"limit": 20,
"metric": "builtin:tech.jvm.memory.gc.suspensionTime",
"rate": "NONE",
"spaceAggregation": "AVG",
"splitBy": [
"dt.entity.process_group_instance"
],
"timeAggregation": "DEFAULT"
}
],
"visualConfig": {
"axes": {
"xAxis": {
"visible": true
},
"yAxes": []
},
"global": {},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT",
"seriesType": "LINE"
},
"seriesOverrides": []
}
],
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540",
"value": 0
},
{
"color": "#f5d30f",
"value": 2
},
{
"color": "#dc172a",
"value": 30
}
],
"visible": true
}
],
"type": "GRAPH_CHART"
}
})
bounds {
height = 304
left = 38
top = 646
width = 1216
}
}
}
# DEFINE dynatrace_dashboard_sharing.CD_DPP_E2E.id = 04328c6b-9f8e-466c-ad5f-3486bcb02545
resource "dynatrace_dashboard_sharing" "CD_DPP_E2E" {
enabled = true
dashboard_id = dynatrace_dashboard.CD_DPP_E2E.id
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
permission {
type = "USER"
id = "salman.said@partner.bmw.de"
level = "EDIT"
}
permission {
type = "USER"
id = "eduard.pop@partner.bmw.de"
level = "EDIT"
}
permission {
type = "USER"
id = "simon.jonischkeit@partner.bmw.de"
level = "EDIT"
}
}
}

View File

@ -0,0 +1,431 @@
# DEFINE dynatrace_dashboard.CD_DPP_PROD.id = 97ea95fe-986f-411c-89ef-4ad4ee53574c
data "dynatrace_management_zone" "CD_DPP_PROD"{ name="CD_discover-bmw-composite-service" }
resource "dynatrace_dashboard" "CD_DPP_PROD" {
dashboard_metadata {
name = "CD_DPP_PROD"
owner = "Daniel.Leopold@partner.bmw.de"
# preset = false
shared = true
tags = [ "CDDPP", "DPP", "CD_dpp", "CD_DPP", "SEC.DPP" ]
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 342
width = 304
}
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 = "#ef651f"
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
last_modified = 1595276148986
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fourxx.rate"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.fivexx.rate"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
}
}
}
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 152
left = 950
top = 342
width = 152
}
}
tile {
name = "Markdown"
configured = true
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
tile_type = "MARKDOWN"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 1254
top = 342
width = 152
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 266
left = 38
top = 950
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Garbage collection suspension time"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "PROCESS_GROUP_INSTANCE"
metric = "builtin:tech.jvm.memory.gc.suspensionTime"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.process_group_instance"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "PROCESS_GROUP_INSTANCE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 38
top = 38
width = 1216
}
filter_config {
type = "MIXED"
custom_name = "Response time, Throughput 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
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.requestCount.total"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SERVICE"
metric = "builtin:service.errors.total.count"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.service"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "SERVICE"
match {
key = "AUTO_TAGS"
values = [ "Environment:PROD" ]
}
match {
key = "SERVICE_SOFTWARE_TECH"
values = [ "JAVA" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "SERVICES"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 342
top = 342
width = 304
}
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" ]
}
}
}
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "DATABASES_OVERVIEW"
unknowns = jsonencode({
"isAutoRefreshDisabled": false
})
bounds {
height = 304
left = 646
top = 342
width = 304
}
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" ]
}
}
}
}
}
tile {
name = "Data explorer results"
configured = true
custom_name = "Data explorer results"
tile_type = "DATA_EXPLORER"
unknowns = jsonencode({
"isAutoRefreshDisabled": false,
"metricExpressions": [
"resolution=null\u0026(builtin:tech.jvm.memory.gc.suspensionTime:filter(and(or(in(\"dt.entity.process_group_instance\",entitySelector(\"type(process_group_instance),tag(~\"Environment:PROD~\")\"))))):splitBy(\"dt.entity.process_group_instance\"):avg:auto:sort(value(avg,descending)):limit(20)):limit(100):names"
],
"queries": [
{
"enabled": true,
"filterBy": {
"criteria": [],
"filterOperator": "AND",
"nestedFilters": [
{
"criteria": [
{
"evaluator": "IN",
"value": "Environment:PROD"
}
],
"filter": "dt.entity.process_group_instance",
"filterOperator": "OR",
"filterType": "TAG",
"nestedFilters": []
}
]
},
"id": "A",
"limit": 20,
"metric": "builtin:tech.jvm.memory.gc.suspensionTime",
"rate": "NONE",
"spaceAggregation": "AVG",
"splitBy": [
"dt.entity.process_group_instance"
],
"timeAggregation": "DEFAULT"
}
],
"visualConfig": {
"axes": {
"xAxis": {
"visible": true
},
"yAxes": []
},
"global": {},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT",
"seriesType": "LINE"
},
"seriesOverrides": []
}
],
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540",
"value": 0
},
{
"color": "#f5d30f",
"value": 2
},
{
"color": "#dc172a",
"value": 30
}
],
"visible": true
}
],
"type": "GRAPH_CHART"
}
})
bounds {
height = 304
left = 38
top = 646
width = 1216
}
}
}
# DEFINE dynatrace_dashboard_sharing.CD_DPP_PROD.id = 97ea95fe-986f-411c-89ef-4ad4ee53574c
resource "dynatrace_dashboard_sharing" "CD_DPP_PROD" {
enabled = true
dashboard_id = dynatrace_dashboard.CD_DPP_PROD.id
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
permission {
type = "USER"
id = "salman.said@partner.bmw.de"
level = "EDIT"
}
permission {
type = "USER"
id = "eduard.pop@partner.bmw.de"
level = "EDIT"
}
permission {
type = "USER"
id = "simon.jonischkeit@partner.bmw.de"
level = "EDIT"
}
}
}

View File

@ -0,0 +1,24 @@
# DEFINE dynatrace_management_zone.CD_dpp.id = 947219869074220987
resource "dynatrace_management_zone" "CD_dpp" {
name = "CD_dpp"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP-TRN\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:DPP\"))"
}
entity_selector_based_rule {
enabled = true
selector = "type(HOST),tag(\"compass-id:DPP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPP\")"
}
}