125 lines
3.3 KiB
JSON
125 lines
3.3 KiB
JSON
{
|
|
"dashboard": {
|
|
"id": null,
|
|
"title": "FischerX 系统概览",
|
|
"tags": ["fischerx", "system"],
|
|
"timezone": "browser",
|
|
"schemaVersion": 38,
|
|
"version": 1,
|
|
"refresh": "5s",
|
|
"panels": [
|
|
{
|
|
"title": "CPU使用率",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 70 },
|
|
{ "color": "red", "value": 85 }
|
|
]
|
|
},
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"gridPos": { "x": 0, "y": 0, "w": 6, "h": 4 }
|
|
},
|
|
{
|
|
"title": "内存使用率",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "100 - ((node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * 100)",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 75 },
|
|
{ "color": "red", "value": 90 }
|
|
]
|
|
},
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"gridPos": { "x": 6, "y": 0, "w": 6, "h": 4 }
|
|
},
|
|
{
|
|
"title": "磁盘使用率",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "100 - ((node_filesystem_avail_bytes{mountpoint=\"/\",fstype!=\"rootfs\"} / node_filesystem_size_bytes{mountpoint=\"/\",fstype!=\"rootfs\"}) * 100)",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 80 },
|
|
{ "color": "red", "value": 90 }
|
|
]
|
|
},
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"gridPos": { "x": 12, "y": 0, "w": 6, "h": 4 }
|
|
},
|
|
{
|
|
"title": "网络流量",
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "irate(node_network_receive_bytes_total[5m])",
|
|
"legendFormat": "RX - {{device}}"
|
|
},
|
|
{
|
|
"expr": "-irate(node_network_transmit_bytes_total[5m])",
|
|
"legendFormat": "TX - {{device}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "bytes"
|
|
}
|
|
},
|
|
"gridPos": { "x": 0, "y": 4, "w": 12, "h": 6 }
|
|
},
|
|
{
|
|
"title": "系统负载",
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "node_load1",
|
|
"legendFormat": "1分钟负载"
|
|
},
|
|
{
|
|
"expr": "node_load5",
|
|
"legendFormat": "5分钟负载"
|
|
},
|
|
{
|
|
"expr": "node_load15",
|
|
"legendFormat": "15分钟负载"
|
|
}
|
|
],
|
|
"gridPos": { "x": 12, "y": 4, "w": 12, "h": 6 }
|
|
}
|
|
]
|
|
}
|
|
}
|