Files
grafana-dashboards/proxmox.json
2025-08-13 14:36:36 +00:00

3517 lines
94 KiB
JSON

{
"annotations": {
"list": [
{
"$$hashKey": "object:215",
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
"name": "Annotations & Alerts",
"showIn": 0,
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "Proxmox Virtual Environment Dashboard",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 2,
"links": [],
"liveNow": true,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [
{
"options": {
"from": 75,
"result": {
"color": "green",
"index": 0,
"text": "Healthy"
},
"to": 100
},
"type": "range"
},
{
"options": {
"from": 50,
"result": {
"color": "light-yellow",
"index": 1,
"text": "Working"
},
"to": 74
},
"type": "range"
},
{
"options": {
"from": 25,
"result": {
"color": "orange",
"index": 2,
"text": "Significant Issues"
},
"to": 49
},
"type": "range"
},
{
"options": {
"from": 0,
"result": {
"color": "red",
"index": 3,
"text": "Down!"
},
"to": 24
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 21,
"x": 0,
"y": 0
},
"id": 33,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "avg(\r\n (\r\n pve_up{id=~\"node/.*\"} +\r\n (pve_cpu_usage_ratio{id=~\"node/.*\"} < bool 0.8) + \r\n (pve_memory_usage_bytes{id=~\"node/.*\"} / pve_memory_size_bytes{id=~\"node/.*\"} < 0.8)\r\n ) / 3\r\n) * 100\r\n",
"format": "time_series",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": " ",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 0
},
"id": 28,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^version$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_version_info{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Proxmox - Version",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": true,
"__name__": true,
"instance": true,
"job": true,
"release": true,
"repoid": true
},
"includeByName": {},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "text",
"mode": "fixed"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "unit",
"value": "m"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 3
},
"id": 26,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by(id) (pve_uptime_seconds{id=\"node/$instance\", id=~\"node/.*\"}) / 60",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Uptime",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "text",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "displayName"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 3
},
"id": 22,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_cpu_usage_limit{id=~\".*/$instance\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "CPU cores",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 70
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 4,
"y": 3
},
"id": 34,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "pve_cpu_usage_ratio{id=\"node/$instance\", id=~\"node/.*\"} * 100",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Current CPU",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0.6
},
{
"color": "#d44a3a",
"value": 0.8
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 7,
"y": 3
},
"id": 8,
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "pve_memory_usage_bytes{id=~\"node/$instance\"} / pve_memory_size_bytes and on(id) pve_node_info",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Current memory",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 60
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value #used"
},
"properties": [
{
"id": "displayName",
"value": "used"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #total"
},
"properties": [
{
"id": "displayName",
"value": "total"
},
{
"id": "color",
"value": {
"fixedColor": "text",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 4,
"x": 10,
"y": 3
},
"id": 20,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {
"titleSize": 20,
"valueSize": 40
},
"textMode": "value_and_name",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_memory_usage_bytes{id=\"node/$instance\"} and on(id) pve_node_info",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "used"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_memory_size_bytes{id=\"node/$instance\"} and on(id) pve_node_info",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "total"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_memory_size_bytes{id=\"node/$instance\"} and on(id) pve_node_info",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "total_for_max"
}
],
"title": "",
"transformations": [
{
"id": "configFromData",
"options": {
"configRefId": "total_for_max",
"mappings": [
{
"fieldName": "Value #total_for_max",
"handlerKey": "max"
}
]
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "binBps"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 5,
"x": 14,
"y": 3
},
"id": 25,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "sum(rate(pve_network_receive_bytes{}[5m]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Received",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(pve_network_transmit_bytes[5m]))",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Sent",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Network",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 2,
"x": 19,
"y": 3
},
"id": 27,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "SUM(pve_disk_usage_bytes) / SUM(pve_disk_size_bytes) * 100",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Total Disk used on all disk",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 70
},
{
"color": "dark-orange",
"value": 80
},
{
"color": "red",
"value": 90
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 23,
"w": 3,
"x": 21,
"y": 3
},
"id": 30,
"options": {
"displayMode": "basic",
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"maxVizHeight": 300,
"minVizHeight": 16,
"minVizWidth": 8,
"namePlacement": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"sizing": "auto",
"valueMode": "color"
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": true,
"expr": "pve_disk_usage_bytes{id=~\"storage/.+\"} / pve_disk_size_bytes * on (id, instance) group_left(storage) pve_storage_info",
"format": "time_series",
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{storage}}",
"refId": "A"
}
],
"title": "Storage usage",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 6
},
"id": 35,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^sum\\(pve_up\\{id=~\"qemu/\\.\\*\"\\} == 1\\)$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "sum(pve_up{id=~\"qemu/.*\"} == 1)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Running VMs",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "light-red",
"mode": "shades"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Status"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "stopped"
},
"1": {
"color": "green",
"index": 0,
"text": "running"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Memory"
},
"properties": [
{
"id": "unit",
"value": "bytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Disk"
},
"properties": [
{
"id": "unit",
"value": "bytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Memory usage (%)"
},
"properties": [
{
"id": "unit",
"value": "percentunit"
},
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "green",
"index": 0
},
"to": 0.75
},
"type": "range"
},
{
"options": {
"from": 0.75,
"result": {
"color": "orange",
"index": 1
},
"to": 0.9
},
"type": "range"
},
{
"options": {
"from": 0.9,
"result": {
"color": "dark-red",
"index": 2
},
"to": 2
},
"type": "range"
},
{
"options": {
"match": "null",
"result": {
"color": "#808080",
"index": 3,
"text": "n/a"
}
},
"type": "special"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Disk usage (%)"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "green",
"index": 0
},
"to": 0.7
},
"type": "range"
},
{
"options": {
"from": 0.7,
"result": {
"color": "orange",
"index": 1
},
"to": 0.9
},
"type": "range"
},
{
"options": {
"from": 0.9,
"result": {
"color": "red",
"index": 2
},
"to": 2
},
"type": "range"
},
{
"options": {
"match": "null",
"result": {
"color": "#808080",
"index": 3,
"text": "n/a"
}
},
"type": "special"
}
]
},
{
"id": "unit",
"value": "percentunit"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Uptime"
},
"properties": [
{
"id": "unit",
"value": "s"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 6
},
"id": 37,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"count"
],
"fields": "/^Type$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id, name, type) (pve_guest_info{id=\"node/$instance\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"legendFormat": "",
"range": false,
"refId": "id, name and type"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_up{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "status"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_cpu_usage_limit{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "vcpus"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_memory_size_bytes{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "memsize"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_memory_usage_bytes{id=\"node/$instance\",template!=\"1\"} / pve_memory_size_bytes and on (id, instance) pve_guest_info and on (id) pve_up==1)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "memusg_percent"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_disk_size_bytes{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "disksize"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_disk_usage_bytes{id=\"node/$instance\"} / pve_disk_size_bytes and on (id, instance) pve_guest_info{type=\"lxc\"})",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "diskusg_percent"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "sum by(id) (pve_uptime_seconds{id=\"node/$instance\", id!=\"node/prosmos\"})",
"format": "table",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "uptime",
"useBackend": false
}
],
"title": "Stopped VMs",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "id",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true,
"Time 6": true,
"Time 7": true,
"Value #id, name and type": true
},
"indexByName": {},
"renameByName": {
"Time 5": "",
"Value #A": "Uptime",
"Value #disksize": "Disk",
"Value #diskusg_percent": "Disk usage (%)",
"Value #id, name and type": "",
"Value #memsize": "Memory",
"Value #memusg_percent": "Memory usage (%)",
"Value #status": "Status",
"Value #uptime": "Uptime",
"Value #vcpus": "vCPUs",
"id": "ID",
"name": "Name",
"type": "Type"
}
}
},
{
"id": "filterByValue",
"options": {
"filters": [
{
"config": {
"id": "equal",
"options": {
"value": 0
}
},
"fieldName": "Status"
},
{
"config": {
"id": "notEqual",
"options": {
"value": "lxc"
}
},
"fieldName": "Type"
},
{
"config": {
"id": "notEqual",
"options": {
"value": "running"
}
},
"fieldName": "Name"
}
],
"match": "all",
"type": "include"
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 9
},
"id": 36,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "sum(pve_up{id=~\"lxc/.*\"} == 1)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Running LXCs",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "red",
"mode": "shades"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Status"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "stopped"
},
"1": {
"color": "green",
"index": 0,
"text": "running"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Memory"
},
"properties": [
{
"id": "unit",
"value": "bytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Disk"
},
"properties": [
{
"id": "unit",
"value": "bytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Memory usage (%)"
},
"properties": [
{
"id": "unit",
"value": "percentunit"
},
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "green",
"index": 0
},
"to": 0.75
},
"type": "range"
},
{
"options": {
"from": 0.75,
"result": {
"color": "orange",
"index": 1
},
"to": 0.9
},
"type": "range"
},
{
"options": {
"from": 0.9,
"result": {
"color": "dark-red",
"index": 2
},
"to": 2
},
"type": "range"
},
{
"options": {
"match": "null",
"result": {
"color": "#808080",
"index": 3,
"text": "n/a"
}
},
"type": "special"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Disk usage (%)"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "green",
"index": 0
},
"to": 0.7
},
"type": "range"
},
{
"options": {
"from": 0.7,
"result": {
"color": "orange",
"index": 1
},
"to": 0.9
},
"type": "range"
},
{
"options": {
"from": 0.9,
"result": {
"color": "red",
"index": 2
},
"to": 2
},
"type": "range"
},
{
"options": {
"match": "null",
"result": {
"color": "#808080",
"index": 3,
"text": "n/a"
}
},
"type": "special"
}
]
},
{
"id": "unit",
"value": "percentunit"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Uptime"
},
"properties": [
{
"id": "unit",
"value": "s"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 9
},
"id": 38,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"count"
],
"fields": "/^Status$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id, name, type) (pve_guest_info{id=\"node/$instance\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"legendFormat": "",
"range": false,
"refId": "id, name and type"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_up{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "status"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_cpu_usage_limit{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "vcpus"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_memory_size_bytes{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "memsize"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_memory_usage_bytes{id=\"node/$instance\",template!=\"1\"} / pve_memory_size_bytes and on (id, instance) pve_guest_info and on (id) pve_up==1)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "memusg_percent"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_disk_size_bytes{id=\"node/$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "disksize"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_disk_usage_bytes{id=\"node/$instance\"} / pve_disk_size_bytes and on (id, instance) pve_guest_info{type=\"lxc\"})",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "diskusg_percent"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "sum by(id) (pve_uptime_seconds{id=\"node/$instance\", id!=\"node/prosmos\"})",
"format": "table",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "uptime",
"useBackend": false
}
],
"title": "Stopped LXC",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "id",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true,
"Time 6": true,
"Time 7": true,
"Value #id, name and type": true
},
"indexByName": {},
"renameByName": {
"Time 5": "",
"Value #A": "Uptime",
"Value #disksize": "Disk",
"Value #diskusg_percent": "Disk usage (%)",
"Value #id, name and type": "",
"Value #memsize": "Memory",
"Value #memusg_percent": "Memory usage (%)",
"Value #status": "Status",
"Value #uptime": "Uptime",
"Value #vcpus": "vCPUs",
"id": "ID",
"name": "Name",
"type": "Type"
}
}
},
{
"id": "filterByValue",
"options": {
"filters": [
{
"config": {
"id": "equal",
"options": {
"value": 0
}
},
"fieldName": "Status"
},
{
"config": {
"id": "notEqual",
"options": {
"value": "qemu"
}
},
"fieldName": "Type"
},
{
"config": {
"id": "notEqual",
"options": {
"value": "running"
}
},
"fieldName": "Name"
}
],
"match": "all",
"type": "include"
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 17,
"x": 4,
"y": 9
},
"id": 32,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_disk_usage_bytes{id=~\"storage/.+\"} * on (id, instance) group_left(storage) pve_storage_info",
"instant": true,
"legendFormat": "{{storage}}",
"range": false,
"refId": "A"
}
],
"title": "Used Data",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Status"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "stopped"
},
"1": {
"color": "green",
"index": 0,
"text": "running"
}
},
"type": "value"
}
]
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.width",
"value": 179
}
]
},
{
"matcher": {
"id": "byName",
"options": "Memory"
},
"properties": [
{
"id": "unit",
"value": "bytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Disk"
},
"properties": [
{
"id": "unit",
"value": "bytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Memory usage (%)"
},
"properties": [
{
"id": "unit",
"value": "percentunit"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "green",
"index": 0
},
"to": 0.75
},
"type": "range"
},
{
"options": {
"from": 0.75,
"result": {
"color": "orange",
"index": 1
},
"to": 0.9
},
"type": "range"
},
{
"options": {
"from": 0.9,
"result": {
"color": "dark-red",
"index": 2
},
"to": 2
},
"type": "range"
},
{
"options": {
"match": "null",
"result": {
"color": "#808080",
"index": 3,
"text": "n/a"
}
},
"type": "special"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Disk usage (%)"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "green",
"index": 0
},
"to": 0.7
},
"type": "range"
},
{
"options": {
"from": 0.7,
"result": {
"color": "orange",
"index": 1
},
"to": 0.9
},
"type": "range"
},
{
"options": {
"from": 0.9,
"result": {
"color": "red",
"index": 2
},
"to": 2
},
"type": "range"
},
{
"options": {
"match": "null",
"result": {
"color": "#808080",
"index": 3,
"text": "n/a"
}
},
"type": "special"
}
]
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.width",
"value": 120
},
{
"id": "unit",
"value": "percentunit"
}
]
},
{
"matcher": {
"id": "byName",
"options": "vCPUs"
},
"properties": [
{
"id": "custom.width",
"value": 66
}
]
},
{
"matcher": {
"id": "byName",
"options": "Type"
},
"properties": [
{
"id": "custom.width",
"value": 67
}
]
},
{
"matcher": {
"id": "byName",
"options": "ID"
},
"properties": [
{
"id": "custom.width",
"value": 106
}
]
},
{
"matcher": {
"id": "byName",
"options": "Uptime"
},
"properties": [
{
"id": "unit",
"value": "s"
},
{
"id": "custom.width",
"value": 100
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 21,
"x": 0,
"y": 12
},
"id": 19,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"frameIndex": 0,
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Status"
}
]
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id, name, type) (pve_guest_info{node=~\"$instance\"})",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "",
"range": false,
"refId": "id, name and type"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_up{node=~\"$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "status"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_cpu_usage_limit{node=~\"$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "vcpus"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_memory_size_bytes{node=~\"$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "memsize"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_memory_usage_bytes{node=~\"$instance\",template!=\"1\"} / pve_memory_size_bytes and on (id, instance) pve_guest_info and on (id) pve_up==1)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "memusg_percent"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_disk_size_bytes{node=~\"$instance\"} and on (id, instance) pve_guest_info)",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "disksize"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (id) (pve_disk_usage_bytes{node=~\"$instance\"} / pve_disk_size_bytes and on (id, instance) pve_guest_info{type=\"lxc\"})",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "diskusg_percent"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "sum by(id) (pve_uptime_seconds{node=~\"$instance\", id!=\"node/prosmos\"})",
"format": "table",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "",
"range": false,
"refId": "uptime",
"useBackend": false
}
],
"title": "Resource allocation summary",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "id",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true,
"Time 6": true,
"Time 7": true,
"Value #id, name and type": true
},
"indexByName": {},
"renameByName": {
"Time 5": "",
"Value #A": "Uptime",
"Value #disksize": "Disk",
"Value #diskusg_percent": "Disk usage (%)",
"Value #id, name and type": "",
"Value #memsize": "Memory",
"Value #memusg_percent": "Memory usage (%)",
"Value #status": "Status",
"Value #uptime": "Uptime",
"Value #vcpus": "vCPUs",
"id": "ID",
"name": "Name",
"type": "Type"
}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [],
"mappings": [
{
"options": {
"pattern": "Virtualization(.*)",
"result": {
"index": 0,
"text": "$1"
}
},
"type": "regex"
}
],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 21,
"x": 0,
"y": 23
},
"id": 15,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "vertical",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": true
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_disk_size_bytes{id=~\"storage/.+\"} * on (id, instance) group_left(storage) pve_storage_info",
"format": "table",
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{storage}}",
"range": false,
"refId": "storage size"
}
],
"title": "Total Disk size",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": false,
"id": true,
"instance": true,
"job": true
},
"includeByName": {},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "scheme",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 3,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"displayName": "$instance",
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "#EAB839",
"value": 70
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
"y": 26
},
"id": 29,
"options": {
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "right",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "pve_cpu_usage_ratio{id=\"node/$instance\", id=~\"node/.*\"} * 100",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "CPU history",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"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",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green"
},
{
"color": "orange",
"value": 60
},
{
"color": "red",
"value": 90
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
"y": 26
},
"id": 24,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "pve_memory_usage_bytes{id=\"node/$instance\"} and on(id) pve_node_info",
"legendFormat": "__auto",
"range": true,
"refId": "usage"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"exemplar": false,
"expr": "pve_memory_size_bytes{id=\"node/$instance\"} 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",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"decimals": 1,
"links": [],
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent"
},
{
"color": "red",
"value": 1
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 36
},
"id": 2,
"options": {
"legend": {
"calcs": [
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "asc"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "((pve_cpu_usage_ratio{} / pve_cpu_usage_limit) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1",
"format": "time_series",
"interval": "",
"intervalFactor": 4,
"legendFormat": "{{name}} ({{type}})",
"range": true,
"refId": "A"
}
],
"title": "Guests CPU usage",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"decimals": 1,
"links": [],
"mappings": [],
"max": 1.1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent"
},
{
"color": "red",
"value": 0.9
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 45
},
"id": 5,
"options": {
"legend": {
"calcs": [
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "(pve_memory_usage_bytes{} / pve_memory_size_bytes * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1",
"format": "time_series",
"interval": "",
"intervalFactor": 4,
"legendFormat": "{{name}} ({{type}})",
"range": true,
"refId": "A"
}
],
"title": "Guests memory usage",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"decimals": 1,
"links": [],
"mappings": [],
"max": 1.1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent"
},
{
"color": "orange",
"value": 0.75
},
{
"color": "red",
"value": 0.9
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 55
},
"id": 9,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "pve_disk_usage_bytes{} / pve_disk_size_bytes{} * on (id, instance) group_left(name, type) pve_guest_info{type=\"lxc\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{name}} ({{type}})",
"range": true,
"refId": "A"
}
],
"title": "LXC guests Disk usage",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "Bps"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/RECV/"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 63
},
"id": 13,
"options": {
"legend": {
"calcs": [
"max",
"mean",
"lastNotNull",
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "(rate(pve_network_receive_bytes{}[5m]) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1",
"format": "time_series",
"interval": "",
"intervalFactor": 3,
"legendFormat": "{{name}} RECV ({{type}})",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "(rate(pve_network_transmit_bytes{}[5m])* on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1",
"format": "time_series",
"interval": "",
"intervalFactor": 3,
"legendFormat": "{{name}} SEND ({{type}})",
"range": true,
"refId": "B"
}
],
"title": "Network IO/s",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "Bps"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 75
},
"id": 12,
"options": {
"legend": {
"calcs": [
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "((rate(pve_disk_write_bytes{}[5m]) + rate(pve_disk_read_bytes[5m])) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{name}} ({{type}})",
"range": true,
"refId": "A"
}
],
"title": "Disk IO/s",
"type": "timeseries"
}
],
"preload": false,
"refresh": "1m",
"schemaVersion": 40,
"tags": [],
"templating": {
"list": [
{
"allValue": ".*",
"current": {
"text": "pm2",
"value": "pm2"
},
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"definition": "label_values(pve_node_info,name)",
"includeAll": true,
"name": "instance",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(pve_node_info,name)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
}
]
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Proxmox - Prometheus",
"uid": "cdmi1vzpx7p4weKeehfuerttr",
"version": 24,
"weekStart": "monday"
}