# use-method-dashboard.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: use-method-dashboard
namespace: monitoring
labels:
grafana_dashboard: "true"
annotations:
grafana_folder: "System"
data:
use-method.json: |-
{
"title": "USE Method - System Resources",
"uid": "use-method",
"panels": [
{
"title": "CPU Utilization",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 0},
"targets": [
{
"expr": "100 - (avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
"legendFormat": "{{instance}}"
}
]
},
{
"title": "CPU Saturation (Load Average)",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 8, "y": 0},
"targets": [
{
"expr": "node_load1 / count without(cpu, mode) (node_cpu_seconds_total{mode=\"idle\"})",
"legendFormat": "{{instance}}"
}
]
},
{
"title": "Memory Utilization",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 8},
"targets": [
{
"expr": "(1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100",
"legendFormat": "{{instance}}"
}
]
},
{
"title": "Memory Saturation (Swap)",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 8, "y": 8},
"targets": [
{
"expr": "rate(node_vmstat_pswpin[5m]) + rate(node_vmstat_pswpout[5m])",
"legendFormat": "{{instance}}"
}
]
},
{
"title": "Disk Utilization",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 16},
"targets": [
{
"expr": "rate(node_disk_io_time_seconds_total[5m]) * 100",
"legendFormat": "{{instance}} - {{device}}"
}
]
},
{
"title": "Disk Errors",
"type": "stat",
"gridPos": {"h": 8, "w": 8, "x": 16, "y": 0},
"targets": [
{
"expr": "increase(node_disk_io_time_weighted_seconds_total[1h])",
"legendFormat": "{{instance}}"
}
]
}
]
}