{
"__inputs": [],
"__requires": [],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": { "type": "grafana", "uid": "-- Grafana --" },
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
"id": 100,
"panels": [],
"title": "클러스터 요약 (현재 값)",
"type": "row"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] },
"unit": "short"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 },
"id": 1,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"textMode": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "CPU Request",
"refId": "A"
}
],
"title": "CPU Request (core)",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": { "mode": "absolute", "steps": [ { "color": "orange", "value": null } ] },
"unit": "short"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 },
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"textMode": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "CPU Limit",
"refId": "A"
}
],
"title": "CPU Limit (core)",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 0.7 },
{ "color": "red", "value": 0.9 }
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 },
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"textMode": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(rate(container_cpu_usage_seconds_total{cluster=\"$cluster\", container!=\"\", container!=\"POD\"}[5m]))",
"legendFormat": "CPU Usage",
"refId": "A"
}
],
"title": "CPU 실사용 (core)",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 70 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"max": 100,
"min": 0
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 },
"id": 4,
"options": {
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "100 * sum(rate(container_cpu_usage_seconds_total{cluster=\"$cluster\", container!=\"\", container!=\"POD\"}[5m])) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "Usage / Request",
"refId": "A"
}
],
"title": "CPU 사용률 (Request 대비 %)",
"type": "gauge"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 70 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"max": 100,
"min": 0
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 },
"id": 5,
"options": {
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "100 * sum(rate(container_cpu_usage_seconds_total{cluster=\"$cluster\", container!=\"\", container!=\"POD\"}[5m])) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "Usage / Limit",
"refId": "A"
}
],
"title": "CPU 사용률 (Limit 대비 %)",
"type": "gauge"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 70 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"max": 100,
"min": 0
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 },
"id": 15,
"options": {
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "100 * sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"cpu\"}) / sum(kube_node_status_allocatable{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "Request / Allocatable",
"refId": "A"
}
],
"title": "CPU Request (노드 Allocatable 대비 %)",
"type": "gauge"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] },
"unit": "bytes"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 5 },
"id": 6,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"textMode": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Memory Request",
"refId": "A"
}
],
"title": "Memory Request",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": { "mode": "absolute", "steps": [ { "color": "orange", "value": null } ] },
"unit": "bytes"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 5 },
"id": 7,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"textMode": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Memory Limit",
"refId": "A"
}
],
"title": "Memory Limit",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 0.7 },
{ "color": "red", "value": 0.9 }
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 5 },
"id": 8,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"textMode": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", container!=\"\", container!=\"POD\"})",
"legendFormat": "Memory Usage",
"refId": "A"
}
],
"title": "Memory 실사용",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 70 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"max": 100,
"min": 0
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 5 },
"id": 9,
"options": {
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "100 * sum(container_memory_working_set_bytes{cluster=\"$cluster\", container!=\"\", container!=\"POD\"}) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Usage / Request",
"refId": "A"
}
],
"title": "Memory 사용률 (Request 대비 %)",
"type": "gauge"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 70 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"max": 100,
"min": 0
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 5 },
"id": 10,
"options": {
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "100 * sum(container_memory_working_set_bytes{cluster=\"$cluster\", container!=\"\", container!=\"POD\"}) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Usage / Limit",
"refId": "A"
}
],
"title": "Memory 사용률 (Limit 대비 %)",
"type": "gauge"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 70 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"max": 100,
"min": 0
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 5 },
"id": 16,
"options": {
"orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "100 * sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"memory\"}) / sum(kube_node_status_allocatable{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Request / Allocatable",
"refId": "A"
}
],
"title": "Memory Request (노드 Allocatable 대비 %)",
"type": "gauge"
},
{
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 9 },
"id": 200,
"panels": [],
"title": "CPU 시간별 추이 (클러스터 전체)",
"type": "row"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": { "type": "linear" },
"showPoints": "never",
"spanNulls": true,
"stacking": { "group": "A", "mode": "none" },
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] },
"unit": "short"
},
"overrides": [
{
"matcher": { "id": "byName", "options": "CPU Limit" },
"properties": [
{ "id": "custom.lineStyle", "value": { "dash": [10, 10], "fill": "dash" } },
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "red" } }
]
},
{
"matcher": { "id": "byName", "options": "CPU Request" },
"properties": [
{ "id": "custom.lineStyle", "value": { "dash": [10, 10], "fill": "dash" } },
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "orange" } }
]
},
{
"matcher": { "id": "byName", "options": "CPU Allocatable" },
"properties": [
{ "id": "custom.lineStyle", "value": { "dash": [2, 4], "fill": "dash" } },
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "purple" } }
]
},
{
"matcher": { "id": "byName", "options": "CPU Usage" },
"properties": [
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "green" } },
{ "id": "custom.fillOpacity", "value": 20 }
]
}
]
},
"gridPos": { "h": 9, "w": 24, "x": 0, "y": 10 },
"id": 11,
"options": {
"legend": { "calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "bottom", "showLegend": true },
"tooltip": { "mode": "multi", "sort": "desc" }
},
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(rate(container_cpu_usage_seconds_total{cluster=\"$cluster\", container!=\"\", container!=\"POD\"}[5m]))",
"legendFormat": "CPU Usage",
"refId": "A"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "CPU Request",
"refId": "B"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "CPU Limit",
"refId": "C"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_node_status_allocatable{cluster=\"$cluster\", resource=\"cpu\"})",
"legendFormat": "CPU Allocatable",
"refId": "D"
}
],
"title": "CPU: Usage vs Request vs Limit vs Allocatable (core)",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 19 },
"id": 300,
"panels": [],
"title": "Memory 시간별 추이 (클러스터 전체)",
"type": "row"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": { "type": "linear" },
"showPoints": "never",
"spanNulls": true,
"stacking": { "group": "A", "mode": "none" },
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] },
"unit": "bytes"
},
"overrides": [
{
"matcher": { "id": "byName", "options": "Memory Limit" },
"properties": [
{ "id": "custom.lineStyle", "value": { "dash": [10, 10], "fill": "dash" } },
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "red" } }
]
},
{
"matcher": { "id": "byName", "options": "Memory Request" },
"properties": [
{ "id": "custom.lineStyle", "value": { "dash": [10, 10], "fill": "dash" } },
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "orange" } }
]
},
{
"matcher": { "id": "byName", "options": "Memory Allocatable" },
"properties": [
{ "id": "custom.lineStyle", "value": { "dash": [2, 4], "fill": "dash" } },
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "purple" } }
]
},
{
"matcher": { "id": "byName", "options": "Memory Usage" },
"properties": [
{ "id": "color", "value": { "mode": "fixed", "fixedColor": "blue" } },
{ "id": "custom.fillOpacity", "value": 20 }
]
}
]
},
"gridPos": { "h": 9, "w": 24, "x": 0, "y": 20 },
"id": 12,
"options": {
"legend": { "calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "bottom", "showLegend": true },
"tooltip": { "mode": "multi", "sort": "desc" }
},
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", container!=\"\", container!=\"POD\"})",
"legendFormat": "Memory Usage",
"refId": "A"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Memory Request",
"refId": "B"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Memory Limit",
"refId": "C"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(kube_node_status_allocatable{cluster=\"$cluster\", resource=\"memory\"})",
"legendFormat": "Memory Allocatable",
"refId": "D"
}
],
"title": "Memory: Usage vs Request vs Limit vs Allocatable",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 39,
"tags": ["kubernetes", "cpu", "memory", "resources", "cluster"],
"templating": {
"list": [
{
"current": { "selected": false, "text": "Prometheus", "value": "Prometheus" },
"hide": 0,
"includeAll": false,
"label": "Data Source",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": { "selected": false, "text": "", "value": "" },
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"definition": "label_values(kube_pod_info, cluster)",
"hide": 0,
"includeAll": false,
"label": "Cluster",
"multi": false,
"name": "cluster",
"options": [],
"query": { "query": "label_values(kube_pod_info, cluster)", "refId": "StandardVariableQuery" },
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
},
"time": { "from": "now-6h", "to": "now" },
"timepicker": {
"refresh_intervals": ["10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
},
"timezone": "browser",
"title": "Kubernetes Cluster - CPU / Memory Request vs Limit vs Usage",
"uid": "k8s-cluster-cpu-mem-usage",
"version": 1,
"weekStart": ""
}