incus-contrib/incusos/observability-dashboards/cluster-overview.json

560 lines
15 KiB
JSON

{
"uid": "incus-cluster-overview",
"title": "Incus Cluster Overview",
"description": "Overview of all Incus containers: CPU, memory, network, and disk I/O per instance.",
"tags": ["incus", "cluster", "containers"],
"timezone": "browser",
"schemaVersion": 39,
"version": 1,
"refresh": "30s",
"time": {
"from": "now-1h",
"to": "now"
},
"fiscalYearStartMonth": 0,
"liveNow": false,
"editable": true,
"graphTooltip": 1,
"templating": {
"list": []
},
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"panels": [
{
"type": "row",
"title": "Cluster Status",
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
"id": 1,
"panels": []
},
{
"type": "stat",
"title": "Total Containers",
"description": "Number of running Incus containers (instances reporting uptime).",
"gridPos": { "h": 4, "w": 8, "x": 0, "y": 1 },
"id": 2,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "count(incus_uptime_seconds)",
"legendFormat": "Containers",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 10 },
{ "color": "red", "value": 50 }
]
},
"unit": "none",
"color": { "mode": "thresholds" }
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto"
}
},
{
"type": "stat",
"title": "Total CPUs",
"description": "Sum of effective CPUs across all Incus instances.",
"gridPos": { "h": 4, "w": 8, "x": 8, "y": 1 },
"id": 3,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum(incus_cpu_effective_total)",
"legendFormat": "CPUs",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
},
"unit": "none",
"color": { "mode": "thresholds" }
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto"
}
},
{
"type": "stat",
"title": "Total Memory",
"description": "Sum of total memory across all Incus instances.",
"gridPos": { "h": 4, "w": 8, "x": 16, "y": 1 },
"id": 4,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum(incus_memory_MemTotal_bytes)",
"legendFormat": "Total Memory",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
},
"unit": "bytes",
"color": { "mode": "thresholds" }
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto"
}
},
{
"type": "row",
"title": "Per-Instance CPU",
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 },
"id": 5,
"panels": []
},
{
"type": "timeseries",
"title": "CPU Usage by Instance",
"description": "Per-second CPU time consumed by each Incus instance.",
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 6 },
"id": 6,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum by (name) (rate(incus_cpu_seconds_total[$__rate_interval]))",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 15,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": { "mode": "none", "group": "A" },
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"unit": "short",
"color": { "mode": "palette-classic" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
},
"options": {
"tooltip": { "mode": "multi", "sort": "desc" },
"legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] }
}
},
{
"type": "row",
"title": "Per-Instance Memory",
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 },
"id": 7,
"panels": []
},
{
"type": "timeseries",
"title": "Memory RSS by Instance",
"description": "Resident set size (RSS) memory usage per Incus instance over time.",
"gridPos": { "h": 8, "w": 14, "x": 0, "y": 15 },
"id": 8,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "incus_memory_RSS_bytes",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 15,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": { "mode": "none", "group": "A" },
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"unit": "bytes",
"color": { "mode": "palette-classic" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
},
"options": {
"tooltip": { "mode": "multi", "sort": "desc" },
"legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] }
}
},
{
"type": "bargauge",
"title": "Memory Usage % (RSS / Total)",
"description": "Current memory utilization per instance as RSS divided by total memory.",
"gridPos": { "h": 8, "w": 10, "x": 14, "y": 15 },
"id": 9,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "(incus_memory_RSS_bytes / incus_memory_MemTotal_bytes) * 100",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "yellow", "value": 60 },
{ "color": "orange", "value": 80 },
{ "color": "red", "value": 90 }
]
},
"unit": "percent",
"min": 0,
"max": 100,
"color": { "mode": "thresholds" }
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"orientation": "horizontal",
"displayMode": "gradient",
"showUnfilled": true,
"minVizWidth": 8,
"minVizHeight": 16,
"valueMode": "color"
}
},
{
"type": "row",
"title": "Network I/O",
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 23 },
"id": 10,
"panels": []
},
{
"type": "timeseries",
"title": "Network Receive Rate by Instance",
"description": "Inbound network throughput per Incus instance.",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 },
"id": 11,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum by (name) (rate(incus_network_receive_bytes_total[$__rate_interval]))",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 15,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": { "mode": "none", "group": "A" },
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"unit": "Bps",
"color": { "mode": "palette-classic" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
},
"options": {
"tooltip": { "mode": "multi", "sort": "desc" },
"legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] }
}
},
{
"type": "timeseries",
"title": "Network Transmit Rate by Instance",
"description": "Outbound network throughput per Incus instance.",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 },
"id": 12,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum by (name) (rate(incus_network_transmit_bytes_total[$__rate_interval]))",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 15,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": { "mode": "none", "group": "A" },
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"unit": "Bps",
"color": { "mode": "palette-classic" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
},
"options": {
"tooltip": { "mode": "multi", "sort": "desc" },
"legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] }
}
},
{
"type": "row",
"title": "Disk I/O",
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 32 },
"id": 13,
"panels": []
},
{
"type": "timeseries",
"title": "Disk Read Rate by Instance",
"description": "Disk read throughput per Incus instance.",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 33 },
"id": 14,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum by (name) (rate(incus_disk_read_bytes_total[$__rate_interval]))",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 15,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": { "mode": "none", "group": "A" },
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"unit": "Bps",
"color": { "mode": "palette-classic" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
},
"options": {
"tooltip": { "mode": "multi", "sort": "desc" },
"legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] }
}
},
{
"type": "timeseries",
"title": "Disk Write Rate by Instance",
"description": "Disk write throughput per Incus instance.",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 33 },
"id": 15,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "sum by (name) (rate(incus_disk_written_bytes_total[$__rate_interval]))",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 15,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": { "mode": "none", "group": "A" },
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"unit": "Bps",
"color": { "mode": "palette-classic" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
},
"options": {
"tooltip": { "mode": "multi", "sort": "desc" },
"legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] }
}
}
]
}