103 lines
3.0 KiB
JSON
103 lines
3.0 KiB
JSON
{
|
|
"uid": "homelab-host-overview",
|
|
"title": "Homelab / Host Overview",
|
|
"tags": ["homelab", "node-exporter", "glances-replacement"],
|
|
"timezone": "browser",
|
|
"schemaVersion": 39,
|
|
"version": 1,
|
|
"refresh": "30s",
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"panels": [
|
|
{
|
|
"id": 1,
|
|
"type": "timeseries",
|
|
"title": "CPU usage",
|
|
"datasource": "Prometheus",
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"expr": "100 - (avg(rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
|
|
"legendFormat": "CPU"
|
|
}
|
|
],
|
|
"fieldConfig": {"defaults": {"unit": "percent", "min": 0, "max": 100}, "overrides": []}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "timeseries",
|
|
"title": "Memory usage",
|
|
"datasource": "Prometheus",
|
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"expr": "100 * (1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes))",
|
|
"legendFormat": "Memory"
|
|
}
|
|
],
|
|
"fieldConfig": {"defaults": {"unit": "percent", "min": 0, "max": 100}, "overrides": []}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "timeseries",
|
|
"title": "Filesystem usage",
|
|
"datasource": "Prometheus",
|
|
"gridPos": {"h": 9, "w": 12, "x": 0, "y": 8},
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"expr": "100 * (1 - node_filesystem_avail_bytes{fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{fstype!~\"tmpfs|overlay\"})",
|
|
"legendFormat": "{{mountpoint}}"
|
|
}
|
|
],
|
|
"fieldConfig": {"defaults": {"unit": "percent", "min": 0, "max": 100}, "overrides": []},
|
|
"options": {"legend": {"displayMode": "list", "placement": "bottom"}}
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "timeseries",
|
|
"title": "Network throughput",
|
|
"datasource": "Prometheus",
|
|
"gridPos": {"h": 9, "w": 12, "x": 12, "y": 8},
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"expr": "rate(node_network_receive_bytes_total{device!~\"lo|veth.*|br-.*|docker.*\"}[5m])",
|
|
"legendFormat": "{{device}} RX"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"expr": "rate(node_network_transmit_bytes_total{device!~\"lo|veth.*|br-.*|docker.*\"}[5m])",
|
|
"legendFormat": "{{device}} TX"
|
|
}
|
|
],
|
|
"fieldConfig": {"defaults": {"unit": "Bps"}, "overrides": []},
|
|
"options": {"legend": {"displayMode": "list", "placement": "bottom"}}
|
|
},
|
|
{
|
|
"id": 5,
|
|
"type": "timeseries",
|
|
"title": "Disk IO",
|
|
"datasource": "Prometheus",
|
|
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 17},
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"expr": "rate(node_disk_read_bytes_total[5m])",
|
|
"legendFormat": "{{device}} read"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"expr": "rate(node_disk_written_bytes_total[5m])",
|
|
"legendFormat": "{{device}} write"
|
|
}
|
|
],
|
|
"fieldConfig": {"defaults": {"unit": "Bps"}, "overrides": []}
|
|
}
|
|
]
|
|
}
|