diff --git a/CN_PREPROD/alerting/cd_remoteservices_int.tf b/CN_PREPROD/alerting/cd_remoteservices_int.tf new file mode 100644 index 00000000..a858c8db --- /dev/null +++ b/CN_PREPROD/alerting/cd_remoteservices_int.tf @@ -0,0 +1,38 @@ +# DEFINE dynatrace_alerting.CD_RemoteServices_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRkOWQ2MGM4ZS0zMGU5LTQ1OTUtOGE0NS04NjczYjAzZGIzNGO-71TeFdrerQ +data "dynatrace_management_zone" "CD_RemoteServices_INT"{ name="CD_RemoteServices" } +resource "dynatrace_alerting" "CD_RemoteServices_INT" { + name = "CD_RemoteServices INT" + management_zone = data.dynatrace_management_zone.CD_RemoteServices_INT.id + rules { + rule { + delay_in_minutes = 0 + include_mode = "INCLUDE_ALL" + severity_level = "AVAILABILITY" + tags = [ "Component:RemoteServices", "Environment:INT" ] + } + rule { + delay_in_minutes = 10 + include_mode = "INCLUDE_ALL" + severity_level = "CUSTOM_ALERT" + tags = [ "Component:RemoteServices", "Environment:INT" ] + } + rule { + delay_in_minutes = 10 + include_mode = "INCLUDE_ALL" + severity_level = "ERRORS" + tags = [ "Component:RemoteServices", "Environment:INT" ] + } + rule { + delay_in_minutes = 30 + include_mode = "INCLUDE_ALL" + severity_level = "PERFORMANCE" + tags = [ "Component:RemoteServices", "Environment:INT" ] + } + rule { + delay_in_minutes = 30 + include_mode = "INCLUDE_ALL" + severity_level = "RESOURCE_CONTENTION" + tags = [ "Component:RemoteServices", "Environment:INT" ] + } + } +} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_remoteservices_int.tf b/CN_PREPROD/dashboard/cd_remoteservices_int.tf new file mode 100644 index 00000000..9cd35f11 --- /dev/null +++ b/CN_PREPROD/dashboard/cd_remoteservices_int.tf @@ -0,0 +1,294 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_INT.id = a333aa1a-4cf9-427d-9589-d64b1579da9c +data "dynatrace_management_zone" "CD_RemoteServices_INT"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_INT" { + dashboard_metadata { + name = "CD_RemoteServices INT" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + 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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:INT" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/CN_PREPROD/dashboard/cd_remoteservices_test.tf b/CN_PREPROD/dashboard/cd_remoteservices_test.tf new file mode 100644 index 00000000..f97eee24 --- /dev/null +++ b/CN_PREPROD/dashboard/cd_remoteservices_test.tf @@ -0,0 +1,294 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_TEST.id = e88f240b-5e01-451e-bbc7-99376b1ca1f4 +data "dynatrace_management_zone" "CD_RemoteServices_TEST"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_TEST" { + dashboard_metadata { + name = "CD_RemoteServices TEST" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + 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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:TEST" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/CN_PREPROD/management_zone/cd_remoteservices.tf b/CN_PREPROD/management_zone/cd_remoteservices.tf new file mode 100644 index 00000000..52691d9a --- /dev/null +++ b/CN_PREPROD/management_zone/cd_remoteservices.tf @@ -0,0 +1,95 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServices.id = 7734411297545905859 +resource "dynatrace_management_zone" "CD_RemoteServices" { + name = "CD_RemoteServices" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + 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 = "RemoteServices" + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } +} diff --git a/CN_PROD/alerting/cd_remoteservices_prod.tf b/CN_PROD/alerting/cd_remoteservices_prod.tf new file mode 100644 index 00000000..ebf71039 --- /dev/null +++ b/CN_PROD/alerting/cd_remoteservices_prod.tf @@ -0,0 +1,38 @@ +# DEFINE dynatrace_alerting.CD_RemoteServices_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRmMDI1ZTIzNS0wZTAyLTRhYTUtOTA3OS1hYWE0ZDU5NmFlMma-71TeFdrerQ +data "dynatrace_management_zone" "CD_RemoteServices_PROD"{ name="CD_RemoteServices" } +resource "dynatrace_alerting" "CD_RemoteServices_PROD" { + name = "CD_RemoteServices PROD" + management_zone = data.dynatrace_management_zone.CD_RemoteServices_PROD.id + rules { + rule { + delay_in_minutes = 0 + include_mode = "INCLUDE_ALL" + severity_level = "AVAILABILITY" + tags = [ "Component:RemoteServices", "Environment:PROD" ] + } + rule { + delay_in_minutes = 10 + include_mode = "INCLUDE_ALL" + severity_level = "CUSTOM_ALERT" + tags = [ "Component:RemoteServices", "Environment:PROD" ] + } + rule { + delay_in_minutes = 10 + include_mode = "INCLUDE_ALL" + severity_level = "ERRORS" + tags = [ "Component:RemoteServices", "Environment:PROD" ] + } + rule { + delay_in_minutes = 30 + include_mode = "INCLUDE_ALL" + severity_level = "PERFORMANCE" + tags = [ "Component:RemoteServices", "Environment:PROD" ] + } + rule { + delay_in_minutes = 30 + include_mode = "INCLUDE_ALL" + severity_level = "RESOURCE_CONTENTION" + tags = [ "Component:RemoteServices", "Environment:PROD" ] + } + } +} \ No newline at end of file diff --git a/CN_PROD/dashboard/cd_remoteservices_prod.tf b/CN_PROD/dashboard/cd_remoteservices_prod.tf new file mode 100644 index 00000000..e4270c66 --- /dev/null +++ b/CN_PROD/dashboard/cd_remoteservices_prod.tf @@ -0,0 +1,294 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_PROD.id = 5374a694-d927-4860-9a54-02c7e2828a34 +data "dynatrace_management_zone" "CD_RemoteServices_PROD"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_PROD" { + dashboard_metadata { + name = "CD_RemoteServices PROD" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + 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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:PROD" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/CN_PROD/management_zone/cd_remoteservices.tf b/CN_PROD/management_zone/cd_remoteservices.tf new file mode 100644 index 00000000..c2b3b358 --- /dev/null +++ b/CN_PROD/management_zone/cd_remoteservices.tf @@ -0,0 +1,95 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServices.id = 2252406352121296653 +resource "dynatrace_management_zone" "CD_RemoteServices" { + name = "CD_RemoteServices" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + 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 = "RemoteServices" + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } +} diff --git a/EMEA_PREPROD/dashboard/cd_remoteservices_int.tf b/EMEA_PREPROD/dashboard/cd_remoteservices_int.tf new file mode 100644 index 00000000..402d3afa --- /dev/null +++ b/EMEA_PREPROD/dashboard/cd_remoteservices_int.tf @@ -0,0 +1,357 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_INT.id = d971a827-4ef5-4736-9998-ac0fa15ae562 +data "dynatrace_management_zone" "CD_RemoteServices_INT"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_INT" { + dashboard_metadata { + name = "CD_RemoteServices INT" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "CD_RemoteServices" ] + filter { + timeframe = "-24h to now" + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 304 + left = 38 + top = 228 + width = 1064 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + filter_config { + type = "MIXED" + custom_name = "Failure rate (HTTP 4xx/5xx errors)" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#ff0000" + key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1617956393463 + } + config { + custom_color = "#fff29a" + key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1617956441725 + } + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.rate" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.rate" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:INT" ] + } + } + } + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 950 + top = 38 + width = 152 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + } + tile { + name = "Overall Health" + configured = true + tile_type = "HEADER" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 38 + left = 38 + top = 0 + width = 1064 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 38 + left = 38 + top = 532 + width = 1064 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 304 + left = 38 + top = 570 + width = 1064 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + filter_config { + type = "MIXED" + custom_name = "Response time, Request Count and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:INT" ] + } + } + } + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 38 + left = 38 + top = 190 + width = 1064 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 646 + top = 38 + width = 190 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + filter_config { + type = "DATABASE" + custom_name = "Databases" + default_name = "Databases" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "DATABASE" + match { + key = "AUTO_TAGS" + values = [ "Environment:INT" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 342 + top = 38 + width = 190 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + filter_config { + type = "SERVICE" + custom_name = "Services" + default_name = "Services" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:INT" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "HOSTS" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 38 + top = 38 + width = 190 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_INT.id + } + } + filter_config { + type = "HOST" + custom_name = "Hosts" + default_name = "Hosts" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "HOST" + match { + key = "AUTO_TAGS" + values = [ "Environment:INT" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/EMEA_PREPROD/dashboard/cd_remoteservices_test.tf b/EMEA_PREPROD/dashboard/cd_remoteservices_test.tf new file mode 100644 index 00000000..2e3cf84a --- /dev/null +++ b/EMEA_PREPROD/dashboard/cd_remoteservices_test.tf @@ -0,0 +1,357 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_TEST.id = d0bf0981-2d7e-49e9-960b-f1449f2ab38d +data "dynatrace_management_zone" "CD_RemoteServices_TEST"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_TEST" { + dashboard_metadata { + name = "CD_RemoteServices TEST" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "CD_RemoteServices" ] + filter { + timeframe = "-24h to now" + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 304 + left = 38 + top = 228 + width = 1064 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + filter_config { + type = "MIXED" + custom_name = "Failure rate (HTTP 4xx/5xx errors)" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#ff0000" + key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1617956393463 + } + config { + custom_color = "#fff29a" + key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE" + last_modified = 1617956441725 + } + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.rate" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.rate" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:TEST" ] + } + } + } + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 950 + top = 38 + width = 152 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + } + tile { + name = "Overall Health" + configured = true + tile_type = "HEADER" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 38 + left = 38 + top = 0 + width = 1064 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 38 + left = 38 + top = 532 + width = 1064 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 304 + left = 38 + top = 570 + width = 1064 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + filter_config { + type = "MIXED" + custom_name = "Response time, Request Count and Number of Errors" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275720776 + } + config { + custom_color = "#b4e5f9" + key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1595275686773 + } + config { + custom_color = "#ef651f" + key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1595275955999 + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.total.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:TEST" ] + } + } + } + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --- + + EOT + tile_type = "MARKDOWN" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 38 + left = 38 + top = 190 + width = 1064 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "DATABASES_OVERVIEW" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 646 + top = 38 + width = 190 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + filter_config { + type = "DATABASE" + custom_name = "Databases" + default_name = "Databases" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "DATABASE" + match { + key = "AUTO_TAGS" + values = [ "Environment:TEST" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 342 + top = 38 + width = 190 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + filter_config { + type = "SERVICE" + custom_name = "Services" + default_name = "Services" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Environment:TEST" ] + } + } + } + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "HOSTS" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 38 + top = 38 + width = 190 + } + filter { + management_zone { + name = "CD_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_TEST.id + } + } + filter_config { + type = "HOST" + custom_name = "Hosts" + default_name = "Hosts" + chart_config { + type = "TIMESERIES" + legend = true + } + filters { + filter { + entity_type = "HOST" + match { + key = "AUTO_TAGS" + values = [ "Environment:TEST" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/EMEA_PREPROD/management_zone/cd_remoteservices.tf b/EMEA_PREPROD/management_zone/cd_remoteservices.tf new file mode 100644 index 00000000..b6e46a95 --- /dev/null +++ b/EMEA_PREPROD/management_zone/cd_remoteservices.tf @@ -0,0 +1,143 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServices.id = 5162389423478083496 +resource "dynatrace_management_zone" "CD_RemoteServices" { + name = "CD_RemoteServices" + entity_selector_based_rule { + # enabled = false + selector = "type(Service),tag('ms-id:rs')" + } + entity_selector_based_rule { + # enabled = false + selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag('ms-id:rs'))" + } + entity_selector_based_rule { + enabled = true + selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"ms-id:rs\"))" + } + entity_selector_based_rule { + # enabled = false + selector = "type(HOST),tag('ms-id:rs')" + } + entity_selector_based_rule { + enabled = true + selector = "type(HOST),tag(\"ms-id:rs\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"ms-id:rs\")" + } + entity_selector_based_rule { + # enabled = false + selector = "type(PROCESS_GROUP_INSTANCE),tag('msid:rs')" + } + entity_selector_based_rule { + # enabled = false + selector = "type(PROCESS_GROUP_INSTANCE),tag('ms-id:rs')" + } + entity_selector_based_rule { + # enabled = false + selector = "type(Service),tag('msid:rs')" + } + entity_selector_based_rule { + # enabled = false + selector = "type(HOST),tag('msid:rs')" + } + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP_INSTANCE),tag(\"ms-id:rs\")" + } + entity_selector_based_rule { + # enabled = false + selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag('msid:rs'))" + } + rules { + type = "CLOUD_APPLICATION" + # enabled = false + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + rules { + type = "CLOUD_APPLICATION_NAMESPACE" + # enabled = false + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAMESPACE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + rules { + type = "HOST" + # enabled = false + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RemoteServices" + } + } + } + } + rules { + type = "PROCESS_GROUP" + # enabled = false + 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 = "RemoteServices" + } + } + } + } + rules { + type = "SERVICE" + # enabled = false + 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 = "RemoteServices" + } + } + } + } +} diff --git a/EMEA_PROD/dashboard/cd_remoteservices_overview.tf b/EMEA_PROD/dashboard/cd_remoteservices_overview.tf new file mode 100644 index 00000000..0adfa9cb --- /dev/null +++ b/EMEA_PROD/dashboard/cd_remoteservices_overview.tf @@ -0,0 +1,258 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_Overview.id = 627a832a-f685-44d3-90ab-33380ff8a635 +data "dynatrace_management_zone" "CD_RemoteServices_Overview"{ name="CD_remote-software-upgrade" } +resource "dynatrace_dashboard" "CD_RemoteServices_Overview" { + dashboard_metadata { + name = "CD_RemoteServices Overview" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 494 + left = 0 + top = 0 + width = 1444 + } + filter_config { + type = "MIXED" + custom_name = "RemoteServices - All" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # 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.fourxx.count" + # sort_ascending = false + # sort_column = false + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + sort_column = true + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "AUTO_TAGS" + values = [ "Component:RemoteServices" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 494 + left = 1444 + top = 0 + width = 722 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 456 + left = 0 + top = 494 + width = 722 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 456 + left = 722 + top = 494 + width = 722 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 228 + left = 1444 + top = 494 + width = 722 + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 228 + left = 1444 + top = 722 + width = 722 + } + } + tile { + name = "" + chart_visible = true + configured = true + tile_type = "SERVICES" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 228 + left = 2166 + top = 0 + width = 228 + } + 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:RemoteServices" ] + } + } + } + } + } + tile { + name = "Problems" + configured = true + tile_type = "OPEN_PROBLEMS" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 152 + left = 2204 + top = 342 + width = 152 + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + --------- + + EOT + tile_type = "MARKDOWN" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 76 + left = 2166 + top = 494 + width = 228 + } + } + tile { + name = "Markdown" + configured = true + markdown =<<-EOT + + + + + --------- + + EOT + tile_type = "MARKDOWN" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 76 + left = 2166 + top = 228 + width = 228 + } + } +} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_remoteservices_prod.tf b/EMEA_PROD/dashboard/cd_remoteservices_prod.tf new file mode 100644 index 00000000..e990d807 --- /dev/null +++ b/EMEA_PROD/dashboard/cd_remoteservices_prod.tf @@ -0,0 +1,324 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_PROD.id = 1999b60c-2722-404b-8db7-0339c7939d19 +data "dynatrace_management_zone" "CD_RemoteServices_PROD"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_PROD" { + dashboard_metadata { + name = "CD_RemoteServices PROD" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + unknowns = jsonencode({ + "popularity": 1 + }) + filter { + timeframe = "-24h to now" + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 304 + left = 38 + top = 228 + width = 1064 + } + filter_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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:PROD" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/EMEA_PROD/dashboard/cd_remoteservices_transactions_by_type.tf b/EMEA_PROD/dashboard/cd_remoteservices_transactions_by_type.tf new file mode 100644 index 00000000..502c9736 --- /dev/null +++ b/EMEA_PROD/dashboard/cd_remoteservices_transactions_by_type.tf @@ -0,0 +1,1511 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_Transactions_by_Type.id = 04686144-306c-460a-bb3c-51d0039a33ab +data "dynatrace_management_zone" "CD_RemoteServices_Transactions_by_Type"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_Transactions_by_Type" { + dashboard_metadata { + name = "CD_RemoteServices Transactions by Type" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 0 + top = 418 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RDL - Remote Door Lock" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151095838 + } + config { + custom_color = "#00ff00" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151136082 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151960109 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261834604 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-E8FC19688E0C8E25" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 912 + top = 418 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RDU - Remote Door Unlock" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-DDF3AFE6A563088F¦SERVICE»SERVICE-DDF3AFE6A563088F»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151099028 + } + config { + custom_color = "#00ff00" + key = "SERVICE-DDF3AFE6A563088F¦SERVICE»SERVICE-DDF3AFE6A563088F»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151140493 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-DDF3AFE6A563088F¦SERVICE»SERVICE-DDF3AFE6A563088F»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151967038 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-DDF3AFE6A563088F¦SERVICE»SERVICE-DDF3AFE6A563088F»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261837890 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-DDF3AFE6A563088F¦SERVICE»SERVICE-DDF3AFE6A563088F»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151209738 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # sort_ascending = false + sort_column = true + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + } + filters { + filter { + entity_type = "SERVICE" + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-DDF3AFE6A563088F" ] + } + match { + key = "AUTO_TAGS" + values = [ "Component:RemoteServices" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 0 + top = 0 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RCN - Remote Climate Now" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-5E2752FB61AAC6E0¦SERVICE»SERVICE-5E2752FB61AAC6E0»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602150906552 + } + config { + custom_color = "#00FF00" + key = "SERVICE-5E2752FB61AAC6E0¦SERVICE»SERVICE-5E2752FB61AAC6E0»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602150884406 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-5E2752FB61AAC6E0¦SERVICE»SERVICE-5E2752FB61AAC6E0»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151947494 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-5E2752FB61AAC6E0¦SERVICE»SERVICE-5E2752FB61AAC6E0»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602150901987 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-5E2752FB61AAC6E0" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 912 + top = 0 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RCT - Remote Climate Timer" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-5670A81E4C25D101¦SERVICE»SERVICE-5670A81E4C25D101»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151073603 + } + config { + custom_color = "#00ff00" + key = "SERVICE-5670A81E4C25D101¦SERVICE»SERVICE-5670A81E4C25D101»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151126571 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-5670A81E4C25D101¦SERVICE»SERVICE-5670A81E4C25D101»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151952466 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-5670A81E4C25D101¦SERVICE»SERVICE-5670A81E4C25D101»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261825493 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-5670A81E4C25D101¦SERVICE»SERVICE-5670A81E4C25D101»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151198254 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-5670A81E4C25D101" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 1824 + top = 0 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RCP - Remote Charging Profile" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-D25CCD5C7A9A37FE¦SERVICE»SERVICE-D25CCD5C7A9A37FE»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151093021 + } + config { + custom_color = "#00ff00" + key = "SERVICE-D25CCD5C7A9A37FE¦SERVICE»SERVICE-D25CCD5C7A9A37FE»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151131814 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-D25CCD5C7A9A37FE¦SERVICE»SERVICE-D25CCD5C7A9A37FE»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151956309 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-D25CCD5C7A9A37FE¦SERVICE»SERVICE-D25CCD5C7A9A37FE»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261831189 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-D25CCD5C7A9A37FE¦SERVICE»SERVICE-D25CCD5C7A9A37FE»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151203551 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-D25CCD5C7A9A37FE" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 1824 + top = 418 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RHB - Remote Horn Blow" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-0E6E702C5A68B5DC¦SERVICE»SERVICE-0E6E702C5A68B5DC»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151101711 + } + config { + custom_color = "#00ff00" + key = "SERVICE-0E6E702C5A68B5DC¦SERVICE»SERVICE-0E6E702C5A68B5DC»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151144259 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-0E6E702C5A68B5DC¦SERVICE»SERVICE-0E6E702C5A68B5DC»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151971179 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-0E6E702C5A68B5DC¦SERVICE»SERVICE-0E6E702C5A68B5DC»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261842037 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-0E6E702C5A68B5DC¦SERVICE»SERVICE-0E6E702C5A68B5DC»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151214093 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-0E6E702C5A68B5DC" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 0 + top = 836 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "RLF - Remote Light Flash" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-261058659EC2BEB0¦SERVICE»SERVICE-261058659EC2BEB0»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151104705 + } + config { + custom_color = "#00ff00" + key = "SERVICE-261058659EC2BEB0¦SERVICE»SERVICE-261058659EC2BEB0»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151148128 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-261058659EC2BEB0¦SERVICE»SERVICE-261058659EC2BEB0»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151975714 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-261058659EC2BEB0¦SERVICE»SERVICE-261058659EC2BEB0»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261845264 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-261058659EC2BEB0¦SERVICE»SERVICE-261058659EC2BEB0»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151218019 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-261058659EC2BEB0" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 912 + top = 836 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "VF - Vehicle Finder" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-05FE7C46CC4133A9¦SERVICE»SERVICE-05FE7C46CC4133A9»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151108107 + } + config { + custom_color = "#00ff00" + key = "SERVICE-05FE7C46CC4133A9¦SERVICE»SERVICE-05FE7C46CC4133A9»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151152877 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-05FE7C46CC4133A9¦SERVICE»SERVICE-05FE7C46CC4133A9»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151979772 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-05FE7C46CC4133A9¦SERVICE»SERVICE-05FE7C46CC4133A9»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261848315 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-05FE7C46CC4133A9¦SERVICE»SERVICE-05FE7C46CC4133A9»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151222120 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-05FE7C46CC4133A9" ] + } + } + } + } + } + tile { + name = "Custom chart" + configured = true + tile_type = "CUSTOM_CHARTING" + unknowns = jsonencode({ + "isAutoRefreshDisabled": false + }) + bounds { + height = 418 + left = 1824 + top = 836 + width = 912 + } + filter_config { + type = "MIXED" + custom_name = "R360 - Remote 360" + default_name = "Custom chart" + chart_config { + type = "TIMESERIES" + legend = true + result_metadata { + config { + custom_color = "#008cdb" + key = "SERVICE-4F3B5AD8D021599A¦SERVICE»SERVICE-4F3B5AD8D021599A»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602151111825 + } + config { + custom_color = "#00ff00" + key = "SERVICE-4F3B5AD8D021599A¦SERVICE»SERVICE-4F3B5AD8D021599A»truebuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151157549 + } + config { + custom_color = "#FF0000" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149937366 + } + config { + custom_color = "#FF0000" + key = "nullbuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148703921 + } + config { + custom_color = "#FFFF00" + key = "SERVICE-4F3B5AD8D021599A¦SERVICE»SERVICE-4F3B5AD8D021599A»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151941760 + } + config { + custom_color = "#FFFF00" + key = "nullbuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148728822 + } + config { + custom_color = "#a972cc" + key = "SERVICE-4F3B5AD8D021599A¦SERVICE»SERVICE-4F3B5AD8D021599A»truebuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE" + last_modified = 1602261852539 + } + config { + custom_color = "#aeebf0" + key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602148736899 + } + config { + custom_color = "#ff0000" + key = "SERVICE-4F3B5AD8D021599A¦SERVICE»SERVICE-4F3B5AD8D021599A»truebuiltin:service.errors.fivexx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602151225913 + } + config { + custom_color = "#ffd0ab" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602149985888 + } + config { + custom_color = "#ffd0ab" + key = "nullbuiltin:service.response.time|PERCENTILE|TOTAL|95|LINE|SERVICE" + last_modified = 1602148837193 + } + config { + custom_color = "#fff29a" + key = "SERVICE-E8FC19688E0C8E25¦SERVICE»SERVICE-E8FC19688E0C8E25»truebuiltin:service.errors.fourxx.count|NONE|TOTAL|BAR|SERVICE" + last_modified = 1602149951405 + } + } + series { + type = "LINE" + aggregation = "PERCENTILE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + percentile = 95 + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.requestCount.total" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fourxx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "BAR" + aggregation = "NONE" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.errors.fivexx.count" + # sort_ascending = false + # sort_column = false + dimension { + name = "dt.entity.service" + entity_dimension = true + id = "0" + } + } + series { + type = "LINE" + aggregation = "AVG" + aggregation_rate = "TOTAL" + entity_type = "SERVICE" + metric = "builtin:service.response.time" + # 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:RemoteServices" ] + } + match { + key = "SPECIFIC_ENTITIES" + values = [ "SERVICE-4F3B5AD8D021599A" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/EMEA_PROD/management_zone/cd_remoteservices.tf b/EMEA_PROD/management_zone/cd_remoteservices.tf new file mode 100644 index 00000000..09394430 --- /dev/null +++ b/EMEA_PROD/management_zone/cd_remoteservices.tf @@ -0,0 +1,95 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServices.id = 5188541189677060803 +resource "dynatrace_management_zone" "CD_RemoteServices" { + name = "CD_RemoteServices" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + 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 = "RemoteServices" + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } +} diff --git a/NA_PREPROD/dashboard/cd_remoteservices_int.tf b/NA_PREPROD/dashboard/cd_remoteservices_int.tf new file mode 100644 index 00000000..80820231 --- /dev/null +++ b/NA_PREPROD/dashboard/cd_remoteservices_int.tf @@ -0,0 +1,321 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_INT.id = 59bf70e9-dfc8-4124-90ea-2708caa79f69 +data "dynatrace_management_zone" "CD_RemoteServices_INT"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_INT" { + dashboard_metadata { + name = "CD_RemoteServices INT" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + 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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:INT" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/NA_PREPROD/dashboard/cd_remoteservices_test.tf b/NA_PREPROD/dashboard/cd_remoteservices_test.tf new file mode 100644 index 00000000..2f9ccad2 --- /dev/null +++ b/NA_PREPROD/dashboard/cd_remoteservices_test.tf @@ -0,0 +1,321 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_TEST.id = 3594b7b7-9dbc-4566-b16b-7bf5ea3d49bb +data "dynatrace_management_zone" "CD_RemoteServices_TEST"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_TEST" { + dashboard_metadata { + name = "CD_RemoteServices TEST" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + 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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:TEST" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/NA_PREPROD/management_zone/cd_remoteservices.tf b/NA_PREPROD/management_zone/cd_remoteservices.tf new file mode 100644 index 00000000..55ff07e6 --- /dev/null +++ b/NA_PREPROD/management_zone/cd_remoteservices.tf @@ -0,0 +1,95 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServices.id = -1442767162231888849 +resource "dynatrace_management_zone" "CD_RemoteServices" { + name = "CD_RemoteServices" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + 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 = "RemoteServices" + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } +} diff --git a/NA_PROD/dashboard/cd_remoteservices_prod.tf b/NA_PROD/dashboard/cd_remoteservices_prod.tf new file mode 100644 index 00000000..b14153d6 --- /dev/null +++ b/NA_PROD/dashboard/cd_remoteservices_prod.tf @@ -0,0 +1,321 @@ +# DEFINE dynatrace_dashboard.CD_RemoteServices_PROD.id = 803e8fee-305e-40ea-9075-760237919e89 +data "dynatrace_management_zone" "CD_RemoteServices_PROD"{ name="CD_RemoteServices" } +resource "dynatrace_dashboard" "CD_RemoteServices_PROD" { + dashboard_metadata { + name = "CD_RemoteServices PROD" + owner = "Ignacio.Goldman@partner.bmwgroup.com" + preset = true + shared = true + tags = [ "RemoteServices" ] + 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:RemoteServices", "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_RemoteServices" + id = data.dynatrace_management_zone.CD_RemoteServices_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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "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:RemoteServices", "Environment:PROD" ] + } + } + } + } + } +} \ No newline at end of file diff --git a/NA_PROD/management_zone/cd_remoteservices.tf b/NA_PROD/management_zone/cd_remoteservices.tf new file mode 100644 index 00000000..326524ba --- /dev/null +++ b/NA_PROD/management_zone/cd_remoteservices.tf @@ -0,0 +1,95 @@ +# DEFINE dynatrace_management_zone.CD_RemoteServices.id = 2125388999540522363 +resource "dynatrace_management_zone" "CD_RemoteServices" { + name = "CD_RemoteServices" + rules { + type = "CLOUD_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "CLOUD_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "RemoteServices" + } + } + } + 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 = "RemoteServices" + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } + 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 = "RemoteServices" + } + } + } + } +}