"description": "Cluster-wide view: who is using CPU/memory, what is Pending or restarting, how full the nodes' disks are, and whether the WireGuard-only internal services answer.",
"description": "blackbox-exporter probes of http://10.10.0.2:8081/ and :8084/ (monitoring/controllers/home/gateway-probe.yaml). 2 = both internal services answering.",
"description": "cAdvisor, all containers including pause-less init containers. Compare with the requests panel next to it.",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 7
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum by (namespace) (rate(container_cpu_usage_seconds_total{container!=\"\"}[5m]))",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "cores"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 55,
"type": "timeseries",
"title": "CPU requests by namespace",
"description": "Scheduler-visible requests \u2014 this is what makes a pod Pending, not usage.",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 7
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum by (namespace) (kube_pod_container_resource_requests{resource=\"cpu\"})",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "cores"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 56,
"type": "timeseries",
"title": "Memory usage by namespace",
"description": "",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 15
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum by (namespace) (container_memory_working_set_bytes{container!=\"\"})",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "bytes"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 57,
"type": "timeseries",
"title": "Memory requests by namespace",
"description": "",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 15
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum by (namespace) (kube_pod_container_resource_requests{resource=\"memory\"})",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "bytes"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 58,
"type": "row",
"title": "Top pods",
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 23
},
"panels": []
},
{
"id": 59,
"type": "timeseries",
"title": "Top 10 pods by CPU",
"description": "",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 24
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "topk(10, sum by (namespace, pod) (rate(container_cpu_usage_seconds_total{container!=\"\"}[5m])))",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}/{{pod}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "cores"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 60,
"type": "timeseries",
"title": "Top 10 pods by memory",
"description": "",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 24
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "topk(10, sum by (namespace, pod) (container_memory_working_set_bytes{container!=\"\"}))",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}/{{pod}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "bytes"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 61,
"type": "timeseries",
"title": "Pod restarts (24h, top 10)",
"description": "increase() over 24h. Values below 1 are container restarts that happened before the current scrape window started.",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 32
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "topk(10, sum by (namespace, pod) (increase(kube_pod_container_status_restarts_total[24h])))",
"refId": "A",
"editorMode": "code",
"range": true,
"instant": false,
"legendFormat": "{{namespace}}/{{pod}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 1,
"fillOpacity": 0,
"showPoints": "never"
},
"color": {
"mode": "palette-classic"
},
"unit": "short"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 62,
"type": "timeseries",
"title": "Internal gateway probe result",
"description": "1 = HTTP 2xx/3xx from blackbox-exporter every 30s. There is no Alertmanager in this stack, so this panel and Prometheus /alerts are the alerting surface.",
"content": "- **PVC usage is not charted, only requested capacity.** kubelet 1.34+ dropped the alpha\n `kubelet_volume_stats_*` metrics (its `/metrics/volumes` endpoint 404s on every node here), so\n there is nothing to chart per PV. Node filesystem usage is the honest proxy for \"how full is\n the disk these PVs live on\".\n- **Namespaces are not filtered.** With this few workloads an unfiltered board is more useful than a\n variable that hides the one namespace you needed to see.\n- **No Alertmanager.** Alerts from `PrometheusRule` objects are visible in Prometheus /alerts and in\n Grafana \u2192 Alerting, but nothing pages.\n"