mirror of
https://github.com/ced4568/ced-k3s-homelab.git
synced 2026-08-13 06:24:02 +00:00
139 lines
2.7 KiB
JSON
139 lines
2.7 KiB
JSON
{
|
|
"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": ""
|
|
}
|
|
]
|
|
}
|
|
} |