From 9d1f4b255b4ca6279383ff381945fdd2aa496708 Mon Sep 17 00:00:00 2001 From: Jose Cadilha Date: Wed, 24 May 2023 14:10:20 +0100 Subject: [PATCH] BMW Points Sunset cleanup --- ...w-points-push-notifications-service_int.tf | 38 -- .../cd_chargenow-enabler-service_int.tf | 38 -- CN_PREPROD/alerting/cd_imiles-service_int.tf | 38 -- ...w-points-push-notifications-service_int.tf | 294 ---------------- ...-points-push-notifications-service_test.tf | 294 ---------------- .../cd_chargenow-enabler-service_int.tf | 294 ---------------- .../cd_chargenow-enabler-service_test.tf | 294 ---------------- CN_PREPROD/dashboard/cd_imiles-service_int.tf | 294 ---------------- .../dashboard/cd_imiles-service_test.tf | 294 ---------------- ...d_bmw-points-push-notifications-service.tf | 95 ----- .../cd_chargenow-enabler-service.tf | 95 ----- .../management_zone/cd_imiles-service.tf | 95 ----- ...w-points-push-notifications-service_e2e.tf | 38 -- ...-points-push-notifications-service_prod.tf | 38 -- .../cd_chargenow-enabler-service_e2e.tf | 38 -- CN_PROD/alerting/cd_imiles-service_e2e.tf | 38 -- ...-points-push-notifications-service_prod.tf | 294 ---------------- .../cd_chargenow-enabler-service_prod.tf | 294 ---------------- CN_PROD/dashboard/cd_imiles-service_prod.tf | 294 ---------------- ...d_bmw-points-push-notifications-service.tf | 95 ----- .../cd_chargenow-enabler-service.tf | 95 ----- CN_PROD/management_zone/cd_imiles-service.tf | 95 ----- ...w-points-push-notifications-service_int.tf | 38 -- .../cd_chargenow-enabler-service_int.tf | 38 -- .../alerting/cd_imiles-service_int.tf | 38 -- ...w-points-push-notifications-service_int.tf | 333 ------------------ ...-points-push-notifications-service_test.tf | 333 ------------------ .../cd_chargenow-enabler-service_int.tf | 333 ------------------ .../cd_chargenow-enabler-service_test.tf | 333 ------------------ .../dashboard/cd_imiles-service_int.tf | 333 ------------------ .../dashboard/cd_imiles-service_test.tf | 333 ------------------ ...d_bmw-points-push-notifications-service.tf | 143 -------- .../cd_chargenow-enabler-service.tf | 143 -------- .../management_zone/cd_imiles-service.tf | 95 ----- ...-points-push-notifications-service_prod.tf | 38 -- .../cd_chargenow-enabler-service_prod.tf | 38 -- EMEA_PROD/alerting/cd_imiles-service_prod.tf | 38 -- ...w-points-push-notifications-service_e2e.tf | 333 ------------------ ...-points-push-notifications-service_prod.tf | 333 ------------------ .../cd_chargenow-enabler-service_e2e.tf | 333 ------------------ .../cd_chargenow-enabler-service_prod.tf | 333 ------------------ EMEA_PROD/dashboard/cd_imiles-service_e2e.tf | 333 ------------------ EMEA_PROD/dashboard/cd_imiles-service_prod.tf | 333 ------------------ ...d_bmw-points-push-notifications-service.tf | 95 ----- .../cd_chargenow-enabler-service.tf | 95 ----- .../management_zone/cd_imiles-service.tf | 95 ----- ...w-points-push-notifications-service_int.tf | 321 ----------------- ...-points-push-notifications-service_test.tf | 321 ----------------- .../cd_chargenow-enabler-service_int.tf | 321 ----------------- .../cd_chargenow-enabler-service_test.tf | 321 ----------------- NA_PREPROD/dashboard/cd_imiles-service_int.tf | 321 ----------------- .../dashboard/cd_imiles-service_test.tf | 321 ----------------- ...d_bmw-points-push-notifications-service.tf | 95 ----- .../cd_chargenow-enabler-service.tf | 95 ----- .../management_zone/cd_imiles-service.tf | 95 ----- ...-points-push-notifications-service_prod.tf | 321 ----------------- .../cd_chargenow-enabler-service_prod.tf | 321 ----------------- NA_PROD/dashboard/cd_imiles-service_prod.tf | 321 ----------------- ...d_bmw-points-push-notifications-service.tf | 95 ----- .../cd_chargenow-enabler-service.tf | 95 ----- NA_PROD/management_zone/cd_imiles-service.tf | 95 ----- 61 files changed, 11831 deletions(-) delete mode 100644 CN_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf delete mode 100644 CN_PREPROD/alerting/cd_chargenow-enabler-service_int.tf delete mode 100644 CN_PREPROD/alerting/cd_imiles-service_int.tf delete mode 100644 CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf delete mode 100644 CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf delete mode 100644 CN_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf delete mode 100644 CN_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf delete mode 100644 CN_PREPROD/dashboard/cd_imiles-service_int.tf delete mode 100644 CN_PREPROD/dashboard/cd_imiles-service_test.tf delete mode 100644 CN_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf delete mode 100644 CN_PREPROD/management_zone/cd_chargenow-enabler-service.tf delete mode 100644 CN_PREPROD/management_zone/cd_imiles-service.tf delete mode 100644 CN_PROD/alerting/cd_bmw-points-push-notifications-service_e2e.tf delete mode 100644 CN_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf delete mode 100644 CN_PROD/alerting/cd_chargenow-enabler-service_e2e.tf delete mode 100644 CN_PROD/alerting/cd_imiles-service_e2e.tf delete mode 100644 CN_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf delete mode 100644 CN_PROD/dashboard/cd_chargenow-enabler-service_prod.tf delete mode 100644 CN_PROD/dashboard/cd_imiles-service_prod.tf delete mode 100644 CN_PROD/management_zone/cd_bmw-points-push-notifications-service.tf delete mode 100644 CN_PROD/management_zone/cd_chargenow-enabler-service.tf delete mode 100644 CN_PROD/management_zone/cd_imiles-service.tf delete mode 100644 EMEA_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf delete mode 100644 EMEA_PREPROD/alerting/cd_chargenow-enabler-service_int.tf delete mode 100644 EMEA_PREPROD/alerting/cd_imiles-service_int.tf delete mode 100644 EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf delete mode 100644 EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf delete mode 100644 EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf delete mode 100644 EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf delete mode 100644 EMEA_PREPROD/dashboard/cd_imiles-service_int.tf delete mode 100644 EMEA_PREPROD/dashboard/cd_imiles-service_test.tf delete mode 100644 EMEA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf delete mode 100644 EMEA_PREPROD/management_zone/cd_chargenow-enabler-service.tf delete mode 100644 EMEA_PREPROD/management_zone/cd_imiles-service.tf delete mode 100644 EMEA_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf delete mode 100644 EMEA_PROD/alerting/cd_chargenow-enabler-service_prod.tf delete mode 100644 EMEA_PROD/alerting/cd_imiles-service_prod.tf delete mode 100644 EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_e2e.tf delete mode 100644 EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf delete mode 100644 EMEA_PROD/dashboard/cd_chargenow-enabler-service_e2e.tf delete mode 100644 EMEA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf delete mode 100644 EMEA_PROD/dashboard/cd_imiles-service_e2e.tf delete mode 100644 EMEA_PROD/dashboard/cd_imiles-service_prod.tf delete mode 100644 EMEA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf delete mode 100644 EMEA_PROD/management_zone/cd_chargenow-enabler-service.tf delete mode 100644 EMEA_PROD/management_zone/cd_imiles-service.tf delete mode 100644 NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf delete mode 100644 NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf delete mode 100644 NA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf delete mode 100644 NA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf delete mode 100644 NA_PREPROD/dashboard/cd_imiles-service_int.tf delete mode 100644 NA_PREPROD/dashboard/cd_imiles-service_test.tf delete mode 100644 NA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf delete mode 100644 NA_PREPROD/management_zone/cd_chargenow-enabler-service.tf delete mode 100644 NA_PREPROD/management_zone/cd_imiles-service.tf delete mode 100644 NA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf delete mode 100644 NA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf delete mode 100644 NA_PROD/dashboard/cd_imiles-service_prod.tf delete mode 100644 NA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf delete mode 100644 NA_PROD/management_zone/cd_chargenow-enabler-service.tf delete mode 100644 NA_PROD/management_zone/cd_imiles-service.tf diff --git a/CN_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf b/CN_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf deleted file mode 100644 index 6200818e..00000000 --- a/CN_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_bmw-points-push-notifications-service_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRmOGNhOTdlYS0zNzI5LTQ4N2EtOGIyNy1jMTZhNmFlMTUwYTW-71TeFdrerQ -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_INT"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_alerting" "CD_bmw-points-push-notifications-service_INT" { - name = "CD_bmw-points-push-notifications-service INT" - management_zone = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_INT.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/alerting/cd_chargenow-enabler-service_int.tf b/CN_PREPROD/alerting/cd_chargenow-enabler-service_int.tf deleted file mode 100644 index 74d05b6b..00000000 --- a/CN_PREPROD/alerting/cd_chargenow-enabler-service_int.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_chargenow-enabler-service_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQzMTczYTUyYy00OWUxLTRlZTMtOGVlNy1hMmRhZThkNWQ0ZjW-71TeFdrerQ -data "dynatrace_management_zone" "CD_chargenow-enabler-service_INT"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_alerting" "CD_chargenow-enabler-service_INT" { - name = "CD_chargenow-enabler-service INT" - management_zone = data.dynatrace_management_zone.CD_chargenow-enabler-service_INT.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/alerting/cd_imiles-service_int.tf b/CN_PREPROD/alerting/cd_imiles-service_int.tf deleted file mode 100644 index 91fd8f9f..00000000 --- a/CN_PREPROD/alerting/cd_imiles-service_int.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_imiles-service_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQyMzZmYmEzYi02NWJmLTQ5MjctOTY1MS1jMTJlNWZhNzQ1NDG-71TeFdrerQ -data "dynatrace_management_zone" "CD_imiles-service_INT"{ name="CD_imiles-service" } -resource "dynatrace_alerting" "CD_imiles-service_INT" { - name = "CD_imiles-service INT" - management_zone = data.dynatrace_management_zone.CD_imiles-service_INT.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf b/CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf deleted file mode 100644 index 52105481..00000000 --- a/CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_INT.id = 41ef971f-3723-4046-ad1f-edd0fe7c0127 -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_INT"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_INT" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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_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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_INT.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "Environment:INT" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:bmw-points-push-notifications-service", "Environment:INT" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:bmw-points-push-notifications-service", "Environment:INT" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf b/CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf deleted file mode 100644 index 0a5454c6..00000000 --- a/CN_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_TEST.id = effd5e5d-2d06-4be2-9d35-5c062f10bfeb -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_TEST"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_TEST" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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_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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_TEST.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "Environment:TEST" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:bmw-points-push-notifications-service", "Environment:TEST" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:bmw-points-push-notifications-service", "Environment:TEST" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf b/CN_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf deleted file mode 100644 index 24989c4c..00000000 --- a/CN_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_INT.id = 99312cfe-a726-4914-8934-e633c295c103 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_INT"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_INT" { - dashboard_metadata { - name = "CD_chargenow-enabler-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "chargenow-enabler-service" ] - 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_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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_INT.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "Environment:INT" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:chargenow-enabler-service", "Environment:INT" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:chargenow-enabler-service", "Environment:INT" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf b/CN_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf deleted file mode 100644 index 854a7c6e..00000000 --- a/CN_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_TEST.id = 5c7fa4f9-bcb3-4019-8cef-aba39381e868 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_TEST"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_TEST" { - dashboard_metadata { - name = "CD_chargenow-enabler-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "chargenow-enabler-service" ] - 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_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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_TEST.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "Environment:TEST" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:chargenow-enabler-service", "Environment:TEST" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:chargenow-enabler-service", "Environment:TEST" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_imiles-service_int.tf b/CN_PREPROD/dashboard/cd_imiles-service_int.tf deleted file mode 100644 index aa96e2de..00000000 --- a/CN_PREPROD/dashboard/cd_imiles-service_int.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_INT.id = 59658a42-4dc2-40f3-9eca-0d33e23b3456 -data "dynatrace_management_zone" "CD_imiles-service_INT"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_INT" { - dashboard_metadata { - name = "CD_imiles-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "imiles-service" ] - 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_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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_INT.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:imiles-service", "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_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:imiles-service", "Environment:INT" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:imiles-service", "Environment:INT" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:imiles-service", "Environment:INT" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_imiles-service_test.tf b/CN_PREPROD/dashboard/cd_imiles-service_test.tf deleted file mode 100644 index 5429f5ef..00000000 --- a/CN_PREPROD/dashboard/cd_imiles-service_test.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_TEST.id = 28c7a3db-1d82-4803-b3aa-df9551cc1601 -data "dynatrace_management_zone" "CD_imiles-service_TEST"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_TEST" { - dashboard_metadata { - name = "CD_imiles-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "imiles-service" ] - 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_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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_TEST.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:imiles-service", "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_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:imiles-service", "Environment:TEST" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:imiles-service", "Environment:TEST" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:imiles-service", "Environment:TEST" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf b/CN_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf deleted file mode 100644 index d08075a2..00000000 --- a/CN_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_bmw-points-push-notifications-service.id = -4762756483628868738 -resource "dynatrace_management_zone" "CD_bmw-points-push-notifications-service" { - name = "CD_bmw-points-push-notifications-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "bmw-points-push-notifications-service" - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } -} diff --git a/CN_PREPROD/management_zone/cd_chargenow-enabler-service.tf b/CN_PREPROD/management_zone/cd_chargenow-enabler-service.tf deleted file mode 100644 index 07cc847c..00000000 --- a/CN_PREPROD/management_zone/cd_chargenow-enabler-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_chargenow-enabler-service.id = 6196012574572993919 -resource "dynatrace_management_zone" "CD_chargenow-enabler-service" { - name = "CD_chargenow-enabler-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "chargenow-enabler-service" - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } -} diff --git a/CN_PREPROD/management_zone/cd_imiles-service.tf b/CN_PREPROD/management_zone/cd_imiles-service.tf deleted file mode 100644 index b6c13c79..00000000 --- a/CN_PREPROD/management_zone/cd_imiles-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_imiles-service.id = 6726484872713971881 -resource "dynatrace_management_zone" "CD_imiles-service" { - name = "CD_imiles-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "imiles-service" - } - } - } - 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 = "imiles-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } -} diff --git a/CN_PROD/alerting/cd_bmw-points-push-notifications-service_e2e.tf b/CN_PROD/alerting/cd_bmw-points-push-notifications-service_e2e.tf deleted file mode 100644 index 9ca8460f..00000000 --- a/CN_PROD/alerting/cd_bmw-points-push-notifications-service_e2e.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_bmw-points-push-notifications-service_E2E.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ0NTU1YTg4Yi1hYTJlLTQ2MjgtODY5YS00ODkzYzhiYTM4NTW-71TeFdrerQ -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_E2E"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_alerting" "CD_bmw-points-push-notifications-service_E2E" { - name = "CD_bmw-points-push-notifications-service E2E" - management_zone = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_E2E.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:E2E" ] - } - } -} \ No newline at end of file diff --git a/CN_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf b/CN_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf deleted file mode 100644 index c5efe062..00000000 --- a/CN_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_bmw-points-push-notifications-service_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ5ZTEzZDMzNC1jZDc0LTRkZGEtODk3OC0zZGMxZmM5OGEwY2G-71TeFdrerQ -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_PROD"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_alerting" "CD_bmw-points-push-notifications-service_PROD" { - name = "CD_bmw-points-push-notifications-service PROD" - management_zone = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_PROD.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } -} \ No newline at end of file diff --git a/CN_PROD/alerting/cd_chargenow-enabler-service_e2e.tf b/CN_PROD/alerting/cd_chargenow-enabler-service_e2e.tf deleted file mode 100644 index 01f91bd4..00000000 --- a/CN_PROD/alerting/cd_chargenow-enabler-service_e2e.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_chargenow-enabler-service_E2E.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ0ODI5NDlhOC1iNDdiLTQ0OGEtODgwMC0xOTlkOTY5YzBkMDS-71TeFdrerQ -data "dynatrace_management_zone" "CD_chargenow-enabler-service_E2E"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_alerting" "CD_chargenow-enabler-service_E2E" { - name = "CD_chargenow-enabler-service E2E" - management_zone = data.dynatrace_management_zone.CD_chargenow-enabler-service_E2E.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:chargenow-enabler-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:chargenow-enabler-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:chargenow-enabler-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:chargenow-enabler-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:chargenow-enabler-service", "Environment:E2E" ] - } - } -} \ No newline at end of file diff --git a/CN_PROD/alerting/cd_imiles-service_e2e.tf b/CN_PROD/alerting/cd_imiles-service_e2e.tf deleted file mode 100644 index 8ce0e7f1..00000000 --- a/CN_PROD/alerting/cd_imiles-service_e2e.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_imiles-service_E2E.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ4ODU3Zjk5YS01OWY0LTRmM2YtOWEwMC04NTY0YTAzYWJjMDC-71TeFdrerQ -data "dynatrace_management_zone" "CD_imiles-service_E2E"{ name="CD_imiles-service" } -resource "dynatrace_alerting" "CD_imiles-service_E2E" { - name = "CD_imiles-service E2E" - management_zone = data.dynatrace_management_zone.CD_imiles-service_E2E.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:imiles-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:imiles-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:imiles-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:imiles-service", "Environment:E2E" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:imiles-service", "Environment:E2E" ] - } - } -} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf b/CN_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf deleted file mode 100644 index 275fcdd9..00000000 --- a/CN_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_PROD.id = f9f68266-2a63-452a-9473-bbcce4dcf50d -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_PROD"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_PROD" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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_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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "Problems" - configured = true - tile_type = "OPEN_PROBLEMS" - bounds { - height = 152 - left = 950 - top = 38 - width = 152 - } - filter { - management_zone { - name = "CD_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_PROD.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } - 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_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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_chargenow-enabler-service_prod.tf b/CN_PROD/dashboard/cd_chargenow-enabler-service_prod.tf deleted file mode 100644 index 006a0eff..00000000 --- a/CN_PROD/dashboard/cd_chargenow-enabler-service_prod.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_PROD.id = 5f2a2810-dd24-41fe-bc34-837ddcc762ce -data "dynatrace_management_zone" "CD_chargenow-enabler-service_PROD"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_PROD" { - dashboard_metadata { - name = "CD_chargenow-enabler-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "chargenow-enabler-service" ] - 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_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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "Problems" - configured = true - tile_type = "OPEN_PROBLEMS" - bounds { - height = 152 - left = 950 - top = 38 - width = 152 - } - filter { - management_zone { - name = "CD_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_PROD.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } - 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_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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_imiles-service_prod.tf b/CN_PROD/dashboard/cd_imiles-service_prod.tf deleted file mode 100644 index 59526249..00000000 --- a/CN_PROD/dashboard/cd_imiles-service_prod.tf +++ /dev/null @@ -1,294 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_PROD.id = 609c02c2-91a6-4dce-80c0-785db266ab21 -data "dynatrace_management_zone" "CD_imiles-service_PROD"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_PROD" { - dashboard_metadata { - name = "CD_imiles-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "imiles-service" ] - 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_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:imiles-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "Problems" - configured = true - tile_type = "OPEN_PROBLEMS" - bounds { - height = 152 - left = 950 - top = 38 - width = 152 - } - filter { - management_zone { - name = "CD_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_PROD.id - } - } - } - tile { - name = "Overall Health" - configured = true - tile_type = "HEADER" - bounds { - height = 38 - left = 38 - top = 0 - width = 1064 - } - } - 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_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:imiles-service", "Environment:PROD" ] - } - } - } - } - } - 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_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:imiles-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "SERVICES" - 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:imiles-service", "Environment:PROD" ] - } - } - } - } - } - tile { - name = "" - chart_visible = true - configured = true - tile_type = "HOSTS" - 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:imiles-service", "Environment:PROD" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/CN_PROD/management_zone/cd_bmw-points-push-notifications-service.tf b/CN_PROD/management_zone/cd_bmw-points-push-notifications-service.tf deleted file mode 100644 index 9a348af2..00000000 --- a/CN_PROD/management_zone/cd_bmw-points-push-notifications-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_bmw-points-push-notifications-service.id = -1384397078932689510 -resource "dynatrace_management_zone" "CD_bmw-points-push-notifications-service" { - name = "CD_bmw-points-push-notifications-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "bmw-points-push-notifications-service" - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } -} diff --git a/CN_PROD/management_zone/cd_chargenow-enabler-service.tf b/CN_PROD/management_zone/cd_chargenow-enabler-service.tf deleted file mode 100644 index 2dad49ac..00000000 --- a/CN_PROD/management_zone/cd_chargenow-enabler-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_chargenow-enabler-service.id = 3731373758929855316 -resource "dynatrace_management_zone" "CD_chargenow-enabler-service" { - name = "CD_chargenow-enabler-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "chargenow-enabler-service" - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } -} diff --git a/CN_PROD/management_zone/cd_imiles-service.tf b/CN_PROD/management_zone/cd_imiles-service.tf deleted file mode 100644 index 4033027b..00000000 --- a/CN_PROD/management_zone/cd_imiles-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_imiles-service.id = -2453673963437771929 -resource "dynatrace_management_zone" "CD_imiles-service" { - name = "CD_imiles-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "imiles-service" - } - } - } - 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 = "imiles-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } -} diff --git a/EMEA_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf b/EMEA_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf deleted file mode 100644 index e72cf34f..00000000 --- a/EMEA_PREPROD/alerting/cd_bmw-points-push-notifications-service_int.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_bmw-points-push-notifications-service_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRiYjczYzBiOS0wOTRhLTMyMWYtYmM3MS04ODc4NDE4NGYxYjW-71TeFdrerQ -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_INT"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_alerting" "CD_bmw-points-push-notifications-service_INT" { - name = "CD_bmw-points-push-notifications-service INT" - management_zone = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_INT.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:INT" ] - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/alerting/cd_chargenow-enabler-service_int.tf b/EMEA_PREPROD/alerting/cd_chargenow-enabler-service_int.tf deleted file mode 100644 index c043c3be..00000000 --- a/EMEA_PREPROD/alerting/cd_chargenow-enabler-service_int.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_chargenow-enabler-service_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRmNTdmNDAwZi01MmUwLTM1NGItOTIwMC02ODFiY2NjMGQ5MjC-71TeFdrerQ -data "dynatrace_management_zone" "CD_chargenow-enabler-service_INT"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_alerting" "CD_chargenow-enabler-service_INT" { - name = "CD_chargenow-enabler-service INT" - management_zone = data.dynatrace_management_zone.CD_chargenow-enabler-service_INT.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:chargenow-enabler-service", "Environment:INT" ] - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/alerting/cd_imiles-service_int.tf b/EMEA_PREPROD/alerting/cd_imiles-service_int.tf deleted file mode 100644 index 7b1e3c7d..00000000 --- a/EMEA_PREPROD/alerting/cd_imiles-service_int.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_imiles-service_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRlZGQxYTViMy1lN2E5LTM2MmUtOGU2My04NDc1ZjM4MDcwOTi-71TeFdrerQ -data "dynatrace_management_zone" "CD_imiles-service_INT"{ name="CD_imiles-service" } -resource "dynatrace_alerting" "CD_imiles-service_INT" { - name = "CD_imiles-service INT" - management_zone = data.dynatrace_management_zone.CD_imiles-service_INT.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:imiles-service", "Environment:INT" ] - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf b/EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf deleted file mode 100644 index 68ee32fc..00000000 --- a/EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_INT.id = 6581ed5b-9b63-4a74-b3f7-4463c9eaee41 -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_INT"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_INT" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_INT.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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "Environment:INT" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_bmw-points-push-notifications-service_INT.id = 6581ed5b-9b63-4a74-b3f7-4463c9eaee41 -resource "dynatrace_dashboard_sharing" "CD_bmw-points-push-notifications-service_INT" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_bmw-points-push-notifications-service_INT.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf b/EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf deleted file mode 100644 index 0eb3f145..00000000 --- a/EMEA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_TEST.id = 5996cb57-218e-4b23-8dab-7cbea27a164d -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_TEST"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_TEST" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "Environment:TEST" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_bmw-points-push-notifications-service_TEST.id = 5996cb57-218e-4b23-8dab-7cbea27a164d -resource "dynatrace_dashboard_sharing" "CD_bmw-points-push-notifications-service_TEST" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_bmw-points-push-notifications-service_TEST.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf b/EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf deleted file mode 100644 index 35dab912..00000000 --- a/EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_INT.id = 84015d51-6747-416b-b717-d856ea2335a9 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_INT"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_INT" { - dashboard_metadata { - name = "CD_chargenow-enabler-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_INT.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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "Environment:INT" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_chargenow-enabler-service_INT.id = 84015d51-6747-416b-b717-d856ea2335a9 -resource "dynatrace_dashboard_sharing" "CD_chargenow-enabler-service_INT" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_chargenow-enabler-service_INT.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf b/EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf deleted file mode 100644 index d495ef40..00000000 --- a/EMEA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_TEST.id = 217c74b2-b525-40ab-99ae-12a053f0411e -data "dynatrace_management_zone" "CD_chargenow-enabler-service_TEST"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_TEST" { - dashboard_metadata { - name = "CD_chargenow-enabler-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "Environment:TEST" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_chargenow-enabler-service_TEST.id = 217c74b2-b525-40ab-99ae-12a053f0411e -resource "dynatrace_dashboard_sharing" "CD_chargenow-enabler-service_TEST" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_chargenow-enabler-service_TEST.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_imiles-service_int.tf b/EMEA_PREPROD/dashboard/cd_imiles-service_int.tf deleted file mode 100644 index b48f7c81..00000000 --- a/EMEA_PREPROD/dashboard/cd_imiles-service_int.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_INT.id = 76c739d9-0f42-4c71-90bb-fdb8cfe34816 -data "dynatrace_management_zone" "CD_imiles-service_INT"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_INT" { - dashboard_metadata { - name = "CD_imiles-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_INT.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:imiles-service", "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_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:imiles-service", "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_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:imiles-service", "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_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:imiles-service", "Environment:INT" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_imiles-service_INT.id = 76c739d9-0f42-4c71-90bb-fdb8cfe34816 -resource "dynatrace_dashboard_sharing" "CD_imiles-service_INT" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_imiles-service_INT.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_imiles-service_test.tf b/EMEA_PREPROD/dashboard/cd_imiles-service_test.tf deleted file mode 100644 index 67708a3f..00000000 --- a/EMEA_PREPROD/dashboard/cd_imiles-service_test.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_TEST.id = c2e6562a-6e7a-4d1f-a4ad-e67465420b02 -data "dynatrace_management_zone" "CD_imiles-service_TEST"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_TEST" { - dashboard_metadata { - name = "CD_imiles-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_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:imiles-service", "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:imiles-service", "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:imiles-service", "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:imiles-service", "Environment:TEST" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_imiles-service_TEST.id = c2e6562a-6e7a-4d1f-a4ad-e67465420b02 -resource "dynatrace_dashboard_sharing" "CD_imiles-service_TEST" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_imiles-service_TEST.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf b/EMEA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf deleted file mode 100644 index 71d0834d..00000000 --- a/EMEA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf +++ /dev/null @@ -1,143 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_bmw-points-push-notifications-service.id = 7668392738984716456 -resource "dynatrace_management_zone" "CD_bmw-points-push-notifications-service" { - name = "CD_bmw-points-push-notifications-service" - entity_selector_based_rule { - # enabled = false - selector = "type(HOST),tag('ms-id:eMob-bmwPoints-PNS')" - } - entity_selector_based_rule { - enabled = true - selector = "type(Service),tag(\"ms-id:eMob-bmwPoints-PNS\")" - } - entity_selector_based_rule { - # enabled = false - selector = "type(PROCESS_GROUP_INSTANCE),tag('msid:eMob-bmwPoints-PNS')" - } - entity_selector_based_rule { - enabled = true - selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"ms-id:eMob-bmwPoints-PNS\"))" - } - entity_selector_based_rule { - enabled = true - selector = "type(HOST),tag(\"ms-id:eMob-bmwPoints-PNS\")" - } - entity_selector_based_rule { - # enabled = false - selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag('ms-id:eMob-bmwPoints-PNS'))" - } - entity_selector_based_rule { - enabled = true - selector = "type(PROCESS_GROUP_INSTANCE),tag(\"ms-id:eMob-bmwPoints-PNS\")" - } - entity_selector_based_rule { - # enabled = false - selector = "type(PROCESS_GROUP_INSTANCE),tag('ms-id:eMob-bmwPoints-PNS')" - } - entity_selector_based_rule { - # enabled = false - selector = "type(Service),tag('msid:eMob-bmwPoints-PNS')" - } - entity_selector_based_rule { - # enabled = false - selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag('msid:eMob-bmwPoints-PNS'))" - } - entity_selector_based_rule { - # enabled = false - selector = "type(HOST),tag('msid:eMob-bmwPoints-PNS')" - } - entity_selector_based_rule { - # enabled = false - selector = "type(Service),tag('ms-id:eMob-bmwPoints-PNS')" - } - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "bmw-points-push-notifications-service" - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } -} diff --git a/EMEA_PREPROD/management_zone/cd_chargenow-enabler-service.tf b/EMEA_PREPROD/management_zone/cd_chargenow-enabler-service.tf deleted file mode 100644 index a10071fe..00000000 --- a/EMEA_PREPROD/management_zone/cd_chargenow-enabler-service.tf +++ /dev/null @@ -1,143 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_chargenow-enabler-service.id = -3363012248215022753 -resource "dynatrace_management_zone" "CD_chargenow-enabler-service" { - name = "CD_chargenow-enabler-service" - entity_selector_based_rule { - enabled = true - selector = "type(Service),tag(\"ms-id:eMob-CNE\")" - } - entity_selector_based_rule { - # enabled = false - selector = "type(Service),tag('ms-id:eMob-CNE')" - } - entity_selector_based_rule { - # enabled = false - selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag('msid:eMob-CNE'))" - } - entity_selector_based_rule { - # enabled = false - selector = "type(PROCESS_GROUP_INSTANCE),tag('msid:eMob-CNE')" - } - entity_selector_based_rule { - # enabled = false - selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag('ms-id:eMob-CNE'))" - } - entity_selector_based_rule { - # enabled = false - selector = "type(HOST),tag('msid:eMob-CNE')" - } - entity_selector_based_rule { - enabled = true - selector = "type(HOST),tag(\"ms-id:eMob-CNE\")" - } - entity_selector_based_rule { - # enabled = false - selector = "type(Service),tag('msid:eMob-CNE')" - } - entity_selector_based_rule { - # enabled = false - selector = "type(PROCESS_GROUP_INSTANCE),tag('ms-id:eMob-CNE')" - } - entity_selector_based_rule { - enabled = true - selector = "type(PROCESS_GROUP_INSTANCE),tag(\"ms-id:eMob-CNE\")" - } - entity_selector_based_rule { - # enabled = false - selector = "type(HOST),tag('ms-id:eMob-CNE')" - } - entity_selector_based_rule { - enabled = true - selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"ms-id:eMob-CNE\"))" - } - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "chargenow-enabler-service" - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } -} diff --git a/EMEA_PREPROD/management_zone/cd_imiles-service.tf b/EMEA_PREPROD/management_zone/cd_imiles-service.tf deleted file mode 100644 index 067493be..00000000 --- a/EMEA_PREPROD/management_zone/cd_imiles-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_imiles-service.id = 5199631867651265601 -resource "dynatrace_management_zone" "CD_imiles-service" { - name = "CD_imiles-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "imiles-service" - } - } - } - 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 = "imiles-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } -} diff --git a/EMEA_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf b/EMEA_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf deleted file mode 100644 index 8266a949..00000000 --- a/EMEA_PROD/alerting/cd_bmw-points-push-notifications-service_prod.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_bmw-points-push-notifications-service_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRjNjQ0NGNhNC0yZWQ2LTMxMTktYjM2OS1hMTAyYzgzNzJmY2S-71TeFdrerQ -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_PROD"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_alerting" "CD_bmw-points-push-notifications-service_PROD" { - name = "CD_bmw-points-push-notifications-service PROD" - management_zone = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_PROD.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/alerting/cd_chargenow-enabler-service_prod.tf b/EMEA_PROD/alerting/cd_chargenow-enabler-service_prod.tf deleted file mode 100644 index c53824c8..00000000 --- a/EMEA_PROD/alerting/cd_chargenow-enabler-service_prod.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_chargenow-enabler-service_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRhNjliYjEyYS00ZGE2LTNlYjEtODY3Yi1hNTRlOWYyM2ZhNzS-71TeFdrerQ -data "dynatrace_management_zone" "CD_chargenow-enabler-service_PROD"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_alerting" "CD_chargenow-enabler-service_PROD" { - name = "CD_chargenow-enabler-service PROD" - management_zone = data.dynatrace_management_zone.CD_chargenow-enabler-service_PROD.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:chargenow-enabler-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:chargenow-enabler-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:chargenow-enabler-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:chargenow-enabler-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:chargenow-enabler-service", "Environment:PROD" ] - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/alerting/cd_imiles-service_prod.tf b/EMEA_PROD/alerting/cd_imiles-service_prod.tf deleted file mode 100644 index 76a2700b..00000000 --- a/EMEA_PROD/alerting/cd_imiles-service_prod.tf +++ /dev/null @@ -1,38 +0,0 @@ -# DEFINE dynatrace_alerting.CD_imiles-service_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRhNDEwYzVjNS0yODQ2LTM1MWItOTgzZS02OGRkZDVkZTBjNDS-71TeFdrerQ -data "dynatrace_management_zone" "CD_imiles-service_PROD"{ name="CD_imiles-service" } -resource "dynatrace_alerting" "CD_imiles-service_PROD" { - name = "CD_imiles-service PROD" - management_zone = data.dynatrace_management_zone.CD_imiles-service_PROD.id - rules { - rule { - delay_in_minutes = 0 - include_mode = "INCLUDE_ALL" - severity_level = "AVAILABILITY" - tags = [ "Component:imiles-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "CUSTOM_ALERT" - tags = [ "Component:imiles-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 10 - include_mode = "INCLUDE_ALL" - severity_level = "ERRORS" - tags = [ "Component:imiles-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "PERFORMANCE" - tags = [ "Component:imiles-service", "Environment:PROD" ] - } - rule { - delay_in_minutes = 30 - include_mode = "INCLUDE_ALL" - severity_level = "RESOURCE_CONTENTION" - tags = [ "Component:imiles-service", "Environment:PROD" ] - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_e2e.tf b/EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_e2e.tf deleted file mode 100644 index 91eb8b85..00000000 --- a/EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_e2e.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_E2E.id = 0289969f-2b67-49e0-8c03-6946dd9d296d -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_E2E"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_E2E" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service E2E" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "Environment:E2E" ] - } - } - } - } - } - 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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_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 = [ "Component:bmw-points-push-notifications-service", "Environment:E2E" ] - } - } - } - } - } - 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:bmw-points-push-notifications-service", "Environment:E2E" ] - } - } - } - } - } - 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:bmw-points-push-notifications-service", "Environment:E2E" ] - } - } - } - } - } - 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:bmw-points-push-notifications-service", "Environment:E2E" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_bmw-points-push-notifications-service_E2E.id = 0289969f-2b67-49e0-8c03-6946dd9d296d -resource "dynatrace_dashboard_sharing" "CD_bmw-points-push-notifications-service_E2E" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_bmw-points-push-notifications-service_E2E.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf b/EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf deleted file mode 100644 index 1229ea5b..00000000 --- a/EMEA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_PROD.id = 64c7de86-b138-4f61-b71e-a26165cefc37 -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_PROD"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_PROD" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_bmw-points-push-notifications-service_PROD.id = 64c7de86-b138-4f61-b71e-a26165cefc37 -resource "dynatrace_dashboard_sharing" "CD_bmw-points-push-notifications-service_PROD" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_bmw-points-push-notifications-service_PROD.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_chargenow-enabler-service_e2e.tf b/EMEA_PROD/dashboard/cd_chargenow-enabler-service_e2e.tf deleted file mode 100644 index 2d81e197..00000000 --- a/EMEA_PROD/dashboard/cd_chargenow-enabler-service_e2e.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_E2E.id = ddd47df3-d5ea-4147-9fe8-afc9901ff8f2 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_E2E"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_E2E" { - dashboard_metadata { - name = "CD_chargenow-enabler-service E2E" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "Environment:E2E" ] - } - } - } - } - } - 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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_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 = [ "Component:chargenow-enabler-service", "Environment:E2E" ] - } - } - } - } - } - 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:chargenow-enabler-service", "Environment:E2E" ] - } - } - } - } - } - 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:chargenow-enabler-service", "Environment:E2E" ] - } - } - } - } - } - 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:chargenow-enabler-service", "Environment:E2E" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_chargenow-enabler-service_E2E.id = ddd47df3-d5ea-4147-9fe8-afc9901ff8f2 -resource "dynatrace_dashboard_sharing" "CD_chargenow-enabler-service_E2E" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_chargenow-enabler-service_E2E.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf b/EMEA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf deleted file mode 100644 index 3d60730e..00000000 --- a/EMEA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_PROD.id = 11ae3545-9bcf-4b9f-a24e-415db405cfa0 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_PROD"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_PROD" { - dashboard_metadata { - name = "CD_chargenow-enabler-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_chargenow-enabler-service_PROD.id = 11ae3545-9bcf-4b9f-a24e-415db405cfa0 -resource "dynatrace_dashboard_sharing" "CD_chargenow-enabler-service_PROD" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_chargenow-enabler-service_PROD.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_imiles-service_e2e.tf b/EMEA_PROD/dashboard/cd_imiles-service_e2e.tf deleted file mode 100644 index 7841bc52..00000000 --- a/EMEA_PROD/dashboard/cd_imiles-service_e2e.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_E2E.id = b84400fb-add3-4dad-814c-685e18294455 -data "dynatrace_management_zone" "CD_imiles-service_E2E"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_E2E" { - dashboard_metadata { - name = "CD_imiles-service E2E" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "Environment:E2E" ] - } - } - } - } - } - 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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_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 = [ "Component:imiles-service", "Environment:E2E" ] - } - } - } - } - } - 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:imiles-service", "Environment:E2E" ] - } - } - } - } - } - 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:imiles-service", "Environment:E2E" ] - } - } - } - } - } - 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:imiles-service", "Environment:E2E" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_imiles-service_E2E.id = b84400fb-add3-4dad-814c-685e18294455 -resource "dynatrace_dashboard_sharing" "CD_imiles-service_E2E" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_imiles-service_E2E.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_imiles-service_prod.tf b/EMEA_PROD/dashboard/cd_imiles-service_prod.tf deleted file mode 100644 index 1d69c433..00000000 --- a/EMEA_PROD/dashboard/cd_imiles-service_prod.tf +++ /dev/null @@ -1,333 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_PROD.id = 3ef06b40-8f6a-44ec-9663-287008004985 -data "dynatrace_management_zone" "CD_imiles-service_PROD"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_PROD" { - dashboard_metadata { - name = "CD_imiles-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - # preset = false - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_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:imiles-service", "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:imiles-service", "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:imiles-service", "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:imiles-service", "Environment:PROD" ] - } - } - } - } - } -} -# DEFINE dynatrace_dashboard_sharing.CD_imiles-service_PROD.id = 3ef06b40-8f6a-44ec-9663-287008004985 -resource "dynatrace_dashboard_sharing" "CD_imiles-service_PROD" { - enabled = true - dashboard_id = dynatrace_dashboard.CD_imiles-service_PROD.id - # preset = false - permissions { - permission { - type = "ALL" - level = "VIEW" - } - } -} \ No newline at end of file diff --git a/EMEA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf b/EMEA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf deleted file mode 100644 index 2e78826b..00000000 --- a/EMEA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_bmw-points-push-notifications-service.id = 3646847314212076692 -resource "dynatrace_management_zone" "CD_bmw-points-push-notifications-service" { - name = "CD_bmw-points-push-notifications-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "bmw-points-push-notifications-service" - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } -} diff --git a/EMEA_PROD/management_zone/cd_chargenow-enabler-service.tf b/EMEA_PROD/management_zone/cd_chargenow-enabler-service.tf deleted file mode 100644 index f2b13ed0..00000000 --- a/EMEA_PROD/management_zone/cd_chargenow-enabler-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_chargenow-enabler-service.id = 4692934809440873007 -resource "dynatrace_management_zone" "CD_chargenow-enabler-service" { - name = "CD_chargenow-enabler-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "chargenow-enabler-service" - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } -} diff --git a/EMEA_PROD/management_zone/cd_imiles-service.tf b/EMEA_PROD/management_zone/cd_imiles-service.tf deleted file mode 100644 index f0b2636e..00000000 --- a/EMEA_PROD/management_zone/cd_imiles-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_imiles-service.id = -1198227328507213456 -resource "dynatrace_management_zone" "CD_imiles-service" { - name = "CD_imiles-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "imiles-service" - } - } - } - 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 = "imiles-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } -} diff --git a/NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf b/NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf deleted file mode 100644 index 184e365b..00000000 --- a/NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_int.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_INT.id = 3afcead7-fd78-46bf-8115-c7e301672a47 -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_INT"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_INT" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_INT.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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "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_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:bmw-points-push-notifications-service", "Environment:INT" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf b/NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf deleted file mode 100644 index a0ff92e5..00000000 --- a/NA_PREPROD/dashboard/cd_bmw-points-push-notifications-service_test.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_TEST.id = aa129368-041f-41c3-8fc2-ad579e5cc214 -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_TEST"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_TEST" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "Environment:TEST" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf b/NA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf deleted file mode 100644 index 107e192c..00000000 --- a/NA_PREPROD/dashboard/cd_chargenow-enabler-service_int.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_INT.id = b2be8916-6cf1-4f55-bb92-98a5258316a9 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_INT"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_INT" { - dashboard_metadata { - name = "CD_chargenow-enabler-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_INT.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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "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_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:chargenow-enabler-service", "Environment:INT" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf b/NA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf deleted file mode 100644 index a559ad73..00000000 --- a/NA_PREPROD/dashboard/cd_chargenow-enabler-service_test.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_TEST.id = 638bf63d-f876-454d-88ae-65a5983e08e3 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_TEST"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_TEST" { - dashboard_metadata { - name = "CD_chargenow-enabler-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "Environment:TEST" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PREPROD/dashboard/cd_imiles-service_int.tf b/NA_PREPROD/dashboard/cd_imiles-service_int.tf deleted file mode 100644 index b9941eb3..00000000 --- a/NA_PREPROD/dashboard/cd_imiles-service_int.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_INT.id = 9e2e60b4-7dc0-45fe-a0c3-ba61c917b964 -data "dynatrace_management_zone" "CD_imiles-service_INT"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_INT" { - dashboard_metadata { - name = "CD_imiles-service INT" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_INT.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:imiles-service", "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_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:imiles-service", "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_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:imiles-service", "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_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:imiles-service", "Environment:INT" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PREPROD/dashboard/cd_imiles-service_test.tf b/NA_PREPROD/dashboard/cd_imiles-service_test.tf deleted file mode 100644 index c238c617..00000000 --- a/NA_PREPROD/dashboard/cd_imiles-service_test.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_TEST.id = d8080b57-2b3a-49f8-97fb-97202e2b1a5d -data "dynatrace_management_zone" "CD_imiles-service_TEST"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_TEST" { - dashboard_metadata { - name = "CD_imiles-service TEST" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_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:imiles-service", "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:imiles-service", "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:imiles-service", "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:imiles-service", "Environment:TEST" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf b/NA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf deleted file mode 100644 index 2c0e3d85..00000000 --- a/NA_PREPROD/management_zone/cd_bmw-points-push-notifications-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_bmw-points-push-notifications-service.id = 2963062693642633134 -resource "dynatrace_management_zone" "CD_bmw-points-push-notifications-service" { - name = "CD_bmw-points-push-notifications-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "bmw-points-push-notifications-service" - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } -} diff --git a/NA_PREPROD/management_zone/cd_chargenow-enabler-service.tf b/NA_PREPROD/management_zone/cd_chargenow-enabler-service.tf deleted file mode 100644 index a7d8876b..00000000 --- a/NA_PREPROD/management_zone/cd_chargenow-enabler-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_chargenow-enabler-service.id = 3410646835314027173 -resource "dynatrace_management_zone" "CD_chargenow-enabler-service" { - name = "CD_chargenow-enabler-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "chargenow-enabler-service" - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } -} diff --git a/NA_PREPROD/management_zone/cd_imiles-service.tf b/NA_PREPROD/management_zone/cd_imiles-service.tf deleted file mode 100644 index d0697989..00000000 --- a/NA_PREPROD/management_zone/cd_imiles-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_imiles-service.id = 2023637904106873921 -resource "dynatrace_management_zone" "CD_imiles-service" { - name = "CD_imiles-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "imiles-service" - } - } - } - 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 = "imiles-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } -} diff --git a/NA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf b/NA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf deleted file mode 100644 index 98b39cd2..00000000 --- a/NA_PROD/dashboard/cd_bmw-points-push-notifications-service_prod.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_bmw-points-push-notifications-service_PROD.id = afa74c8e-a5b5-439b-a18d-a2d55d2d6212 -data "dynatrace_management_zone" "CD_bmw-points-push-notifications-service_PROD"{ name="CD_bmw-points-push-notifications-service" } -resource "dynatrace_dashboard" "CD_bmw-points-push-notifications-service_PROD" { - dashboard_metadata { - name = "CD_bmw-points-push-notifications-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "bmw-points-push-notifications-service" ] - 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:bmw-points-push-notifications-service", "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_bmw-points-push-notifications-service" - id = data.dynatrace_management_zone.CD_bmw-points-push-notifications-service_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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "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:bmw-points-push-notifications-service", "Environment:PROD" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf b/NA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf deleted file mode 100644 index 950cc9d9..00000000 --- a/NA_PROD/dashboard/cd_chargenow-enabler-service_prod.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_chargenow-enabler-service_PROD.id = 14fa11be-9c23-455a-8e07-ca69a778b8b7 -data "dynatrace_management_zone" "CD_chargenow-enabler-service_PROD"{ name="CD_chargenow-enabler-service" } -resource "dynatrace_dashboard" "CD_chargenow-enabler-service_PROD" { - dashboard_metadata { - name = "CD_chargenow-enabler-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "chargenow-enabler-service" ] - 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:chargenow-enabler-service", "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_chargenow-enabler-service" - id = data.dynatrace_management_zone.CD_chargenow-enabler-service_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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "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:chargenow-enabler-service", "Environment:PROD" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PROD/dashboard/cd_imiles-service_prod.tf b/NA_PROD/dashboard/cd_imiles-service_prod.tf deleted file mode 100644 index 61735fa9..00000000 --- a/NA_PROD/dashboard/cd_imiles-service_prod.tf +++ /dev/null @@ -1,321 +0,0 @@ -# DEFINE dynatrace_dashboard.CD_imiles-service_PROD.id = 0876c88c-e669-4e88-8978-5aac623bea27 -data "dynatrace_management_zone" "CD_imiles-service_PROD"{ name="CD_imiles-service" } -resource "dynatrace_dashboard" "CD_imiles-service_PROD" { - dashboard_metadata { - name = "CD_imiles-service PROD" - owner = "Ignacio.Goldman@partner.bmwgroup.com" - preset = true - shared = true - tags = [ "imiles-service" ] - 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:imiles-service", "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_imiles-service" - id = data.dynatrace_management_zone.CD_imiles-service_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:imiles-service", "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:imiles-service", "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:imiles-service", "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:imiles-service", "Environment:PROD" ] - } - } - } - } - } -} \ No newline at end of file diff --git a/NA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf b/NA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf deleted file mode 100644 index c73c389c..00000000 --- a/NA_PROD/management_zone/cd_bmw-points-push-notifications-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_bmw-points-push-notifications-service.id = -5654211033860017535 -resource "dynatrace_management_zone" "CD_bmw-points-push-notifications-service" { - name = "CD_bmw-points-push-notifications-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "bmw-points-push-notifications-service" - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } - 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 = "bmw-points-push-notifications-service" - } - } - } - } -} diff --git a/NA_PROD/management_zone/cd_chargenow-enabler-service.tf b/NA_PROD/management_zone/cd_chargenow-enabler-service.tf deleted file mode 100644 index 0814d4f1..00000000 --- a/NA_PROD/management_zone/cd_chargenow-enabler-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_chargenow-enabler-service.id = -6053346950193801099 -resource "dynatrace_management_zone" "CD_chargenow-enabler-service" { - name = "CD_chargenow-enabler-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "chargenow-enabler-service" - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } - 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 = "chargenow-enabler-service" - } - } - } - } -} diff --git a/NA_PROD/management_zone/cd_imiles-service.tf b/NA_PROD/management_zone/cd_imiles-service.tf deleted file mode 100644 index c4c50fe5..00000000 --- a/NA_PROD/management_zone/cd_imiles-service.tf +++ /dev/null @@ -1,95 +0,0 @@ -# DEFINE dynatrace_management_zone.CD_imiles-service.id = -1184070598749888790 -resource "dynatrace_management_zone" "CD_imiles-service" { - name = "CD_imiles-service" - rules { - type = "CLOUD_APPLICATION" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "CLOUD_APPLICATION_NAME" - } - string { - case_sensitive = true - # negate = false - operator = "CONTAINS" - value = "imiles-service" - } - } - } - 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 = "imiles-service" - } - } - } - rules { - type = "HOST" - enabled = true - conditions { - key { - type = "STATIC" - attribute = "HOST_TAGS" - } - tag { - # negate = false - operator = "EQUALS" - value { - context = "CONTEXTLESS" - key = "Component" - value = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } - 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 = "imiles-service" - } - } - } - } -}