Initial commit: Ced's K3s HomeLab

This commit is contained in:
2025-12-06 22:22:42 -06:00
commit 188651954e
20 changed files with 1078 additions and 0 deletions
@@ -0,0 +1,139 @@
{
"id": null,
"uid": "ced-cluster-overview",
"title": "Ced's K3s Cluster Overview",
"tags": [
"k3s",
"cluster",
"ced-noc"
],
"timezone": "browser",
"schemaVersion": 38,
"version": 1,
"refresh": "30s",
"panels": [
{
"type": "stat",
"title": "Total Nodes",
"id": 1,
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 0
},
"targets": [
{
"expr": "count(kube_node_info)",
"refId": "A"
}
]
},
{
"type": "stat",
"title": "Ready Nodes",
"id": 2,
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"y": 0
},
"targets": [
{
"expr": "count(kube_node_status_condition{condition=\"Ready\",status=\"true\"})",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Node CPU Usage (%)",
"id": 3,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 4
},
"targets": [
{
"expr": "100 - (avg by (instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
"legendFormat": "{{instance}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Node Memory Usage (%)",
"id": 4,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 4
},
"targets": [
{
"expr": "(1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100",
"legendFormat": "{{instance}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Pods per Namespace",
"id": 5,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 12
},
"targets": [
{
"expr": "count(kube_pod_info) by (namespace)",
"legendFormat": "{{namespace}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "API Server Request Rate",
"id": 6,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 12
},
"targets": [
{
"expr": "sum(rate(apiserver_request_total[5m])) by (verb)",
"legendFormat": "{{verb}}",
"refId": "A"
}
]
}
],
"templating": {
"list": [
{
"name": "namespace",
"type": "query",
"datasource": "Prometheus",
"query": "label_values(kube_pod_info, namespace)",
"current": {
"text": "All",
"value": ".*"
},
"includeAll": true,
"multi": true,
"regex": ""
}
]
}
}