KubeZero/charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-pod.json

1373 lines
45 KiB
JSON
Raw Permalink Normal View History

{
2024-07-19 14:14:43 +00:00
"editable": false,
"links": [
{
"asDropdown": true,
"includeVars": true,
"keepTime": true,
"tags": [
"kubernetes"
],
"targetBlank": false,
"title": "Kubernetes",
"type": "dashboards"
}
],
2024-07-19 14:14:43 +00:00
"panels": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
}
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "dash"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
},
2024-07-19 14:14:43 +00:00
{
"matcher": {
"id": "byFrameRefID",
"options": "C"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "dash"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=\"$pod\", cluster=\"$cluster\", container!=\"\"}) by (container)",
"legendFormat": "__auto"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(\n kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}\n)\n",
"legendFormat": "requests"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(\n kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}\n)\n",
"legendFormat": "limits"
}
],
"title": "CPU Usage",
2024-07-19 14:14:43 +00:00
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"axisColorMode": "thresholds",
"axisSoftMax": 1,
"axisSoftMin": 0,
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true,
"thresholdsStyle": {
"mode": "dashed+area"
}
},
2024-07-19 14:14:43 +00:00
"unit": "percentunit"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0.25
}
]
}
},
{
"id": "color",
"value": {
"mode": "thresholds",
"seriesBy": "lastNotNull"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 7
},
"id": 2,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(increase(container_cpu_cfs_throttled_periods_total{job=\"kubelet\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (container) /sum(increase(container_cpu_cfs_periods_total{job=\"kubelet\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (container)",
"legendFormat": "__auto"
}
],
"title": "CPU Throttling",
2024-07-19 14:14:43 +00:00
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/%/"
},
"properties": [
{
"id": "unit",
"value": "percentunit"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 14
},
"id": 3,
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)",
"format": "table",
"instant": true
}
],
"title": "CPU Quota",
2024-07-19 14:14:43 +00:00
"transformations": [
{
2024-07-19 14:14:43 +00:00
"id": "joinByField",
"options": {
"byField": "container",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true
},
"indexByName": {
"Time 1": 0,
"Time 2": 1,
"Time 3": 2,
"Time 4": 3,
"Time 5": 4,
"Value #A": 6,
"Value #B": 7,
"Value #C": 8,
"Value #D": 9,
"Value #E": 10,
"container": 5
},
"renameByName": {
"Value #A": "CPU Usage",
"Value #B": "CPU Requests",
"Value #C": "CPU Requests %",
"Value #D": "CPU Limits",
"Value #E": "CPU Limits %",
"container": "Container"
}
2024-07-19 14:14:43 +00:00
}
}
],
2024-07-19 14:14:43 +00:00
"type": "table"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "dash"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "C"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "dash"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 21
},
"id": 4,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container)",
"legendFormat": "__auto"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(\n kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"memory\"}\n)\n",
"legendFormat": "requests"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(\n kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"memory\"}\n)\n",
"legendFormat": "limits"
}
],
2024-07-19 14:14:43 +00:00
"title": "Memory Usage (WSS)",
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/%/"
},
"properties": [
{
"id": "unit",
"value": "percentunit"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 28
},
"id": 5,
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", image!=\"\"}) by (container) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
"format": "table",
"instant": true
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(container_memory_rss{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(container_memory_cache{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(container_memory_swap{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)",
"format": "table",
"instant": true
}
],
"title": "Memory Quota",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "container",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true,
"Time 6": true,
"Time 7": true,
"Time 8": true
},
"indexByName": {
"Time 1": 0,
"Time 2": 1,
"Time 3": 2,
"Time 4": 3,
"Time 5": 4,
"Time 6": 5,
"Time 7": 6,
"Time 8": 7,
"Value #A": 9,
"Value #B": 10,
"Value #C": 11,
"Value #D": 12,
"Value #E": 13,
"Value #F": 14,
"Value #G": 15,
"Value #H": 16,
"container": 8
},
"renameByName": {
"Value #A": "Memory Usage",
"Value #B": "Memory Requests",
"Value #C": "Memory Requests %",
"Value #D": "Memory Limits",
"Value #E": "Memory Limits %",
"Value #F": "Memory Usage (RSS)",
"Value #G": "Memory Usage (Cache)",
"Value #H": "Memory Usage (Swap)",
"container": "Container"
}
2024-07-19 14:14:43 +00:00
}
}
],
2024-07-19 14:14:43 +00:00
"type": "table"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "Bps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 35
},
"id": 6,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(irate(container_network_receive_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"legendFormat": "__auto"
}
],
"title": "Receive Bandwidth",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "Bps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 35
},
"id": 7,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
2024-07-19 14:14:43 +00:00
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(rate(container_network_transmit_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"legendFormat": "__auto"
}
],
"title": "Transmit Bandwidth",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "pps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 42
},
"id": 8,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(rate(container_network_receive_packets_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"legendFormat": "__auto"
}
],
2024-07-19 14:14:43 +00:00
"title": "Rate of Received Packets",
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "pps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 42
},
"id": 9,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(rate(container_network_transmit_packets_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"legendFormat": "__auto"
}
],
"title": "Rate of Transmitted Packets",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "pps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 49
},
"id": 10,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
2024-07-19 14:14:43 +00:00
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(rate(container_network_receive_packets_dropped_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"legendFormat": "__auto"
}
],
"title": "Rate of Received Packets Dropped",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "pps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 49
},
"id": 11,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum(rate(container_network_transmit_packets_dropped_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"legendFormat": "__auto"
}
],
2024-07-19 14:14:43 +00:00
"title": "Rate of Transmitted Packets Dropped",
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "iops"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 56
},
"id": 12,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "ceil(sum by(pod) (rate(container_fs_reads_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])))",
"legendFormat": "Reads"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "ceil(sum by(pod) (rate(container_fs_writes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\",namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])))",
"legendFormat": "Writes"
}
],
"title": "IOPS (Pod)",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
"unit": "Bps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 56
},
"id": 13,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(pod) (rate(container_fs_reads_bytes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval]))",
"legendFormat": "Reads"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(pod) (rate(container_fs_writes_bytes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval]))",
"legendFormat": "Writes"
}
],
2024-07-19 14:14:43 +00:00
"title": "ThroughPut (Pod)",
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "iops"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 63
},
"id": 14,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
2024-07-19 14:14:43 +00:00
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "ceil(sum by(container) (rate(container_fs_reads_total{job=\"kubelet\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval])))",
"legendFormat": "__auto"
}
],
"title": "IOPS (Containers)",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "Bps"
}
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 63
},
"id": 15,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(container) (rate(container_fs_reads_bytes_total{job=\"kubelet\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"legendFormat": "__auto"
}
],
2024-07-19 14:14:43 +00:00
"title": "ThroughPut (Containers)",
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/IOPS/"
},
"properties": [
{
"id": "unit",
"value": "iops"
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/Throughput/"
},
"properties": [
{
"id": "unit",
"value": "Bps"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 70
},
"id": 16,
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum by(container) (rate(container_fs_reads_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"format": "table",
"instant": true
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(container) (rate(container_fs_writes_total{job=\"kubelet\",device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(container) (rate(container_fs_reads_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(container) (rate(container_fs_reads_bytes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum by(container) (rate(container_fs_writes_bytes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"format": "table",
"instant": true
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum by(container) (rate(container_fs_reads_bytes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", device=~\"(/dev.+)|mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|dasd.+\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))",
"format": "table",
"instant": true
}
],
"title": "Current Storage IO",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "container",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true,
"Time 6": true
},
"indexByName": {
"Time 1": 0,
"Time 2": 1,
"Time 3": 2,
"Time 4": 3,
"Time 5": 4,
"Time 6": 5,
"Value #A": 7,
"Value #B": 8,
"Value #C": 9,
"Value #D": 10,
"Value #E": 11,
"Value #F": 12,
"container": 6
},
"renameByName": {
"Value #A": "IOPS(Reads)",
"Value #B": "IOPS(Writes)",
"Value #C": "IOPS(Reads + Writes)",
"Value #D": "Throughput(Read)",
"Value #E": "Throughput(Write)",
"Value #F": "Throughput(Read + Write)",
"container": "Container"
}
2024-07-19 14:14:43 +00:00
}
}
],
2024-07-19 14:14:43 +00:00
"type": "table"
}
],
2024-07-19 14:14:43 +00:00
"refresh": "10s",
"schemaVersion": 39,
"tags": [
"kubernetes"
],
"templating": {
"list": [
{
"current": {
2024-07-19 14:14:43 +00:00
"selected": true,
"text": "default",
"value": "default"
},
"hide": 0,
"label": "Data source",
"name": "datasource",
"query": "prometheus",
"regex": "",
"type": "datasource"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"hide": 2,
2024-07-19 14:14:43 +00:00
"label": "cluster",
"name": "cluster",
"query": "label_values(up{job=\"kube-state-metrics\"}, cluster)",
"refresh": 2,
"sort": 1,
2024-07-19 14:14:43 +00:00
"type": "query"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"hide": 0,
2024-07-19 14:14:43 +00:00
"label": "namespace",
"name": "namespace",
"query": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", cluster=\"$cluster\"}, namespace)",
"refresh": 2,
"sort": 1,
2024-07-19 14:14:43 +00:00
"type": "query"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"hide": 0,
2024-07-19 14:14:43 +00:00
"label": "pod",
"name": "pod",
"query": "label_values(kube_pod_info{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\"}, pod)",
"refresh": 2,
"sort": 1,
2024-07-19 14:14:43 +00:00
"type": "query"
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timezone": "UTC",
"title": "Compute Resources / Pod",
2024-07-19 14:14:43 +00:00
"uid": "6581e46e4e5c7ba40a07646395ef7b23"
}