Fix node variable

This commit is contained in:
tom.chivert
2025-10-22 12:19:00 +02:00
parent cd40fb0c9d
commit 6778671d89

View File

@@ -27,19 +27,368 @@
"description": "Proxmox Virtual Environment Dashboard", "description": "Proxmox Virtual Environment Dashboard",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 10347,
"graphTooltip": 0, "graphTooltip": 0,
"id": 27, "id": 10,
"links": [], "links": [],
"liveNow": false,
"panels": [ "panels": [
{ {
"columns": [],
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "yPhvsDP7k" "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": { "gridPos": {
"h": 10, "h": 10,
"w": 14, "w": 14,
@@ -47,211 +396,11 @@
"y": 0 "y": 0
}, },
"id": 17, "id": 17,
"links": [], "options": {
"scroll": true, "cellHeight": "sm",
"showHeader": true, "showHeader": true
"sort": {
"col": 0,
"desc": true
}, },
"styles": [ "pluginVersion": "12.2.1",
{
"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"
}
],
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -345,8 +494,15 @@
} }
], ],
"title": "Resource allocation summary", "title": "Resource allocation summary",
"transform": "table", "transformations": [
"type": "table-old" {
"id": "merge",
"options": {
"reducers": []
}
}
],
"type": "table"
}, },
{ {
"datasource": { "datasource": {
@@ -377,7 +533,7 @@
"steps": [ "steps": [
{ {
"color": "#299c46", "color": "#299c46",
"value": null "value": 0
}, },
{ {
"color": "rgba(237, 129, 40, 0.89)", "color": "rgba(237, 129, 40, 0.89)",
@@ -400,10 +556,10 @@
"y": 0 "y": 0
}, },
"id": 7, "id": 7,
"interval": "",
"links": [],
"maxDataPoints": 100, "maxDataPoints": 100,
"options": { "options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@@ -413,9 +569,10 @@
"values": false "values": false
}, },
"showThresholdLabels": false, "showThresholdLabels": false,
"showThresholdMarkers": true "showThresholdMarkers": true,
"sizing": "auto"
}, },
"pluginVersion": "9.4.0-102000pre", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -463,7 +620,7 @@
"steps": [ "steps": [
{ {
"color": "#299c46", "color": "#299c46",
"value": null "value": 0
}, },
{ {
"color": "rgba(237, 129, 40, 0.89)", "color": "rgba(237, 129, 40, 0.89)",
@@ -486,9 +643,10 @@
"y": 5 "y": 5
}, },
"id": 8, "id": 8,
"links": [],
"maxDataPoints": 100, "maxDataPoints": 100,
"options": { "options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@@ -498,9 +656,10 @@
"values": false "values": false
}, },
"showThresholdLabels": false, "showThresholdLabels": false,
"showThresholdMarkers": true "showThresholdMarkers": true,
"sizing": "auto"
}, },
"pluginVersion": "9.4.0-102000pre", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -530,11 +689,13 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 0, "fillOpacity": 0,
"gradientMode": "none", "gradientMode": "none",
@@ -543,6 +704,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 2, "lineWidth": 2,
"pointSize": 5, "pointSize": 5,
@@ -550,6 +712,7 @@
"type": "linear" "type": "linear"
}, },
"showPoints": "never", "showPoints": "never",
"showValues": false,
"spanNulls": false, "spanNulls": false,
"stacking": { "stacking": {
"group": "A", "group": "A",
@@ -567,7 +730,7 @@
"steps": [ "steps": [
{ {
"color": "transparent", "color": "transparent",
"value": null "value": 0
}, },
{ {
"color": "red", "color": "red",
@@ -586,7 +749,6 @@
"y": 10 "y": 10
}, },
"id": 2, "id": 2,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@@ -599,11 +761,12 @@
"showLegend": true "showLegend": true
}, },
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "multi", "mode": "multi",
"sort": "asc" "sort": "asc"
} }
}, },
"pluginVersion": "9.4.0-96993pre", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -632,11 +795,13 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 0, "fillOpacity": 0,
"gradientMode": "none", "gradientMode": "none",
@@ -645,6 +810,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 2, "lineWidth": 2,
"pointSize": 5, "pointSize": 5,
@@ -652,6 +818,7 @@
"type": "linear" "type": "linear"
}, },
"showPoints": "never", "showPoints": "never",
"showValues": false,
"spanNulls": false, "spanNulls": false,
"stacking": { "stacking": {
"group": "A", "group": "A",
@@ -670,7 +837,7 @@
"steps": [ "steps": [
{ {
"color": "transparent", "color": "transparent",
"value": null "value": 0
}, },
{ {
"color": "red", "color": "red",
@@ -689,7 +856,6 @@
"y": 10 "y": 10
}, },
"id": 5, "id": 5,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@@ -702,11 +868,12 @@
"showLegend": true "showLegend": true
}, },
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "multi", "mode": "multi",
"sort": "desc" "sort": "desc"
} }
}, },
"pluginVersion": "9.4.0-96993pre", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -753,7 +920,7 @@
"steps": [ "steps": [
{ {
"color": "green", "color": "green",
"value": null "value": 0
}, },
{ {
"color": "yellow", "color": "yellow",
@@ -776,8 +943,9 @@
"y": 20 "y": 20
}, },
"id": 11, "id": 11,
"links": [],
"options": { "options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@@ -788,9 +956,10 @@
}, },
"showThresholdLabels": false, "showThresholdLabels": false,
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto",
"text": {} "text": {}
}, },
"pluginVersion": "9.4.0-102000pre", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -822,6 +991,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@@ -848,7 +1018,7 @@
"steps": [ "steps": [
{ {
"color": "green", "color": "green",
"value": null "value": 0
}, },
{ {
"color": "red", "color": "red",
@@ -867,7 +1037,6 @@
"y": 20 "y": 20
}, },
"id": 15, "id": 15,
"links": [],
"options": { "options": {
"barRadius": 0, "barRadius": 0,
"barWidth": 0.8, "barWidth": 0.8,
@@ -883,13 +1052,14 @@
"showValue": "never", "showValue": "never",
"stacking": "none", "stacking": "none",
"tooltip": { "tooltip": {
"hideZeros": false,
"mode": "single", "mode": "single",
"sort": "none" "sort": "none"
}, },
"xTickLabelRotation": 0, "xTickLabelRotation": 0,
"xTickLabelSpacing": 0 "xTickLabelSpacing": 0
}, },
"pluginVersion": "9.4.0-96993pre", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -956,8 +1126,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "transparent", "color": "transparent"
"value": null
}, },
{ {
"color": "orange", "color": "orange",
@@ -979,9 +1148,7 @@
"x": 0, "x": 0,
"y": 31 "y": 31
}, },
"hideTimeOverride": false,
"id": 9, "id": 9,
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@@ -1094,8 +1261,6 @@
"y": 43 "y": 43
}, },
"id": 13, "id": 13,
"interval": "",
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@@ -1210,8 +1375,6 @@
"y": 53 "y": 53
}, },
"id": 12, "id": 12,
"interval": "",
"links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
@@ -1247,10 +1410,9 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"preload": false,
"refresh": "1m", "refresh": "1m",
"revision": 1, "schemaVersion": 42,
"schemaVersion": 38,
"style": "dark",
"tags": [ "tags": [
"Proxmox", "Proxmox",
"Prometheus" "Prometheus"
@@ -1259,7 +1421,6 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false,
"text": "sv3", "text": "sv3",
"value": "sv3" "value": "sv3"
}, },
@@ -1270,7 +1431,6 @@
"definition": "label_values(pve_node_info, instance)", "definition": "label_values(pve_node_info, instance)",
"hide": 2, "hide": 2,
"includeAll": false, "includeAll": false,
"multi": false,
"name": "instance", "name": "instance",
"options": [], "options": [],
"query": { "query": {
@@ -1279,16 +1439,11 @@
}, },
"refresh": 2, "refresh": 2,
"regex": "", "regex": "",
"skipUrlSync": false,
"sort": 1, "sort": 1,
"tagValuesQuery": "", "type": "query"
"tagsQuery": "",
"type": "query",
"useTags": false
}, },
{ {
"current": { "current": {
"selected": false,
"text": "sv5", "text": "sv5",
"value": "sv5" "value": "sv5"
}, },
@@ -1296,21 +1451,18 @@
"type": "prometheus", "type": "prometheus",
"uid": "yPhvsDP7k" "uid": "yPhvsDP7k"
}, },
"definition": "label_values(pve_node_info{instance=\"$instance\"},name)", "definition": "label_values(pve_node_info,name)",
"hide": 0,
"includeAll": false, "includeAll": false,
"label": "Node", "label": "Node",
"multi": false,
"name": "node", "name": "node",
"options": [], "options": [],
"query": { "query": {
"query": "label_values(pve_node_info{instance=\"$instance\"},name)", "qryType": 1,
"refId": "StandardVariableQuery" "query": "label_values(pve_node_info,name)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
}, },
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query" "type": "query"
} }
] ]
@@ -1319,34 +1471,9 @@
"from": "now-6h", "from": "now-6h",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {},
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "", "timezone": "",
"title": "Proxmox", "title": "Proxmox",
"uid": "Dp7Cd57Zza", "uid": "Dp7Cd57Zza",
"version": 10, "version": 1
"weekStart": ""
} }