{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Advanced LXC container monitoring dashboard for Proxmox", "editable": true, "fiscalYearStartMonth": 0, "gnetId": null, "graphTooltip": 1, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 0, "text": "DOWN" }, "1": { "color": "green", "index": 1, "text": "UP" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] } } }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 0 }, "id": 1, "options": { "showHeader": true, "sortBy": [ { "desc": false, "displayName": "Status" } ] }, "pluginVersion": "9.5.2", "targets": [ { "expr": "up{type=\"lxc-container\"}", "format": "table", "instant": true, "refId": "A" }, { "expr": "100 - (avg by(instance, alias) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100)", "format": "table", "instant": true, "refId": "B" }, { "expr": "(node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100", "format": "table", "instant": true, "refId": "C" }, { "expr": "(node_filesystem_avail_bytes{mountpoint=\"/\", type=\"lxc-container\"} / node_filesystem_size_bytes{mountpoint=\"/\", type=\"lxc-container\"}) * 100", "format": "table", "instant": true, "refId": "D" }, { "expr": "node_load5{type=\"lxc-container\"}", "format": "table", "instant": true, "refId": "E" } ], "title": "📋 Overview - All LXC Containers", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "__name__": true, "device": true, "fstype": true, "job": true, "mountpoint": true, "type": true }, "indexByName": { "alias": 0, "instance": 1, "Value #A": 2, "Value #B": 3, "Value #C": 4, "Value #D": 5, "Value #E": 6 }, "renameByName": { "Value #A": "Status", "Value #B": "CPU %", "Value #C": "RAM %", "Value #D": "Disk Free %", "Value #E": "Load Avg", "alias": "Container", "instance": "IP Address" } } } ], "type": "table" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" } }, "gridPos": { "h": 6, "w": 6, "x": 0, "y": 9 }, "id": 20, "options": { "displayLabels": [ "percent" ], "legend": { "displayMode": "table", "placement": "right", "values": [ "value" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single" } }, "targets": [ { "expr": "count(up{type=\"lxc-container\"} == 1)", "legendFormat": "UP", "refId": "A" }, { "expr": "count(up{type=\"lxc-container\"} == 0)", "legendFormat": "DOWN", "refId": "B" } ], "title": "🎯 Container Status", "type": "piechart" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" } }, "gridPos": { "h": 3, "w": 3, "x": 6, "y": 9 }, "id": 21, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "count(up{type=\"lxc-container\"})", "refId": "A" } ], "title": "📦 Total Containers", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 1 }, { "color": "red", "value": 3 } ] }, "unit": "short" } }, "gridPos": { "h": 3, "w": 3, "x": 9, "y": 9 }, "id": 22, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "count(ALERTS{alertstate=\"firing\"})", "refId": "A" } ], "title": "🚨 Active Alerts", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 60 }, { "color": "red", "value": 80 } ] }, "unit": "percent" } }, "gridPos": { "h": 3, "w": 6, "x": 12, "y": 9 }, "id": 23, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "avg(100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100))", "legendFormat": "Average CPU", "refId": "A" } ], "title": "🔥 Average CPU Load", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 60 }, { "color": "red", "value": 80 } ] }, "unit": "percent" } }, "gridPos": { "h": 3, "w": 6, "x": 18, "y": 9 }, "id": 24, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "avg((node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100)", "legendFormat": "Average RAM", "refId": "A" } ], "title": "💾 Average RAM Usage", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "unit": "Bps" } }, "gridPos": { "h": 3, "w": 3, "x": 6, "y": 12 }, "id": 25, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "sum(rate(node_network_receive_bytes_total{type=\"lxc-container\"}[5m]))", "refId": "A" } ], "title": "📥 Network IN", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "unit": "Bps" } }, "gridPos": { "h": 3, "w": 3, "x": 9, "y": 12 }, "id": 26, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "sum(rate(node_network_transmit_bytes_total{type=\"lxc-container\"}[5m]))", "refId": "A" } ], "title": "📤 Network OUT", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 20 }, { "color": "red", "value": 10 } ] }, "unit": "percent" } }, "gridPos": { "h": 3, "w": 6, "x": 12, "y": 12 }, "id": 27, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "avg((node_filesystem_avail_bytes{mountpoint=\"/\", type=\"lxc-container\"} / node_filesystem_size_bytes{mountpoint=\"/\", type=\"lxc-container\"}) * 100)", "refId": "A" } ], "title": "💿 Average Free Space", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "purple", "value": null } ] }, "unit": "Bps" } }, "gridPos": { "h": 3, "w": 6, "x": 18, "y": 12 }, "id": 28, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "sum(rate(node_disk_read_bytes_total{type=\"lxc-container\"}[5m]))", "legendFormat": "Read", "refId": "A" }, { "expr": "sum(rate(node_disk_written_bytes_total{type=\"lxc-container\"}[5m]))", "legendFormat": "Write", "refId": "B" } ], "title": "💽 Total Disk I/O", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisPlacement": "auto", "drawStyle": "line", "fillOpacity": 20, "lineWidth": 2, "showPoints": "never", "spanNulls": true, "thresholdsStyle": { "mode": "line" } }, "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 60 }, { "color": "red", "value": 80 } ] }, "unit": "percent" } }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 15 }, "id": 2, "options": { "legend": { "calcs": [ "last", "max", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "targets": [ { "expr": "100 - (avg by(alias) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100)", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "🔥 CPU Usage by Container", "type": "timeseries" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisPlacement": "auto", "drawStyle": "line", "fillOpacity": 20, "lineWidth": 2, "showPoints": "never", "spanNulls": true, "thresholdsStyle": { "mode": "line" } }, "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 60 }, { "color": "red", "value": 80 } ] }, "unit": "percent" } }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 15 }, "id": 3, "options": { "legend": { "calcs": [ "last", "max", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "targets": [ { "expr": "(node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "💾 RAM Usage by Container", "type": "timeseries" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 20 }, { "color": "green", "value": 40 } ] }, "unit": "percent" } }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "id": 4, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": true, "showThresholdMarkers": true }, "targets": [ { "expr": "(node_filesystem_avail_bytes{mountpoint=\"/\", type=\"lxc-container\"} / node_filesystem_size_bytes{mountpoint=\"/\", type=\"lxc-container\"}) * 100", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "💿 Free Disk Space by Container", "type": "gauge" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisPlacement": "auto", "drawStyle": "line", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": true }, "unit": "iops" } }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "id": 29, "options": { "legend": { "calcs": [ "last", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "targets": [ { "expr": "rate(node_disk_reads_completed_total{type=\"lxc-container\"}[5m])", "legendFormat": "{{alias}} - Read", "refId": "A" }, { "expr": "rate(node_disk_writes_completed_total{type=\"lxc-container\"}[5m])", "legendFormat": "{{alias}} - Write", "refId": "B" } ], "title": "💽 Disk IOPS by Container", "type": "timeseries" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisPlacement": "auto", "drawStyle": "line", "fillOpacity": 20, "lineWidth": 2, "showPoints": "never", "spanNulls": true }, "unit": "Bps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*Receive.*|.*RX.*/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 32 }, "id": 5, "options": { "legend": { "calcs": [ "mean", "max", "last" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "targets": [ { "expr": "rate(node_network_receive_bytes_total{device!=\"lo\", type=\"lxc-container\"}[5m])", "legendFormat": "{{alias}} - RX", "refId": "A" }, { "expr": "rate(node_network_transmit_bytes_total{device!=\"lo\", type=\"lxc-container\"}[5m])", "legendFormat": "{{alias}} - TX", "refId": "B" } ], "title": "🌐 Network Traffic by Container", "type": "timeseries" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 1 }, { "color": "red", "value": 2 } ] }, "unit": "short" } }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 41 }, "id": 6, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "targets": [ { "expr": "node_load5{type=\"lxc-container\"}", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "📊 Load Average (5min)", "type": "stat" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "dtdurations" } }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 41 }, "id": 7, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value_and_name" }, "targets": [ { "expr": "time() - node_boot_time_seconds{type=\"lxc-container\"}", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "⏰ Container Uptime", "type": "stat" }, { "datasource": "Prometheus", "description": "Containers with highest CPU usage", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 30 }, { "color": "red", "value": 50 } ] }, "unit": "percent" } }, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 41 }, "id": 30, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value_and_name" }, "targets": [ { "expr": "topk(3, avg by(alias) (100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100)))", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "🏆 Top 3 CPU Users", "type": "stat" }, { "datasource": "Prometheus", "description": "Containers with highest RAM usage", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 60 }, { "color": "red", "value": 80 } ] }, "unit": "percent" } }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 41 }, "id": 31, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value_and_name" }, "targets": [ { "expr": "topk(3, avg by(alias) ((node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100))", "legendFormat": "{{alias}}", "refId": "A" } ], "title": "🏆 Top 3 RAM Users", "type": "stat" } ], "refresh": "30s", "schemaVersion": 37, "style": "dark", "tags": [ "fedia-deepseek", "proxmox", "lxc", "monitoring" ], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "10s", "30s", "1m", "5m", "15m", "30m", "1h" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "browser", "title": "fedia-deepseek LXC Monitoring Dashboard", "uid": "fedia-deepseek-lxc-monitoring", "version": 1, "weekStart": "" }