678 lines
17 KiB
HCL
678 lines
17 KiB
HCL
resource "dynatrace_dashboard" "Kubernetes_namespace_resource_quotas_6b38732e-609c-44e2-b34d-0286717ecdab" {
|
|
dashboard_metadata {
|
|
name = "Kubernetes namespace resource quotas"
|
|
owner = "Dynatrace"
|
|
# shared = false
|
|
tags = ["Kubernetes"]
|
|
dynamic_filters {
|
|
filters = ["KUBERNETES_CLUSTER","RELATED_NAMESPACE"]
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 1102
|
|
top = 228
|
|
width = 570
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "CPU limits quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TIMESERIES"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
result_metadata {
|
|
config {
|
|
custom_color = "#f5d30f"
|
|
key = "nullbuiltin:cloud.kubernetes.namespace.quota.cpuLimits|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
|
|
last_modified = 1597931668482
|
|
}
|
|
}
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "AVG"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 1102
|
|
top = 722
|
|
width = 570
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Memory limits quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TIMESERIES"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "AVG"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 0
|
|
top = 76
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "CPU requests quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 0
|
|
top = 722
|
|
width = 266
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Memory requests quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TOP_LIST"
|
|
legend = true
|
|
series {
|
|
type = "AREA"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 0
|
|
top = 228
|
|
width = 266
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "CPU requests quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TOP_LIST"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "AREA"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = "Markdown"
|
|
configured = true
|
|
markdown = "## Memory request quota"
|
|
tile_type = "MARKDOWN"
|
|
bounds {
|
|
height = 38
|
|
left = 0
|
|
top = 532
|
|
width = 836
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 266
|
|
top = 228
|
|
width = 570
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "CPU requests quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TIMESERIES"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "AVG"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 836
|
|
top = 228
|
|
width = 266
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "CPU limits quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TOP_LIST"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
result_metadata {
|
|
config {
|
|
custom_color = "#f5d30f"
|
|
key = "nullbuiltin:cloud.kubernetes.namespace.quota.cpuLimits|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
|
|
last_modified = 1597931668482
|
|
}
|
|
}
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = "Markdown"
|
|
configured = true
|
|
markdown = "## CPU requests quota "
|
|
tile_type = "MARKDOWN"
|
|
bounds {
|
|
height = 38
|
|
left = 0
|
|
top = 38
|
|
width = 836
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 266
|
|
top = 722
|
|
width = 570
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Memory requests quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TIMESERIES"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "AVG"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 304
|
|
left = 836
|
|
top = 722
|
|
width = 266
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Memory limits quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "TOP_LIST"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
dimension {
|
|
name = "dt.entity.cloud_application_namespace"
|
|
entity_dimension = true
|
|
id = "0"
|
|
}
|
|
dimension {
|
|
name = "Resource quota name"
|
|
# entity_dimension = false
|
|
id = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = "Markdown"
|
|
configured = true
|
|
markdown = "## Memory limits quota"
|
|
tile_type = "MARKDOWN"
|
|
bounds {
|
|
height = 38
|
|
left = 836
|
|
top = 532
|
|
width = 836
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 418
|
|
top = 76
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Total CPU requests quota"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "AREA"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.cpuRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 836
|
|
top = 76
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "CPU limits quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 1254
|
|
top = 76
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Total CPU limits quota"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.cpuLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 418
|
|
top = 570
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Total memory requests quota"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.memoryRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 0
|
|
top = 570
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Total memory requests quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryRequests"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 836
|
|
top = 570
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Total memory limits quota used"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = ""
|
|
configured = true
|
|
tile_type = "CUSTOM_CHARTING"
|
|
bounds {
|
|
height = 152
|
|
left = 1254
|
|
top = 570
|
|
width = 418
|
|
}
|
|
filter {
|
|
timeframe = "-5m"
|
|
}
|
|
filter_config {
|
|
type = "MIXED"
|
|
custom_name = "Total memory limits quota"
|
|
default_name = "Custom chart"
|
|
chart_config {
|
|
type = "SINGLE_VALUE"
|
|
left_axis_custom_unit = "MilliCores"
|
|
legend = true
|
|
series {
|
|
type = "LINE"
|
|
aggregation = "SUM_DIMENSIONS"
|
|
aggregation_rate = "TOTAL"
|
|
entity_type = "CLOUD_APPLICATION_NAMESPACE"
|
|
metric = "builtin:cloud.kubernetes.namespace.quota.memoryLimits"
|
|
# sort_ascending = false
|
|
sort_column = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tile {
|
|
name = "Markdown"
|
|
configured = true
|
|
markdown = "## CPU limits quota"
|
|
tile_type = "MARKDOWN"
|
|
bounds {
|
|
height = 38
|
|
left = 836
|
|
top = 38
|
|
width = 836
|
|
}
|
|
}
|
|
tile {
|
|
name = "Markdown"
|
|
configured = true
|
|
markdown = "This dashboard provides an overview of your [resource quotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/) by namespace. If the dashboard is empty you might need to setup quotas at the namespace level."
|
|
tile_type = "MARKDOWN"
|
|
bounds {
|
|
height = 38
|
|
left = 0
|
|
top = 0
|
|
width = 1672
|
|
}
|
|
}
|
|
}
|