Fix panel positions

This commit is contained in:
Bauerheim, Marcus
2025-11-09 22:08:42 +01:00
parent 449d2e27c2
commit acd0b62e8e

View File

@@ -467,163 +467,6 @@
], ],
"type": "bargauge" "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": { "datasource": {
"type": "prometheus", "type": "prometheus",
@@ -669,7 +512,7 @@
"h": 2, "h": 2,
"w": 3, "w": 3,
"x": 0, "x": 0,
"y": 7 "y": 6
}, },
"id": 22, "id": 22,
"options": { "options": {
@@ -778,7 +621,7 @@
"h": 2, "h": 2,
"w": 3, "w": 3,
"x": 3, "x": 3,
"y": 7 "y": 6
}, },
"id": 20, "id": 20,
"options": { "options": {
@@ -871,48 +714,7 @@
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "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": [], "mappings": [],
"max": 1,
"min": 0,
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
@@ -920,39 +722,38 @@
"color": "green", "color": "green",
"value": 0 "value": 0
}, },
{
"color": "orange",
"value": 0.7
},
{ {
"color": "red", "color": "red",
"value": 0.9 "value": 80
} }
] ]
}, }
"unit": "percentunit"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 2,
"w": 7, "w": 3,
"x": 12, "x": 6,
"y": 7 "y": 6
}, },
"id": 23, "id": 28,
"options": { "options": {
"legend": { "colorMode": "background",
"calcs": [], "graphMode": "none",
"displayMode": "list", "justifyMode": "center",
"placement": "bottom", "orientation": "auto",
"showLegend": false "percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^version$/",
"values": false
}, },
"tooltip": { "showPercentChange": false,
"hideZeros": false, "textMode": "value",
"mode": "single", "wideLayout": true
"sort": "none"
}
}, },
"pluginVersion": "12.2.0", "pluginVersion": "12.2.0",
"targets": [ "targets": [
@@ -962,11 +763,77 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "pve_cpu_usage_ratio{job=\"$job\"} and on(id) pve_node_info", "exemplar": false,
"legendFormat": "__auto", "expr": "pve_version_info{job=~\"$job\"}",
"range": true, "format": "table",
"refId": "usage" "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": { "datasource": {
"type": "prometheus", "type": "prometheus",
@@ -974,31 +841,28 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "pve_cpu_usage_limit{job=\"$job\"} and on(id) pve_node_info", "expr": "pve_uptime_seconds{job=~\"$job\",id=~\"node/.+\"}",
"format": "table",
"hide": false,
"instant": true, "instant": true,
"legendFormat": "__auto", "legendFormat": "{{__name__}}",
"range": false, "range": false,
"refId": "total" "refId": "A"
} }
], ],
"title": "CPU history", "title": "Server Uptime",
"transformations": [ "type": "stat"
{ },
"id": "configFromData", {
"options": { "collapsed": false,
"configRefId": "total", "gridPos": {
"mappings": [ "h": 1,
{ "w": 24,
"fieldName": "Value", "x": 0,
"handlerKey": "max" "y": 8
} },
] "id": 25,
} "panels": [],
} "title": "Details",
], "type": "row"
"type": "timeseries"
}, },
{ {
"datasource": { "datasource": {
@@ -1466,6 +1330,8 @@
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"axisSoftMax": 1,
"axisSoftMin": 0,
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6, "barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
@@ -1495,9 +1361,10 @@
} }
}, },
"mappings": [], "mappings": [],
"max": 1,
"min": 0, "min": 0,
"thresholds": { "thresholds": {
"mode": "percentage", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green",
@@ -1505,15 +1372,15 @@
}, },
{ {
"color": "orange", "color": "orange",
"value": 60 "value": 0.7
}, },
{ {
"color": "red", "color": "red",
"value": 90 "value": 0.9
} }
] ]
}, },
"unit": "bytes" "unit": "percentunit"
}, },
"overrides": [] "overrides": []
}, },
@@ -1521,9 +1388,9 @@
"h": 7, "h": 7,
"w": 7, "w": 7,
"x": 12, "x": 12,
"y": 14 "y": 9
}, },
"id": 24, "id": 23,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -1545,7 +1412,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "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", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "usage" "refId": "usage"
@@ -1557,7 +1424,7 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "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", "format": "table",
"hide": false, "hide": false,
"instant": true, "instant": true,
@@ -1566,7 +1433,7 @@
"refId": "total" "refId": "total"
} }
], ],
"title": "Memory history", "title": "CPU history",
"transformations": [ "transformations": [
{ {
"id": "configFromData", "id": "configFromData",
@@ -1693,6 +1560,139 @@
"title": "Guests CPU usage", "title": "Guests CPU usage",
"type": "timeseries" "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": { "datasource": {
"type": "prometheus", "type": "prometheus",
@@ -1763,7 +1763,7 @@
"h": 7, "h": 7,
"w": 7, "w": 7,
"x": 12, "x": 12,
"y": 21 "y": 23
}, },
"id": 5, "id": 5,
"options": { "options": {
@@ -1892,7 +1892,6 @@
} }
}, },
"pluginVersion": "12.2.0", "pluginVersion": "12.2.0",
"repeatDirection": "h",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -2001,7 +2000,7 @@
"h": 6, "h": 6,
"w": 7, "w": 7,
"x": 12, "x": 12,
"y": 28 "y": 30
}, },
"id": 9, "id": 9,
"options": { "options": {
@@ -2321,7 +2320,7 @@
"timezone": "", "timezone": "",
"title": "Proxmox PVE", "title": "Proxmox PVE",
"uid": "Dp7Cd57Zza", "uid": "Dp7Cd57Zza",
"version": 9, "version": 2,
"weekStart": "", "weekStart": "",
"id": null "id": null
} }