diff --git a/CN_PROD/alerting/cd_call-handling-backends_ngtp_ngtp-cs.tf b/CN_PROD/alerting/cd_call-handling-backends_ngtp_ngtp-cs.tf new file mode 100644 index 00000000..5d243b48 --- /dev/null +++ b/CN_PROD/alerting/cd_call-handling-backends_ngtp_ngtp-cs.tf @@ -0,0 +1,44 @@ +# DEFINE dynatrace_alerting.CD_Call-Handling-Backends_NGTP_NGTP-CS.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ4YzhjYmU1Ni02YWNlLTQ4NDQtYjgzZS1iOWIyODIyMzU2Yje-71TeFdrerQ +data "dynatrace_management_zone" "CD_Call-Handling-Backends_NGTP_NGTP-CS"{ name="CD_Call-Handling-Backends" } +resource "dynatrace_alerting" "CD_Call-Handling-Backends_NGTP_NGTP-CS" { + name = "CD_Call-Handling-Backends NGTP/NGTP-CS" + management_zone = data.dynatrace_management_zone.CD_Call-Handling-Backends_NGTP_NGTP-CS.id + rules { + rule { + delay_in_minutes = 0 + include_mode = "INCLUDE_ANY" + severity_level = "AVAILABILITY" + tags = [ "Component:NGTP", "Component:NGTP-CS" ] + } + rule { + delay_in_minutes = 10 + include_mode = "INCLUDE_ANY" + severity_level = "CUSTOM_ALERT" + tags = [ "Component:NGTP", "Component:NGTP-CS" ] + } + rule { + delay_in_minutes = 10 + include_mode = "INCLUDE_ANY" + severity_level = "ERRORS" + tags = [ "Component:NGTP", "Component:NGTP-CS" ] + } + rule { + delay_in_minutes = 0 + include_mode = "INCLUDE_ANY" + severity_level = "MONITORING_UNAVAILABLE" + tags = [ "Component:NGTP", "Component:NGTP-CS" ] + } + rule { + delay_in_minutes = 30 + include_mode = "INCLUDE_ANY" + severity_level = "PERFORMANCE" + tags = [ "Component:NGTP", "Component:NGTP-CS" ] + } + rule { + delay_in_minutes = 30 + include_mode = "INCLUDE_ANY" + severity_level = "RESOURCE_CONTENTION" + tags = [ "Component:NGTP", "Component:NGTP-CS" ] + } + } +} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_call-handling-backends_-_cn_e2e_prod.tf b/CN_PROD/dashboard/cd_call-handling-backends_-_cn_e2e_prod.tf new file mode 100644 index 00000000..32b2c777 --- /dev/null +++ b/CN_PROD/dashboard/cd_call-handling-backends_-_cn_e2e_prod.tf @@ -0,0 +1,1107 @@ +# DEFINE dynatrace_dashboard.CD_Call-Handling-Backends_-_CN_E2E_PROD.id = ff5c184c-0664-4cec-be55-5bf100fe0dc0 +data "dynatrace_management_zone" "CD_Call-Handling-Backends_-_CN_E2E_PROD"{ name="CD_Call-Handling-Backends" } +resource "dynatrace_dashboard" "CD_Call-Handling-Backends_-_CN_E2E_PROD" { + dashboard_metadata { + name = "CD_Call-Handling-Backends - CN E2E / PROD" + owner = "katharina.kiechle@bmw.de" + preset = true + shared = true + tags = [ "CD_Call-Handling-Backends" ] + filter { + management_zone { + name = "CD_Call-Handling-Backends" + id = data.dynatrace_management_zone.CD_Call-Handling-Backends_-_CN_E2E_PROD.id + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 912 + top = 380 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Failure rate (HTTP 4xx/5xx errors)" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1595276148986 + } + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.rate" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.rate" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Host health" + chart_visible = true + configured = true + tile_type = "HOSTS" + bounds { + height = 228 + left = 152 + top = 76 + width = 266 + } + } + tile { + name = "Database health" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + bounds { + height = 228 + left = 684 + top = 76 + width = 266 + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + bounds { + height = 152 + left = 1216 + top = 114 + width = 152 + } + filter { + timeframe = "-24h to now" + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + bounds { + height = 228 + left = 418 + top = 76 + width = 266 + } + 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:Call-Handling-Backends", "Environment", "Component" ] + } + } + } + } + } + tile { + name = "ACDS - E2E" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 1558 + width = 760 + } + } + tile { + name = "APPCALL (OS 3.11) - E2E" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 1900 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 152 + top = 1596 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:ACDS" ] + } + } + } + } + } + tile { + name = "APPCALL (OS 3.11) - PROD" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 912 + top = 1900 + width = 760 + } + } + tile { + name = "ACDS - PROD" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 912 + top = 1558 + width = 760 + } + } + tile { + name = "Overall Health (E2E / PROD)" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 38 + width = 1520 + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 152 + top = 684 + width = 1520 + } + } + tile { + name = "ECS - E2E" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 874 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 152 + top = 912 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:ECS", "Environment:E2E" ] + } + } + } + } + } + tile { + name = "EVNS - E2E" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 2242 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 152 + top = 2280 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:EVNS" ] + } + } + } + } + } + tile { + name = "XCS - E2E" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 1216 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 152 + top = 1254 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:XCS", "Environment:E2E" ] + } + } + } + } + } + tile { + name = "EVNS - PROD" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 912 + top = 2242 + width = 760 + } + } + tile { + name = "ECS - PROD" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 912 + top = 874 + width = 760 + } + } + tile { + name = "XCS - PROD" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 912 + top = 1216 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 912 + top = 912 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:ECS", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 912 + top = 1254 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:XCS", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 912 + top = 1596 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:PROD", "Component:ACDS" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 912 + top = 2280 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:EVNS", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 152 + top = 380 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Failure rate (HTTP 4xx/5xx errors)" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1595276148986 + } + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.rate" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.rate" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E" ] + } + } + } + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 152 + top = 304 + width = 1520 + } + } + tile { + name = "Failure rate - E2E (HTTP 4xx/5xx errors)" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 152 + top = 342 + width = 760 + } + } + tile { + name = "Failure rate - PROD (HTTP 4xx/5xx errors)" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 912 + top = 342 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 912 + top = 1938 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:PROD", "Component:APPCALL" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 152 + top = 1938 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:APPCALL" ] + } + } + } + } + } + tile { + name = "ECS - PROD is currently logging a lot of FALSE POSITIVE errors. We are currently working on improving the logging. ECS is in a healthy state and is handling all events correctly. " + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 114 + top = 760 + width = 1710 + } + } +} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_e2e.tf b/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_e2e.tf new file mode 100644 index 00000000..99a29a5d --- /dev/null +++ b/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_e2e.tf @@ -0,0 +1,787 @@ +# DEFINE dynatrace_dashboard.CD_Call-Handling-Backends_-_NGTP_E2E.id = 8b8f63ff-197a-44b7-8b7d-6333bb1ee9f5 +data "dynatrace_management_zone" "CD_Call-Handling-Backends_-_NGTP_E2E"{ name="CD_Call-Handling-Backends" } +resource "dynatrace_dashboard" "CD_Call-Handling-Backends_-_NGTP_E2E" { + dashboard_metadata { + name = "CD_Call-Handling-Backends - NGTP E2E" + owner = "andreas.wg.werner@partner.bmw.de" + # preset = false + shared = true + tags = [ "CD_Call-Handling-Backends", "NGTP", "E2E" ] + } + tile { + name = "Health NGTP E2E" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 38 + width = 1520 + } + } + tile { + name = "cc_emea_prod_b2vngtp_b2vngtp" + assigned_entities = [ "SERVICE-41070D3E7CBFD929" ] + configured = true + tile_type = "DATABASE" + bounds { + height = 152 + left = 38 + top = 494 + width = 304 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + bounds { + height = 152 + left = 190 + top = 76 + width = 228 + } + filter_config { + type = "SERVICE" + custom_name = "Services - NGTP" + default_name = "Services - NGTP" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:NGTP" ] + } + } + } + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + bounds { + height = 152 + left = 38 + top = 76 + width = 152 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + bounds { + height = 228 + left = 342 + top = 494 + width = 266 + } + filter_config { + type = "DATABASE" + custom_name = "Databases" + default_name = "Databases" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "DATABASE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:NGTP" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "HOSTS" + bounds { + height = 152 + left = 418 + top = 76 + width = 190 + } + filter_config { + type = "HOST" + custom_name = "Hosts" + default_name = "Hosts" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "HOST" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:NGTP" ] + } + } + } + } + } + tile { + name = ":8444 - nginx - prod" + assigned_entities = [ "SERVICE-7442D3FFC026D78B" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 228 + left = 456 + top = 722 + width = 1102 + } + } + tile { + name = "MQSession$FacadeMessageListener - b*vngtp - prod" + assigned_entities = [ "SERVICE-CB40D9F20953660F" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 38 + top = 1292 + width = 1520 + } + } + tile { + name = "TriggerServiceResource - b*vngtp - prod" + assigned_entities = [ "SERVICE-3C3E4512E0DBAC60" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 760 + top = 2280 + width = 798 + } + } + tile { + name = "Service or request" + assigned_entities = [ "SERVICE-2A295A7B8A6339F9" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 38 + top = 2280 + width = 722 + } + } + tile { + name = "Markdown" + configured = true + markdown = "---" + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 38 + top = 1558 + width = 1520 + } + } + tile { + name = "FROM Car (COM or COM-FE))" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 1596 + width = 1520 + } + } + tile { + name = "dsptWeb (/dspt) - b*vngtp - prod" + assigned_entities = [ "SERVICE-926A09721B36BD0D" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 304 + left = 38 + top = 1634 + width = 1520 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 342 + left = 456 + top = 950 + width = 1102 + } + filter_config { + type = "MIXED" + custom_name = "NGTP - HttpStatus" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "null¦Dimension»499»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616497026732 + } + config { + custom_color = "#1eb509" + key = "null¦Dimension»200»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616496860650 + } + config { + custom_color = "#7c38a1" + key = "null¦Dimension»404»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616497032728 + } + config { + custom_color = "#ef651f" + key = "null¦Dimension»422»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616496878846 + } + config { + custom_color = "#ff0000" + key = "null¦Dimension»500»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616496884320 + } + } + series { + type = "LINE" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "calc:service.ngtphttpstatus" + # sort_ascending = false + sort_column = true + dimension { + name = "Dimension" + # entity_dimension = false + id = "1" + } + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:NGTP" ] + } + } + } + } + } + tile { + name = "Service or request" + assigned_entities = [ "SERVICE-777D74AD708788E1" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 38 + top = 2014 + width = 1520 + } + } + tile { + name = "Markdown" + configured = true + markdown = "---" + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 38 + top = 1938 + width = 1520 + } + } + tile { + name = "Service to Car OR Service to Service" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 1976 + width = 1520 + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 228 + left = 608 + top = 494 + width = 456 + } + filter_config { + type = "MIXED" + custom_name = "Database Connections" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008000" + key = "nullbuiltin:service.dbChildCallCount|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509978770 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.dbconnections.total|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616509971749 + } + config { + custom_color = "#ff0000" + key = "nullbuiltin:service.dbconnections.failure|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509946282 + } + } + series { + type = "LINE" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.dbconnections.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.dbconnections.failure" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:NGTP" ] + } + } + } + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 266 + left = 38 + top = 228 + width = 570 + } + filter_config { + type = "MIXED" + custom_name = "Memory and CPU in %" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "CONTAINER_GROUP_INSTANCE" + metric = "builtin:containers.memory.usagePercent" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.container_group_instance" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "CONTAINER_GROUP_INSTANCE" + metric = "builtin:containers.cpu.usagePercent" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.container_group_instance" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "CONTAINER_GROUP_INSTANCE" + match { + key = "CONTAINER_GROUP_INSTANCE_BY_CLOUD_APPLICATION" + values = [ "CLOUD_APPLICATION-8994A2AE49484B39٭b2vngtp" ] + } + } + } + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 418 + left = 608 + top = 76 + width = 950 + } + filter { + timeframe = "-6h" + } + filter_config { + type = "MIXED" + custom_name = "Memory Usage over 6 hours" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008000" + key = "PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519061281 + } + config { + custom_color = "#1ca33b" + key = "PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519241366 + } + config { + custom_color = "#3bcc0e" + key = "PROCESS_GROUP_INSTANCE-7D0873EADCFA457A¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-7D0873EADCFA457A»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519208422 + } + config { + custom_color = "#5b8018" + key = "PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519172758 + } + config { + custom_color = "#71a314" + key = "PROCESS_GROUP_INSTANCE-48EE80208C42B359¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-48EE80208C42B359»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519053665 + } + config { + custom_color = "#a3f211" + key = "PROCESS_GROUP_INSTANCE-30153D347247B3B1¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-30153D347247B3B1»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519101647 + } + config { + custom_color = "#a4d152" + key = "PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519145559 + } + config { + custom_color = "#c9a000" + key = "PROCESS_GROUP_INSTANCE-7D0873EADCFA457A¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-7D0873EADCFA457A»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519568831 + } + config { + custom_color = "#ef651f" + key = "PROCESS_GROUP_INSTANCE-48EE80208C42B359¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-48EE80208C42B359»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519550395 + } + config { + custom_color = "#f5d30f" + key = "PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519565752 + } + config { + custom_color = "#ff0000" + key = "PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519546165 + } + config { + custom_color = "#ffa500" + key = "PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519577989 + } + config { + custom_color = "#ffa86c" + key = "PROCESS_GROUP_INSTANCE-30153D347247B3B1¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-30153D347247B3B1»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519554415 + } + config { + custom_color = "#fff29a" + key = "PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519561585 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "PROCESS_GROUP_INSTANCE" + metric = "builtin:tech.jvm.memory.runtime.free" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.process_group_instance" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "PROCESS_GROUP_INSTANCE" + metric = "builtin:tech.jvm.memory.runtime.total" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.process_group_instance" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "PROCESS_GROUP_INSTANCE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E", "Component:NGTP" ] + } + } + } + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 228 + left = 1064 + top = 494 + width = 494 + } + filter_config { + type = "MIXED" + custom_name = "Number of Calls to Database by Service" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008000" + key = "nullbuiltin:service.dbChildCallCount|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509978770 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.dbconnections.total|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616509971749 + } + config { + custom_color = "#ff0000" + key = "nullbuiltin:service.dbconnections.failure|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509946282 + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.dbChildCallCount" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:E2E" ] + } + } + } + } + } + tile { + name = "Errors Returned From NGTP" + configured = true + custom_name = "Data explorer results" + tile_type = "DATA_EXPLORER" + unknowns = jsonencode({ + "metricExpressions": [ + "resolution=Inf\u0026(calc:service.ngtphttpstatus:filter(and(or(in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"NGTP~\")\")),in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"Environment:E2E~\")\"))),or(eq(Dimension,\"404\"),eq(Dimension,\"500\"),eq(Dimension,\"400\"),eq(Dimension,\"422\"),eq(Dimension,\"499\")),or(in(\"dt.entity.service\",entitySelector(\"type(service),softwareTechnologies(~\"GLASSFISH~\")\"))))):splitBy(\"dt.entity.service\",Dimension):sum:auto:sort(value(sum,descending)):limit(10)):limit(100):names" + ], + "queries": [ + { + "enabled": true, + "filterBy": { + "criteria": [], + "filterOperator": "AND", + "nestedFilters": [ + { + "criteria": [ + { + "evaluator": "IN", + "value": "NGTP" + }, + { + "evaluator": "IN", + "value": "Environment:E2E" + } + ], + "filter": "dt.entity.service", + "filterOperator": "OR", + "filterType": "TAG", + "nestedFilters": [] + }, + { + "criteria": [ + { + "evaluator": "IN", + "value": "GLASSFISH" + } + ], + "entityAttribute": "softwareTechnologies", + "filter": "dt.entity.service", + "filterOperator": "OR", + "filterType": "ENTITY_ATTRIBUTE", + "nestedFilters": [] + }, + { + "criteria": [ + { + "evaluator": "EQ", + "value": "500" + }, + { + "evaluator": "EQ", + "value": "422" + }, + { + "evaluator": "EQ", + "value": "400" + }, + { + "evaluator": "EQ", + "value": "404" + }, + { + "evaluator": "EQ", + "value": "499" + } + ], + "filter": "Dimension", + "filterOperator": "OR", + "filterType": "DIMENSION", + "nestedFilters": [] + } + ] + }, + "id": "A", + "limit": 10, + "metric": "calc:service.ngtphttpstatus", + "metricSelector": "calc:service.ngtphttpstatus:fold:filter(and(in(\"dt.entity.service\",entitySelector(\"type(service),softwareTechnologies(~\"GLASSFISH~\")\")),or(eq(Dimension,499),eq(Dimension,422),eq(Dimension,400),eq(Dimension,404),eq(Dimension,500)),or(in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"Environment:E2E~\")\")),in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"NGTP~\")\"))))):splitBy(\"dt.entity.service\",Dimension):sum:auto:sort(value(avg,descending)):limit(10)", + "rate": "NONE", + "spaceAggregation": "SUM", + "splitBy": [ + "dt.entity.service", + "Dimension" + ], + "timeAggregation": "DEFAULT" + } + ], + "visualConfig": { + "axes": { + "xAxis": { + "visible": true + }, + "yAxes": [] + }, + "global": {}, + "rules": [ + { + "matcher": "A:", + "properties": { + "color": "DEFAULT", + "seriesType": "LINE" + }, + "seriesOverrides": [] + } + ], + "thresholds": [ + { + "axisTarget": "LEFT", + "columnId": "NGTP - HttpStatus", + "rules": [ + { + "color": "#7dc540" + }, + { + "color": "#f5d30f" + }, + { + "color": "#dc172a" + } + ], + "visible": true + } + ], + "type": "TOP_LIST" + } + }) + bounds { + height = 570 + left = 38 + top = 722 + width = 418 + } + } +} +# DEFINE dynatrace_dashboard_sharing.CD_Call-Handling-Backends_-_NGTP_E2E.id = 8b8f63ff-197a-44b7-8b7d-6333bb1ee9f5 +resource "dynatrace_dashboard_sharing" "CD_Call-Handling-Backends_-_NGTP_E2E" { + enabled = true + dashboard_id = dynatrace_dashboard.CD_Call-Handling-Backends_-_NGTP_E2E.id + # preset = false + permissions { + permission { + type = "ALL" + level = "VIEW" + } + permission { + type = "USER" + id = "rainer.wawer@partner.bmw.de" + level = "EDIT" + } + } +} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_ngtp-cs.tf b/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_ngtp-cs.tf new file mode 100644 index 00000000..499ed335 --- /dev/null +++ b/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_ngtp-cs.tf @@ -0,0 +1,547 @@ +# DEFINE dynatrace_dashboard.CD_Call-Handling-Backends_-_NGTP_NGTP-CS.id = 122b6dc7-f2e1-4dd4-91a9-c8f77a1b6290 +data "dynatrace_management_zone" "CD_Call-Handling-Backends_-_NGTP_NGTP-CS"{ name="CD_Call-Handling-Backends" } +resource "dynatrace_dashboard" "CD_Call-Handling-Backends_-_NGTP_NGTP-CS" { + dashboard_metadata { + name = "CD_Call-Handling-Backends - NGTP/NGTP-CS" + owner = "andreas.wg.werner@partner.bmw.de" + # preset = false + # shared = false + tags = [ "CD_Call-Handling-Backends" ] + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 798 + top = 380 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Failure rate (HTTP 4xx/5xx errors)" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1595276148986 + } + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.rate" + # sort_ascending = false + # sort_column = false + } + 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:NGTP-CS" ] + } + } + } + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + bounds { + height = 152 + left = 1558 + top = 114 + width = 152 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + bounds { + height = 228 + left = 38 + top = 76 + width = 228 + } + filter_config { + type = "SERVICE" + custom_name = "Services - NGTP" + default_name = "Services - NGTP" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP" ] + } + } + } + } + } + tile { + name = "Overall Health (E2E / PROD)" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 38 + width = 1520 + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 38 + top = 684 + width = 1520 + } + } + tile { + name = "Response time - NGTP" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 722 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 38 + top = 760 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:NGTP" ] + } + } + } + } + } + tile { + name = "Response time - NGTP-CS" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 798 + top = 722 + width = 760 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 798 + top = 760 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Response time, Throughput and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = 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:NGTP-CS", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 304 + left = 38 + top = 380 + width = 760 + } + filter_config { + type = "MIXED" + custom_name = "Failure rate (HTTP 4xx/5xx errors)" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1595276148986 + } + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.rate" + # sort_ascending = false + # sort_column = false + } + 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:NGTP" ] + } + } + } + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 38 + top = 304 + width = 1520 + } + } + tile { + name = "Failure rate - NGTP (HTTP 4xx/5xx errors)" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 342 + width = 760 + } + } + tile { + name = "Failure rate - NGTP-CS (HTTP 4xx/5xx errors)" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 798 + top = 342 + width = 760 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "HOSTS" + bounds { + height = 228 + left = 266 + top = 76 + width = 228 + } + filter_config { + type = "HOST" + custom_name = "Hosts - NGTP" + default_name = "Hosts - NGTP" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "HOST" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "HOSTS" + bounds { + height = 228 + left = 1026 + top = 76 + width = 228 + } + filter_config { + type = "HOST" + custom_name = "Hosts - NGTP-CS" + default_name = "Hosts - NGTP-CS" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "HOST" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP-CS" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + bounds { + height = 228 + left = 798 + top = 76 + width = 228 + } + filter_config { + type = "SERVICE" + custom_name = "Services - NGTP-CS" + default_name = "Services - NGTP-CS" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP-CS" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + bounds { + height = 228 + left = 494 + top = 76 + width = 228 + } + filter_config { + type = "DATABASE" + custom_name = "Databases - NGTP" + default_name = "Databases - NGTP" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "DATABASE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + bounds { + height = 228 + left = 1254 + top = 76 + width = 228 + } + filter_config { + type = "DATABASE" + custom_name = "Databases - NGTP-CS" + default_name = "Databases - NGTP-CS" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "DATABASE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP" ] + } + } + } + } + } +} +# DEFINE dynatrace_dashboard_sharing.CD_Call-Handling-Backends_-_NGTP_NGTP-CS.id = 122b6dc7-f2e1-4dd4-91a9-c8f77a1b6290 +resource "dynatrace_dashboard_sharing" "CD_Call-Handling-Backends_-_NGTP_NGTP-CS" { + # enabled = false + dashboard_id = dynatrace_dashboard.CD_Call-Handling-Backends_-_NGTP_NGTP-CS.id + # preset = false +} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_prod.tf b/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_prod.tf new file mode 100644 index 00000000..f0ab90c2 --- /dev/null +++ b/CN_PROD/dashboard/cd_call-handling-backends_-_ngtp_prod.tf @@ -0,0 +1,787 @@ +# DEFINE dynatrace_dashboard.CD_Call-Handling-Backends_-_NGTP_PROD.id = 05bff4c9-f197-4109-acff-2acae823ee3c +data "dynatrace_management_zone" "CD_Call-Handling-Backends_-_NGTP_PROD"{ name="CD_Call-Handling-Backends" } +resource "dynatrace_dashboard" "CD_Call-Handling-Backends_-_NGTP_PROD" { + dashboard_metadata { + name = "CD_Call-Handling-Backends - NGTP PROD" + owner = "andreas.wg.werner@partner.bmw.de" + # preset = false + shared = true + tags = [ "CD_Call-Handling-Backends", "NGTP", "PROD" ] + } + tile { + name = "Health NGTP PROD" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 38 + width = 1520 + } + } + tile { + name = "cc_emea_prod_b2vngtp_b2vngtp" + assigned_entities = [ "SERVICE-DD999720CDA5338E" ] + configured = true + tile_type = "DATABASE" + bounds { + height = 152 + left = 38 + top = 494 + width = 304 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + bounds { + height = 152 + left = 190 + top = 76 + width = 228 + } + filter_config { + type = "SERVICE" + custom_name = "Services - NGTP" + default_name = "Services - NGTP" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + bounds { + height = 152 + left = 38 + top = 76 + width = 152 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + bounds { + height = 228 + left = 342 + top = 494 + width = 266 + } + 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:NGTP", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "HOSTS" + bounds { + height = 152 + left = 418 + top = 76 + 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:NGTP", "Environment:PROD" ] + } + } + } + } + } + tile { + name = ":8444 - nginx - prod" + assigned_entities = [ "SERVICE-AD43478AD44DFCBA" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 228 + left = 456 + top = 722 + width = 1102 + } + } + tile { + name = "MQSession$FacadeMessageListener - b*vngtp - prod" + assigned_entities = [ "SERVICE-DEAA8039B925F8DC" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 38 + top = 1292 + width = 1520 + } + } + tile { + name = "TriggerServiceResource - b*vngtp - prod" + assigned_entities = [ "SERVICE-CD3342EC1903B2AD" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 760 + top = 2280 + width = 798 + } + } + tile { + name = "Service or request" + assigned_entities = [ "SERVICE-93558F735521D7DC" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 38 + top = 2280 + width = 722 + } + } + tile { + name = "Markdown" + configured = true + markdown = "---" + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 38 + top = 1558 + width = 1520 + } + } + tile { + name = "FROM Car (COM or COM-FE))" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 1596 + width = 1520 + } + } + tile { + name = "dsptWeb (/dspt) - b*vngtp - prod" + assigned_entities = [ "SERVICE-15FBBA1BEFDF432B" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 304 + left = 38 + top = 1634 + width = 1520 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 342 + left = 456 + top = 950 + width = 1102 + } + filter_config { + type = "MIXED" + custom_name = "NGTP - HttpStatus" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "null¦Dimension»499»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616497026732 + } + config { + custom_color = "#1eb509" + key = "null¦Dimension»200»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616496860650 + } + config { + custom_color = "#7c38a1" + key = "null¦Dimension»404»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616497032728 + } + config { + custom_color = "#ef651f" + key = "null¦Dimension»422»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616496878846 + } + config { + custom_color = "#ff0000" + key = "null¦Dimension»500»falsecalc:service.ngtphttpstatus|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616496884320 + } + } + series { + type = "LINE" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "calc:service.ngtphttpstatus" + # sort_ascending = false + sort_column = true + dimension { + name = "Dimension" + # entity_dimension = false + id = "1" + } + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Service or request" + assigned_entities = [ "SERVICE-4840026A3DB7A61D" ] + configured = true + tile_type = "SERVICE_VERSATILE" + bounds { + height = 266 + left = 38 + top = 2014 + width = 1520 + } + } + tile { + name = "Markdown" + configured = true + markdown = "---" + tile_type = "MARKDOWN" + bounds { + height = 38 + left = 38 + top = 1938 + width = 1520 + } + } + tile { + name = "Service to Car OR Service to Service" + configured = true + tile_type = "HEADER" + bounds { + height = 38 + left = 38 + top = 1976 + width = 1520 + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 228 + left = 608 + top = 494 + width = 456 + } + filter_config { + type = "MIXED" + custom_name = "Database Connections" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008000" + key = "nullbuiltin:service.dbChildCallCount|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509978770 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.dbconnections.total|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616509971749 + } + config { + custom_color = "#ff0000" + key = "nullbuiltin:service.dbconnections.failure|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509946282 + } + } + series { + type = "LINE" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.dbconnections.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.dbconnections.failure" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "Errors Returned From NGTP" + configured = true + custom_name = "Data explorer results" + tile_type = "DATA_EXPLORER" + unknowns = jsonencode({ + "metricExpressions": [ + "resolution=Inf\u0026(calc:service.ngtphttpstatus:filter(and(or(eq(Dimension,\"404\"),eq(Dimension,\"500\"),eq(Dimension,\"400\"),eq(Dimension,\"422\"),eq(Dimension,\"499\")),or(in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"Environment:PROD~\")\")),in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"Component:NGTP~\")\"))),or(in(\"dt.entity.service\",entitySelector(\"type(service),softwareTechnologies(~\"GLASSFISH~\")\"))))):splitBy(\"dt.entity.service\",Dimension):sum:auto:sort(value(sum,descending)):limit(10)):limit(100):names" + ], + "queries": [ + { + "enabled": true, + "filterBy": { + "criteria": [], + "filterOperator": "AND", + "nestedFilters": [ + { + "criteria": [ + { + "evaluator": "IN", + "value": "GLASSFISH" + } + ], + "entityAttribute": "softwareTechnologies", + "filter": "dt.entity.service", + "filterOperator": "OR", + "filterType": "ENTITY_ATTRIBUTE", + "nestedFilters": [] + }, + { + "criteria": [ + { + "evaluator": "EQ", + "value": "404" + }, + { + "evaluator": "EQ", + "value": "500" + }, + { + "evaluator": "EQ", + "value": "422" + }, + { + "evaluator": "EQ", + "value": "499" + }, + { + "evaluator": "EQ", + "value": "400" + } + ], + "filter": "Dimension", + "filterOperator": "OR", + "filterType": "DIMENSION", + "nestedFilters": [] + }, + { + "criteria": [ + { + "evaluator": "IN", + "value": "Environment:PROD" + }, + { + "evaluator": "IN", + "value": "Component:NGTP" + } + ], + "filter": "dt.entity.service", + "filterOperator": "OR", + "filterType": "TAG", + "nestedFilters": [] + } + ] + }, + "id": "A", + "limit": 10, + "metric": "calc:service.ngtphttpstatus", + "metricSelector": "calc:service.ngtphttpstatus:fold:filter(and(in(\"dt.entity.service\",entitySelector(\"type(service),softwareTechnologies(~\"GLASSFISH~\")\")),or(eq(Dimension,500),eq(Dimension,404),eq(Dimension,499),eq(Dimension,400),eq(Dimension,422)),or(in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"Component:NGTP~\")\")),in(\"dt.entity.service\",entitySelector(\"type(service),tag(~\"Environment:PROD~\")\"))))):splitBy(\"dt.entity.service\",Dimension):sum:auto:sort(value(avg,descending)):limit(10)", + "rate": "NONE", + "spaceAggregation": "SUM", + "splitBy": [ + "dt.entity.service", + "Dimension" + ], + "timeAggregation": "DEFAULT" + } + ], + "visualConfig": { + "axes": { + "xAxis": { + "visible": true + }, + "yAxes": [] + }, + "global": {}, + "rules": [ + { + "matcher": "A:", + "properties": { + "color": "DEFAULT", + "seriesType": "LINE" + }, + "seriesOverrides": [] + } + ], + "thresholds": [ + { + "axisTarget": "LEFT", + "columnId": "NGTP - HttpStatus", + "rules": [ + { + "color": "#7dc540" + }, + { + "color": "#f5d30f" + }, + { + "color": "#dc172a" + } + ], + "visible": true + } + ], + "type": "TOP_LIST" + } + }) + bounds { + height = 570 + left = 38 + top = 722 + width = 418 + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 266 + left = 38 + top = 228 + width = 570 + } + filter_config { + type = "MIXED" + custom_name = "Memory and CPU in %" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "CONTAINER_GROUP_INSTANCE" + metric = "builtin:containers.memory.usagePercent" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.container_group_instance" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "CONTAINER_GROUP_INSTANCE" + metric = "builtin:containers.cpu.usagePercent" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.container_group_instance" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "CONTAINER_GROUP_INSTANCE" + match { + key = "CONTAINER_GROUP_INSTANCE_BY_CLOUD_APPLICATION" + values = [ "CLOUD_APPLICATION-503FFEBC31A2F97E٭b2vngtp" ] + } + } + } + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 418 + left = 608 + top = 76 + width = 950 + } + filter { + timeframe = "-6h" + } + filter_config { + type = "MIXED" + custom_name = "Memory Usage over 6 hours" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008000" + key = "PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519061281 + } + config { + custom_color = "#1ca33b" + key = "PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519241366 + } + config { + custom_color = "#3bcc0e" + key = "PROCESS_GROUP_INSTANCE-7D0873EADCFA457A¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-7D0873EADCFA457A»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519208422 + } + config { + custom_color = "#5b8018" + key = "PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519172758 + } + config { + custom_color = "#71a314" + key = "PROCESS_GROUP_INSTANCE-48EE80208C42B359¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-48EE80208C42B359»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519053665 + } + config { + custom_color = "#a3f211" + key = "PROCESS_GROUP_INSTANCE-30153D347247B3B1¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-30153D347247B3B1»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519101647 + } + config { + custom_color = "#a4d152" + key = "PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206»truebuiltin:tech.jvm.memory.gc.collectionTime|NONE|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519145559 + } + config { + custom_color = "#c9a000" + key = "PROCESS_GROUP_INSTANCE-7D0873EADCFA457A¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-7D0873EADCFA457A»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519568831 + } + config { + custom_color = "#ef651f" + key = "PROCESS_GROUP_INSTANCE-48EE80208C42B359¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-48EE80208C42B359»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519550395 + } + config { + custom_color = "#f5d30f" + key = "PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-E057BBD4A9785BF5»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519565752 + } + config { + custom_color = "#ff0000" + key = "PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-C1C6DBEBBADEEDFB»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519546165 + } + config { + custom_color = "#ffa500" + key = "PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-283DBF2FE2707EDE»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519577989 + } + config { + custom_color = "#ffa86c" + key = "PROCESS_GROUP_INSTANCE-30153D347247B3B1¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-30153D347247B3B1»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519554415 + } + config { + custom_color = "#fff29a" + key = "PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206¦PROCESS_GROUP_INSTANCE»PROCESS_GROUP_INSTANCE-15C9CBB4EF3A0206»truebuiltin:tech.jvm.memory.runtime.free|AVG|TOTAL|LINE|PROCESS_GROUP_INSTANCE" + last_modified = 1616519561585 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "PROCESS_GROUP_INSTANCE" + metric = "builtin:tech.jvm.memory.runtime.free" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.process_group_instance" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "PROCESS_GROUP_INSTANCE" + metric = "builtin:tech.jvm.memory.runtime.total" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.process_group_instance" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "PROCESS_GROUP_INSTANCE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP", "Environment:PROD" ] + } + } + } + } + } + tile { + name = "" + configured = true + tile_type = "CUSTOM_CHARTING" + bounds { + height = 228 + left = 1064 + top = 494 + width = 494 + } + filter_config { + type = "MIXED" + custom_name = "Number of Calls to Database by Service" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008000" + key = "nullbuiltin:service.dbChildCallCount|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509978770 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.dbconnections.total|NONE|TOTAL|LINE|SERVICE" + last_modified = 1616509971749 + } + config { + custom_color = "#ff0000" + key = "nullbuiltin:service.dbconnections.failure|NONE|TOTAL|BAR|SERVICE" + last_modified = 1616509946282 + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.dbChildCallCount" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:NGTP", "Environment:PROD" ] + } + } + } + } + } +} +# DEFINE dynatrace_dashboard_sharing.CD_Call-Handling-Backends_-_NGTP_PROD.id = 05bff4c9-f197-4109-acff-2acae823ee3c +resource "dynatrace_dashboard_sharing" "CD_Call-Handling-Backends_-_NGTP_PROD" { + enabled = true + dashboard_id = dynatrace_dashboard.CD_Call-Handling-Backends_-_NGTP_PROD.id + # preset = false + permissions { + permission { + type = "ALL" + level = "VIEW" + } + permission { + type = "USER" + id = "rainer.wawer@partner.bmw.de" + level = "EDIT" + } + } +} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_call-handling-backends_prod.tf b/CN_PROD/dashboard/cd_call-handling-backends_prod.tf new file mode 100644 index 00000000..43f72827 --- /dev/null +++ b/CN_PROD/dashboard/cd_call-handling-backends_prod.tf @@ -0,0 +1,294 @@ +# DEFINE dynatrace_dashboard.CD_Call-Handling-Backends_PROD.id = 70934e58-36d6-41e3-9382-7289efbb0c3d +data "dynatrace_management_zone" "CD_Call-Handling-Backends_PROD"{ name="CD_Call-Handling-Backends" } +resource "dynatrace_dashboard" "CD_Call-Handling-Backends_PROD" { + dashboard_metadata { + name = "CD_Call-Handling-Backends PROD" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "Call-Handling-Backends" ] + 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:Call-Handling-Backends", "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_Call-Handling-Backends" + id = data.dynatrace_management_zone.CD_Call-Handling-Backends_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:Call-Handling-Backends", "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:Call-Handling-Backends", "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:Call-Handling-Backends", "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:Call-Handling-Backends", "Environment:PROD" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/CN_PROD/management_zone/cd_call-handling-backends.tf b/CN_PROD/management_zone/cd_call-handling-backends.tf new file mode 100644 index 00000000..b48dabd3 --- /dev/null +++ b/CN_PROD/management_zone/cd_call-handling-backends.tf @@ -0,0 +1,95 @@ +# DEFINE dynatrace_management_zone.CD_Call-Handling-Backends.id = 9047946978645254989 +resource "dynatrace_management_zone" "CD_Call-Handling-Backends" { + name = "CD_Call-Handling-Backends" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "Call-Handling-Backends" + } + } + } + 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 = "Call-Handling-Backends" + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "Call-Handling-Backends" + } + } + } + } + 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 = "Call-Handling-Backends" + } + } + } + } + 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 = "Call-Handling-Backends" + } + } + } + } +}