From acd0b62e8edea6df4da56d99104a489637202360 Mon Sep 17 00:00:00 2001 From: "Bauerheim, Marcus" Date: Sun, 9 Nov 2025 22:08:42 +0100 Subject: [PATCH] Fix panel positions --- proxmox/proxmox-pve.json | 519 +++++++++++++++++++-------------------- 1 file changed, 259 insertions(+), 260 deletions(-) diff --git a/proxmox/proxmox-pve.json b/proxmox/proxmox-pve.json index 4dc6fb6..915f3b6 100644 --- a/proxmox/proxmox-pve.json +++ b/proxmox/proxmox-pve.json @@ -467,163 +467,6 @@ ], "type": "bargauge" }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 28, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^version$/", - "values": false - }, - "showPercentChange": false, - "textMode": "value", - "wideLayout": true - }, - "pluginVersion": "12.2.0", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "pve_version_info{job=~\"$job\"}", - "format": "table", - "instant": true, - "legendFormat": "Version", - "range": false, - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - } - } - ], - "title": "Proxmox Version", - "transformations": [ - { - "id": "extractFields", - "options": { - "delimiter": ",", - "source": "version" - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 4 - }, - "id": 29, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "value", - "wideLayout": true - }, - "pluginVersion": "12.2.0", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "pve_uptime_seconds{job=~\"$job\",id=~\"node/.+\"}", - "instant": true, - "legendFormat": "{{__name__}}", - "range": false, - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - } - } - ], - "title": "Server Uptime", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 6 - }, - "id": 25, - "panels": [], - "title": "Details", - "type": "row" - }, { "datasource": { "type": "prometheus", @@ -669,7 +512,7 @@ "h": 2, "w": 3, "x": 0, - "y": 7 + "y": 6 }, "id": 22, "options": { @@ -778,7 +621,7 @@ "h": 2, "w": 3, "x": 3, - "y": 7 + "y": 6 }, "id": 20, "options": { @@ -871,48 +714,7 @@ }, "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "showValues": false, - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, "mappings": [], - "max": 1, - "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -920,39 +722,38 @@ "color": "green", "value": 0 }, - { - "color": "orange", - "value": 0.7 - }, { "color": "red", - "value": 0.9 + "value": 80 } ] - }, - "unit": "percentunit" + } }, "overrides": [] }, "gridPos": { - "h": 7, - "w": 7, - "x": 12, - "y": 7 + "h": 2, + "w": 3, + "x": 6, + "y": 6 }, - "id": 23, + "id": 28, "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^version$/", + "values": false }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, "pluginVersion": "12.2.0", "targets": [ @@ -962,11 +763,77 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "pve_cpu_usage_ratio{job=\"$job\"} and on(id) pve_node_info", - "legendFormat": "__auto", - "range": true, - "refId": "usage" + "exemplar": false, + "expr": "pve_version_info{job=~\"$job\"}", + "format": "table", + "instant": true, + "legendFormat": "Version", + "range": false, + "refId": "A" + } + ], + "title": "Proxmox Version", + "transformations": [ + { + "id": "extractFields", + "options": { + "delimiter": ",", + "source": "version" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "s" }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 3, + "x": 9, + "y": 6 + }, + "id": 29, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "12.2.0", + "targets": [ { "datasource": { "type": "prometheus", @@ -974,31 +841,28 @@ }, "editorMode": "code", "exemplar": false, - "expr": "pve_cpu_usage_limit{job=\"$job\"} and on(id) pve_node_info", - "format": "table", - "hide": false, + "expr": "pve_uptime_seconds{job=~\"$job\",id=~\"node/.+\"}", "instant": true, - "legendFormat": "__auto", + "legendFormat": "{{__name__}}", "range": false, - "refId": "total" + "refId": "A" } ], - "title": "CPU history", - "transformations": [ - { - "id": "configFromData", - "options": { - "configRefId": "total", - "mappings": [ - { - "fieldName": "Value", - "handlerKey": "max" - } - ] - } - } - ], - "type": "timeseries" + "title": "Server Uptime", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 25, + "panels": [], + "title": "Details", + "type": "row" }, { "datasource": { @@ -1466,6 +1330,8 @@ "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", @@ -1495,9 +1361,10 @@ } }, "mappings": [], + "max": 1, "min": 0, "thresholds": { - "mode": "percentage", + "mode": "absolute", "steps": [ { "color": "green", @@ -1505,15 +1372,15 @@ }, { "color": "orange", - "value": 60 + "value": 0.7 }, { "color": "red", - "value": 90 + "value": 0.9 } ] }, - "unit": "bytes" + "unit": "percentunit" }, "overrides": [] }, @@ -1521,9 +1388,9 @@ "h": 7, "w": 7, "x": 12, - "y": 14 + "y": 9 }, - "id": 24, + "id": 23, "options": { "legend": { "calcs": [], @@ -1545,7 +1412,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "pve_memory_usage_bytes{job=\"$job\"} and on(id) pve_node_info", + "expr": "pve_cpu_usage_ratio{job=\"$job\"} and on(id) pve_node_info", "legendFormat": "__auto", "range": true, "refId": "usage" @@ -1557,7 +1424,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "pve_memory_size_bytes{job=\"$job\"} and on(id) pve_node_info", + "expr": "pve_cpu_usage_limit{job=\"$job\"} and on(id) pve_node_info", "format": "table", "hide": false, "instant": true, @@ -1566,7 +1433,7 @@ "refId": "total" } ], - "title": "Memory history", + "title": "CPU history", "transformations": [ { "id": "configFromData", @@ -1693,6 +1560,139 @@ "title": "Guests CPU usage", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "orange", + "value": 60 + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 7, + "x": 12, + "y": 16 + }, + "id": 24, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pve_memory_usage_bytes{job=\"$job\"} and on(id) pve_node_info", + "legendFormat": "__auto", + "range": true, + "refId": "usage" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_memory_size_bytes{job=\"$job\"} and on(id) pve_node_info", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "total" + } + ], + "title": "Memory history", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "total", + "mappings": [ + { + "fieldName": "Value", + "handlerKey": "max" + } + ] + } + } + ], + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -1763,7 +1763,7 @@ "h": 7, "w": 7, "x": 12, - "y": 21 + "y": 23 }, "id": 5, "options": { @@ -1892,7 +1892,6 @@ } }, "pluginVersion": "12.2.0", - "repeatDirection": "h", "targets": [ { "datasource": { @@ -2001,7 +2000,7 @@ "h": 6, "w": 7, "x": 12, - "y": 28 + "y": 30 }, "id": 9, "options": { @@ -2321,7 +2320,7 @@ "timezone": "", "title": "Proxmox PVE", "uid": "Dp7Cd57Zza", - "version": 9, + "version": 2, "weekStart": "", "id": null } \ No newline at end of file