From 6778671d89181a30a068d72682b096d2946e0ba8 Mon Sep 17 00:00:00 2001 From: "tom.chivert" Date: Wed, 22 Oct 2025 12:19:00 +0200 Subject: [PATCH] Fix node variable --- files/dashboards/proxmox.json | 697 ++++++++++++++++++++-------------- 1 file changed, 412 insertions(+), 285 deletions(-) diff --git a/files/dashboards/proxmox.json b/files/dashboards/proxmox.json index 345c57f..22957e7 100644 --- a/files/dashboards/proxmox.json +++ b/files/dashboards/proxmox.json @@ -27,19 +27,368 @@ "description": "Proxmox Virtual Environment Dashboard", "editable": true, "fiscalYearStartMonth": 0, - "gnetId": 10347, "graphTooltip": 0, - "id": 27, + "id": 10, "links": [], - "liveNow": false, "panels": [ { - "columns": [], "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, - "fontSize": "100%", + "fieldConfig": { + "defaults": { + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "footer": { + "reducers": [] + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.hideFrom.viz", + "value": true + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "displayName", + "value": "ID" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "displayName", + "value": "Name" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "type" + }, + "properties": [ + { + "id": "displayName", + "value": "Type" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #A" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.hideFrom.viz", + "value": true + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #B" + }, + "properties": [ + { + "id": "displayName", + "value": "Status" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.align" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 0 + }, + { + "color": "#56A64B", + "value": 0 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #C" + }, + "properties": [ + { + "id": "displayName", + "value": "vCPUs" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #D" + }, + "properties": [ + { + "id": "displayName", + "value": "Memory" + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #E" + }, + "properties": [ + { + "id": "displayName", + "value": "Mem usage (%)" + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.align" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 0 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #F" + }, + "properties": [ + { + "id": "displayName", + "value": "Disk" + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #G" + }, + "properties": [ + { + "id": "displayName", + "value": "Disk usage (%)" + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.align" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 0 + } + ] + } + } + ] + } + ] + }, "gridPos": { "h": 10, "w": 14, @@ -47,211 +396,11 @@ "y": 0 }, "id": 17, - "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true + "options": { + "cellHeight": "sm", + "showHeader": true }, - "styles": [ - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "ID", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "id", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Name", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "name", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Type", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "type", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Status", - "align": "auto", - "colorMode": "value", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "#56A64B", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [ - "0.5" - ], - "type": "string", - "unit": "short", - "valueMaps": [ - { - "text": "stopped", - "value": "0" - }, - { - "text": "running", - "value": "1" - } - ] - }, - { - "alias": "vCPUs", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Memory", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 1, - "mappingType": 1, - "pattern": "Value #D", - "thresholds": [], - "type": "number", - "unit": "bytes" - }, - { - "alias": "Mem usage (%)", - "align": "auto", - "colorMode": "value", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #E", - "thresholds": [ - "0.75", - " 0.9" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Disk", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 1, - "mappingType": 1, - "pattern": "Value #F", - "thresholds": [], - "type": "number", - "unit": "bytes" - }, - { - "alias": "Disk usage (%)", - "align": "auto", - "colorMode": "value", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "mappingType": 1, - "pattern": "Value #G", - "thresholds": [ - "0.7", - " 0.9" - ], - "type": "number", - "unit": "percentunit" - } - ], + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -345,8 +494,15 @@ } ], "title": "Resource allocation summary", - "transform": "table", - "type": "table-old" + "transformations": [ + { + "id": "merge", + "options": { + "reducers": [] + } + } + ], + "type": "table" }, { "datasource": { @@ -377,7 +533,7 @@ "steps": [ { "color": "#299c46", - "value": null + "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", @@ -400,10 +556,10 @@ "y": 0 }, "id": 7, - "interval": "", - "links": [], "maxDataPoints": 100, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -413,9 +569,10 @@ "values": false }, "showThresholdLabels": false, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -463,7 +620,7 @@ "steps": [ { "color": "#299c46", - "value": null + "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", @@ -486,9 +643,10 @@ "y": 5 }, "id": 8, - "links": [], "maxDataPoints": 100, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -498,9 +656,10 @@ "values": false }, "showThresholdLabels": false, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -530,11 +689,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -543,6 +704,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, @@ -550,6 +712,7 @@ "type": "linear" }, "showPoints": "never", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -567,7 +730,7 @@ "steps": [ { "color": "transparent", - "value": null + "value": 0 }, { "color": "red", @@ -586,7 +749,6 @@ "y": 10 }, "id": 2, - "links": [], "options": { "legend": { "calcs": [ @@ -599,11 +761,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "asc" } }, - "pluginVersion": "9.4.0-96993pre", + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -632,11 +795,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -645,6 +810,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, @@ -652,6 +818,7 @@ "type": "linear" }, "showPoints": "never", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -670,7 +837,7 @@ "steps": [ { "color": "transparent", - "value": null + "value": 0 }, { "color": "red", @@ -689,7 +856,6 @@ "y": 10 }, "id": 5, - "links": [], "options": { "legend": { "calcs": [ @@ -702,11 +868,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "9.4.0-96993pre", + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -753,7 +920,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "yellow", @@ -776,8 +943,9 @@ "y": 20 }, "id": 11, - "links": [], "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -788,9 +956,10 @@ }, "showThresholdLabels": false, "showThresholdMarkers": true, + "sizing": "auto", "text": {} }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -822,6 +991,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -848,7 +1018,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "red", @@ -867,7 +1037,6 @@ "y": 20 }, "id": 15, - "links": [], "options": { "barRadius": 0, "barWidth": 0.8, @@ -883,13 +1052,14 @@ "showValue": "never", "stacking": "none", "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, - "pluginVersion": "9.4.0-96993pre", + "pluginVersion": "12.2.1", "targets": [ { "datasource": { @@ -956,8 +1126,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" }, { "color": "orange", @@ -979,9 +1148,7 @@ "x": 0, "y": 31 }, - "hideTimeOverride": false, "id": 9, - "links": [], "options": { "legend": { "calcs": [ @@ -1094,8 +1261,6 @@ "y": 43 }, "id": 13, - "interval": "", - "links": [], "options": { "legend": { "calcs": [ @@ -1210,8 +1375,6 @@ "y": 53 }, "id": 12, - "interval": "", - "links": [], "options": { "legend": { "calcs": [ @@ -1247,10 +1410,9 @@ "type": "timeseries" } ], + "preload": false, "refresh": "1m", - "revision": 1, - "schemaVersion": 38, - "style": "dark", + "schemaVersion": 42, "tags": [ "Proxmox", "Prometheus" @@ -1259,7 +1421,6 @@ "list": [ { "current": { - "selected": false, "text": "sv3", "value": "sv3" }, @@ -1270,7 +1431,6 @@ "definition": "label_values(pve_node_info, instance)", "hide": 2, "includeAll": false, - "multi": false, "name": "instance", "options": [], "query": { @@ -1279,16 +1439,11 @@ }, "refresh": 2, "regex": "", - "skipUrlSync": false, "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "current": { - "selected": false, "text": "sv5", "value": "sv5" }, @@ -1296,21 +1451,18 @@ "type": "prometheus", "uid": "yPhvsDP7k" }, - "definition": "label_values(pve_node_info{instance=\"$instance\"},name)", - "hide": 0, + "definition": "label_values(pve_node_info,name)", "includeAll": false, "label": "Node", - "multi": false, "name": "node", "options": [], "query": { - "query": "label_values(pve_node_info{instance=\"$instance\"},name)", - "refId": "StandardVariableQuery" + "qryType": 1, + "query": "label_values(pve_node_info,name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -1319,34 +1471,9 @@ "from": "now-6h", "to": "now" }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, + "timepicker": {}, "timezone": "", "title": "Proxmox", "uid": "Dp7Cd57Zza", - "version": 10, - "weekStart": "" + "version": 1 }