resource "dynatrace_dashboard" "Kubernetes_cluster_overview_6b38732e-8c5c-4b32-80a1-7053ec8f37e1" { dashboard_metadata { name = "Kubernetes cluster overview" owner = "Dynatrace" # shared = false tags = ["Kubernetes"] dynamic_filters { filters = ["KUBERNETES_CLUSTER"] } } tile { name = "Markdown" configured = true markdown = "## Cluster resource overview" tile_type = "MARKDOWN" bounds { height = 38 left = 0 top = 0 width = 684 } } tile { name = "" chart_visible = true configured = true tile_type = "HOSTS" bounds { height = 304 left = 342 top = 38 width = 342 } filter { timeframe = "-5m" } filter_config { type = "HOST" custom_name = "Full-Stack Kubernetes nodes" default_name = "Full-Stack Kubernetes nodes" chart_config { type = "TIMESERIES" legend = true } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 190 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "CPU available" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "KUBERNETES_CLUSTER" metric = "builtin:cloud.kubernetes.cluster.cpuAvailable" # sort_ascending = false sort_column = true } } } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 684 top = 38 width = 304 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Pods" default_name = "Custom chart" chart_config { type = "PIE" legend = true result_metadata { config { custom_color = "#008cdb" key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597237249882 } config { custom_color = "#64bd64" key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234642722 } config { custom_color = "#f5d30f" key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234457744 } config { custom_color = "#ff0000" key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234118116 } } series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "CLOUD_APPLICATION" metric = "builtin:cloud.kubernetes.workload.pods" # sort_ascending = false sort_column = true dimension { name = "Pod phase" # entity_dimension = false id = "1" } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 608 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Memory available" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "KUBERNETES_CLUSTER" metric = "builtin:cloud.kubernetes.cluster.memoryAvailable" # sort_ascending = false sort_column = true } } } } tile { name = "Markdown" configured = true markdown = "## Node resource usage" tile_type = "MARKDOWN" bounds { height = 38 left = 0 top = 380 width = 1634 } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 0 top = 38 width = 342 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Cluster nodes" default_name = "Custom chart" chart_config { type = "PIE" legend = true series { type = "LINE" aggregation = "AVG" aggregation_rate = "TOTAL" entity_type = "KUBERNETES_CLUSTER" metric = "builtin:cloud.kubernetes.cluster.nodes" # sort_ascending = false sort_column = true dimension { name = "dt.entity.kubernetes_cluster" entity_dimension = true id = "0" } } } } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 1026 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Disk available" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.disk.avail" # sort_ascending = false sort_column = true } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 0 top = 570 width = 418 } filter_config { type = "MIXED" custom_name = "CPU usage % " default_name = "Custom chart" chart_config { type = "TIMESERIES" legend = true series { type = "LINE" aggregation = "AVG" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.cpu.usage" # sort_ascending = false sort_column = true dimension { name = "dt.entity.host" entity_dimension = true id = "0" } } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 418 top = 570 width = 418 } filter_config { type = "MIXED" custom_name = "Memory usage % " default_name = "Custom chart" chart_config { type = "TIMESERIES" legend = true series { type = "LINE" aggregation = "AVG" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.mem.usage" # sort_ascending = false sort_column = true dimension { name = "dt.entity.host" entity_dimension = true id = "0" } } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 836 top = 570 width = 418 } filter_config { type = "MIXED" custom_name = "Disk usage % " default_name = "Custom chart" chart_config { type = "TIMESERIES" legend = true series { type = "LINE" aggregation = "AVG" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.disk.usedPct" # sort_ascending = false sort_column = true dimension { name = "dt.entity.host" entity_dimension = true id = "0" } dimension { name = "dt.entity.disk" entity_dimension = true id = "1" } } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 0 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Total CPU requests" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "KUBERNETES_CLUSTER" metric = "builtin:cloud.kubernetes.cluster.cpuRequested" # sort_ascending = false sort_column = true } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 418 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Total memory requests" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "KUBERNETES_CLUSTER" metric = "builtin:cloud.kubernetes.cluster.memoryRequested" # sort_ascending = false sort_column = true } } } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 836 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Total disk used" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.disk.used" # sort_ascending = false sort_column = true } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Custom chart" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 1254 top = 570 width = 380 } filter_config { type = "MIXED" custom_name = "Traffic in/out" default_name = "Custom chart" chart_config { type = "TIMESERIES" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.net.nic.trafficIn" # sort_ascending = false # sort_column = false dimension { name = "dt.entity.host" entity_dimension = true id = "0" } } series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.net.nic.trafficOut" # sort_ascending = false sort_column = true dimension { name = "dt.entity.host" entity_dimension = true id = "0" } } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 1444 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Traffic out" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.net.nic.trafficOut" # sort_ascending = false sort_column = true } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 152 left = 1254 top = 418 width = 190 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Traffic in" default_name = "Custom chart" chart_config { type = "SINGLE_VALUE" legend = true series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "HOST" metric = "builtin:host.net.nic.trafficIn" # sort_ascending = false sort_column = true } } filters { filter { entity_type = "HOST" match { key = "HOST_SOFTWARE_TECH" values = ["KUBERNETES"] } } } } } tile { name = "Markdown" configured = true markdown = "## [Workloads overview](#dashboard;id=6b38732e-d26b-45c7-b107-ed85e87ff288)" tile_type = "MARKDOWN" bounds { height = 38 left = 684 top = 0 width = 950 } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 1330 top = 38 width = 304 } filter_config { type = "MIXED" custom_name = "Workloads" default_name = "Custom chart" chart_config { type = "PIE" legend = true result_metadata { config { custom_color = "#008cdb" key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597237249882 } config { custom_color = "#64bd64" key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234642722 } config { custom_color = "#f5d30f" key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234457744 } config { custom_color = "#ff0000" key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234118116 } config { custom_color = "#ffa86c" key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE" last_modified = 1597858600132 } } series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "CLOUD_APPLICATION_NAMESPACE" metric = "builtin:cloud.kubernetes.namespace.workloads" # sort_ascending = false sort_column = true dimension { name = "Deployment type" # entity_dimension = false id = "1" } } } } } tile { name = "" configured = true tile_type = "CUSTOM_CHARTING" bounds { height = 304 left = 988 top = 38 width = 342 } filter { timeframe = "-5m" } filter_config { type = "MIXED" custom_name = "Running pods" default_name = "Custom chart" chart_config { type = "TOP_LIST" legend = true result_metadata { config { custom_color = "#008cdb" key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597237249882 } config { custom_color = "#64bd64" key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234642722 } config { custom_color = "#f5d30f" key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234457744 } config { custom_color = "#ff0000" key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION" last_modified = 1597234118116 } config { custom_color = "#ffa86c" key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE" last_modified = 1597858600132 } } series { type = "LINE" aggregation = "SUM_DIMENSIONS" aggregation_rate = "TOTAL" entity_type = "CLOUD_APPLICATION_NAMESPACE" metric = "builtin:cloud.kubernetes.namespace.runningPods" # sort_ascending = false sort_column = true dimension { name = "dt.entity.cloud_application_namespace" entity_dimension = true id = "0" } } } } } }