Files
symon/docker-compose/grafana/provisioning/dashboards/bottom-overview.json
2025-11-07 21:30:39 +01:00

279 lines
7.2 KiB
JSON

{
"title": "Symon System Overview",
"uid": "syon-overview",
"timezone": "browser",
"schemaVersion": 16,
"refresh": "5s",
"editable": true,
"panels": [
{
"id": 1,
"title": "CPU Usage by Core",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
"targets": [
{
"expr": "system_cpu_usage_percent",
"legendFormat": "Core {{cpu_id}}",
"refId": "CPU"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100
}
}
},
{
"id": 2,
"title": "Memory Usage",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
"targets": [
{
"expr": "system_memory_usage_bytes",
"legendFormat": "RAM Used",
"refId": "RAM"
},
{
"expr": "system_memory_total_bytes",
"legendFormat": "RAM Total",
"refId": "RAM_Total"
},
{
"expr": "system_swap_usage_bytes",
"legendFormat": "Swap Used",
"refId": "Swap"
},
{
"expr": "system_swap_total_bytes",
"legendFormat": "Swap Total",
"refId": "Swap_Total"
}
],
"fieldConfig": {
"defaults": {
"unit": "bytes"
}
}
},
{
"id": 3,
"title": "Network Traffic",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 8},
"targets": [
{
"expr": "system_network_rx_bytes_per_sec",
"legendFormat": "RX - {{interface}}",
"refId": "RX"
},
{
"expr": "system_network_tx_bytes_per_sec",
"legendFormat": "TX - {{interface}}",
"refId": "TX"
}
],
"fieldConfig": {
"defaults": {
"unit": "Bps"
}
}
},
{
"id": 4,
"title": "Disk Usage",
"type": "gauge",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 8},
"targets": [
{
"expr": "(system_disk_usage_bytes / system_disk_total_bytes) * 100",
"legendFormat": "{{mount}} ({{device}})",
"refId": "Disk"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{"value": 0, "color": "green"},
{"value": 70, "color": "yellow"},
{"value": 90, "color": "red"}
]
}
}
}
},
{
"id": 5,
"title": "Top 10 Processes by CPU",
"type": "table",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 16},
"targets": [
{
"expr": "topk(10, system_process_cpu_usage_percent and (time() - timestamp(system_process_cpu_usage_percent) < 30))",
"format": "table",
"instant": true,
"refId": "Process"
}
],
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"job": true,
"instance": true,
"exported_job": true,
"otel_scope_name": true
},
"indexByName": {
"name": 0,
"pid": 1,
"Value": 2
},
"renameByName": {
"name": "Process Name",
"pid": "PID",
"Value": "CPU %"
}
}
}
],
"options": {
"showHeader": true,
"sortBy": [
{
"displayName": "CPU %",
"desc": true
}
]
},
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"displayMode": "auto"
}
},
"overrides": [
{
"matcher": {"id": "byName", "options": "CPU %"},
"properties": [
{
"id": "unit",
"value": "percent"
},
{
"id": "custom.displayMode",
"value": "color-background"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{"value": 0, "color": "green"},
{"value": 50, "color": "yellow"},
{"value": 80, "color": "red"}
]
}
}
]
}
]
}
},
{
"id": 6,
"title": "Top 10 Processes by Memory",
"type": "table",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 16},
"targets": [
{
"expr": "topk(10, system_process_memory_usage_bytes and (time() - timestamp(system_process_memory_usage_bytes) < 30))",
"format": "table",
"instant": true,
"refId": "Process"
}
],
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"job": true,
"instance": true,
"exported_job": true,
"otel_scope_name": true
},
"indexByName": {
"name": 0,
"pid": 1,
"Value": 2
},
"renameByName": {
"name": "Process Name",
"pid": "PID",
"Value": "Memory"
}
}
}
],
"options": {
"showHeader": true,
"sortBy": [
{
"displayName": "Memory",
"desc": true
}
]
},
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"displayMode": "auto"
}
},
"overrides": [
{
"matcher": {"id": "byName", "options": "Memory"},
"properties": [
{
"id": "unit",
"value": "bytes"
},
{
"id": "custom.displayMode",
"value": "color-background"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{"value": 0, "color": "green"},
{"value": 1073741824, "color": "yellow"},
{"value": 2147483648, "color": "red"}
]
}
}
]
}
]
}
}
]
}