|
- {
- "name": "Vsphere",
- "tags": "Categraf Nightingale VMware-Sphere",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "datasource",
- "type": "datasource",
- "definition": "prometheus",
- "defaultValue": 2
- },
- {
- "name": "vcenter",
- "type": "query",
- "datasource": {
- "cate": "prometheus",
- "value": "${datasource}"
- },
- "definition": "vsphere_host_cpu_usage_average",
- "reg": "/.*vcenter=\"(.*?)\".*/",
- "multi": false
- },
- {
- "name": "cluster",
- "type": "query",
- "datasource": {
- "cate": "prometheus",
- "value": "${datasource}"
- },
- "definition": "vsphere_host_cpu_usage_average{vcenter=\"$vcenter\"}",
- "reg": "/.*clustername=\"(.*?)\".*/"
- },
- {
- "name": "esxi",
- "type": "query",
- "datasource": {
- "cate": "prometheus",
- "value": "${datasource}"
- },
- "definition": "vsphere_host_cpu_usage_average{vcenter=\"$vcenter\"}",
- "reg": "/.*esxhostname=\"(.*?)\".*/"
- },
- {
- "name": "vmname",
- "type": "query",
- "datasource": {
- "cate": "prometheus",
- "value": "${datasource}"
- },
- "definition": "vsphere_vm_sys_uptime_latest{vcenter=\"$vcenter\"}",
- "reg": "/.*vmname=\"(.*?)\".*/"
- },
- {
- "name": "datastore",
- "type": "query",
- "datasource": {
- "cate": "prometheus",
- "value": "${datasource}"
- },
- "definition": "vsphere_datastore_disk_provisioned_latest{vcenter=\"$vcenter\"}",
- "reg": "/.*dsname=\"(.*?)\".*/"
- }
- ],
- "panels": [
- {
- "type": "row",
- "id": "0a149fdd-5c4c-4d09-857c-b16ca3e60f1f",
- "name": "vSphere Overview",
- "collapsed": true,
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "0a149fdd-5c4c-4d09-857c-b16ca3e60f1f",
- "isResizable": false
- },
- "panels": []
- },
- {
- "type": "stat",
- "id": "89ae4416-32f6-4cbd-97dc-12aa11c1363e",
- "layout": {
- "h": 2,
- "w": 24,
- "x": 0,
- "y": 1,
- "i": "89ae4416-32f6-4cbd-97dc-12aa11c1363e",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "count(count(vsphere_host_cpu_usage_average) by(vcenter))",
- "legend": "vCenter Summary"
- },
- {
- "expr": "count(count(vsphere_host_cpu_usage_average) by(clustername))",
- "refId": "B",
- "legend": "cluster Summary"
- },
- {
- "expr": "count(count(vsphere_host_cpu_usage_average) by(esxhostname))",
- "refId": "C",
- "legend": "ESXi Summary"
- },
- {
- "expr": "count(count(vsphere_vm_cpu_used_summation) by(vmname))",
- "refId": "D",
- "legend": "VM Summary"
- },
- {
- "expr": "count(count(vsphere_datastore_disk_used_latest) by(dsname))",
- "refId": "E",
- "legend": "Datastore Summary"
- }
- ],
- "name": "",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 5,
- "textSize": {
- "title": 12,
- "value": 36
- }
- },
- "options": {
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "color": "#9470ff",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "barGauge",
- "id": "6e2b4ee6-1f73-413a-a174-840490177541",
- "layout": {
- "h": 5,
- "w": 12,
- "x": 0,
- "y": 3,
- "i": "6e2b4ee6-1f73-413a-a174-840490177541",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "(sum(vsphere_host_cpu_usage_average{}) by(esxhostname)/count(vsphere_host_cpu_usage_average{}) by(esxhostname))",
- "legend": "{{esxhostname}}"
- }
- ],
- "name": "EXSI cpu使用率排名",
- "custom": {
- "calc": "lastNotNull",
- "baseColor": "#9470ff",
- "serieWidth": 20,
- "sortOrder": "desc"
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#ff656b"
- },
- "match": {
- "from": 60,
- "to": 100
- }
- }
- ],
- "standardOptions": {}
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "barGauge",
- "id": "ff88cb4a-c396-415c-ad8d-bbb3af289427",
- "layout": {
- "h": 5,
- "w": 12,
- "x": 12,
- "y": 3,
- "i": "905a1562-f7dc-4f3e-bbf6-b1697db9d489",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "(sum(vsphere_host_mem_usage_average{}) by(esxhostname)/count(vsphere_host_mem_usage_average{}) by(esxhostname))",
- "legend": "{{esxhostname}}"
- }
- ],
- "name": "EXSI mem使用率排名",
- "custom": {
- "calc": "lastNotNull",
- "baseColor": "#9470ff",
- "serieWidth": 20,
- "sortOrder": "desc"
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#ff656b"
- },
- "match": {
- "from": 60,
- "to": 100
- }
- }
- ],
- "standardOptions": {}
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "barGauge",
- "id": "d651d6eb-5e30-408c-ba7f-1823d960251a",
- "layout": {
- "h": 5,
- "w": 12,
- "x": 0,
- "y": 8,
- "i": "70cc38e7-2ded-48c2-bb75-fe1d71d4a770",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "(sum(vsphere_vm_cpu_usage_average{}) by(vmname)/count(vsphere_vm_cpu_usage_average{}) by(vmname))",
- "legend": "{{vmname}}"
- }
- ],
- "name": "VM cpu使用率排名",
- "custom": {
- "calc": "lastNotNull",
- "baseColor": "#9470ff",
- "serieWidth": 20,
- "sortOrder": "desc"
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#ff656b"
- },
- "match": {
- "from": 60,
- "to": 100
- }
- }
- ],
- "standardOptions": {}
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "barGauge",
- "id": "cdd8f673-750e-408e-80ab-3990c16b1da5",
- "layout": {
- "h": 5,
- "w": 12,
- "x": 12,
- "y": 8,
- "i": "f6e55bcf-6d39-425e-8c6d-efc6b8350501",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "(sum(vsphere_vm_mem_usage_average{}) by(vmname)/count(vsphere_vm_mem_usage_average{}) by(vmname))",
- "legend": "{{vmname}}"
- }
- ],
- "name": "VM mem使用率排名",
- "custom": {
- "calc": "lastNotNull",
- "baseColor": "#9470ff",
- "serieWidth": 20,
- "sortOrder": "desc"
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#ff656b"
- },
- "match": {
- "from": 60,
- "to": 100
- }
- }
- ],
- "standardOptions": {}
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "row",
- "id": "5329376c-2084-4f4d-b5f4-372cd702b643",
- "name": "cluster Status",
- "collapsed": true,
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 13,
- "i": "5329376c-2084-4f4d-b5f4-372cd702b643",
- "isResizable": false
- },
- "panels": []
- },
- {
- "type": "stat",
- "id": "046163e4-031e-44e8-b592-7dc606496922",
- "layout": {
- "h": 5,
- "w": 2,
- "x": 0,
- "y": 14,
- "i": "046163e4-031e-44e8-b592-7dc606496922",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "(sum(vsphere_host_sys_uptime_latest{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername)/count(vsphere_host_sys_uptime_latest{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername))/86500",
- "legend": ""
- }
- ],
- "name": "uptime",
- "maxPerRow": 4,
- "custom": {
- "textMode": "valueAndName",
- "graphMode": "none",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 3,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "8aca78d4-2869-44c4-a702-ad46f5c89443",
- "layout": {
- "h": 5,
- "w": 4,
- "x": 2,
- "y": 14,
- "i": "af0d1102-cf29-45b9-b647-1bc0b605ac04",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_cpu_usage_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername)/count(vsphere_host_cpu_usage_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername))",
- "refId": "B",
- "legend": "{{clustername}}"
- }
- ],
- "name": "cluster CPU Usage %",
- "maxPerRow": 4,
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "8309ec72-51cb-4b9d-ba7e-e22acfd6e461",
- "layout": {
- "h": 5,
- "w": 4,
- "x": 6,
- "y": 14,
- "i": "69332b5d-8841-4572-92f5-6ad237fb6ad5",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_mem_usage_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername)/count(vsphere_host_mem_usage_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername))",
- "refId": "B",
- "legend": "{{clustername}}"
- }
- ],
- "name": "cluster RAM Usage in %",
- "maxPerRow": 4,
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "7b43af1c-0814-42eb-ba31-14ed6eb07dc9",
- "layout": {
- "h": 5,
- "w": 5,
- "x": 10,
- "y": 14,
- "i": "7dad6d09-2d17-41aa-845f-30f916ee344d",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_net_bytesRx_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername))/1000 ",
- "refId": "B",
- "legend": "{{clustername}}-net_bytesRx"
- },
- {
- "expr": "(sum(vsphere_host_net_bytesTx_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(clustername))/1000",
- "refId": "A",
- "legend": "{{clustername}}-net_bytesTx"
- }
- ],
- "name": "cluster Network Usage",
- "maxPerRow": 4,
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "table",
- "id": "6dffc761-7805-47c5-b82d-cf34dd7b8b11",
- "layout": {
- "h": 5,
- "w": 9,
- "x": 15,
- "y": 14,
- "i": "6dffc761-7805-47c5-b82d-cf34dd7b8b11",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "sum(vsphere_datastore_disk_capacity_latest{vcenter=\"$vcenter\"}) by(source) / 1024 / 1024",
- "refId": "A",
- "legend": "总量(GB)"
- },
- {
- "expr": "sum(vsphere_datastore_disk_used_latest{vcenter=\"$vcenter\"}) by(source) / 1024 / 1024",
- "refId": "B",
- "legend": "使用量(GB)"
- },
- {
- "expr": "sum(vsphere_datastore_disk_used_latest{vcenter=\"$vcenter\"}/vsphere_datastore_disk_capacity_latest{vcenter=\"$vcenter\"}) by(source)*100",
- "refId": "C",
- "legend": "使用率(%)"
- }
- ],
- "maxPerRow": 4,
- "custom": {
- "showHeader": true,
- "colorMode": "background",
- "calc": "lastNotNull",
- "displayMode": "labelValuesToRows",
- "aggrDimension": "source",
- "sortColumn": "source",
- "sortOrder": "descend"
- },
- "options": {
- "valueMappings": [],
- "standardOptions": {
- "util": "none"
- }
- },
- "overrides": [
- {
- "matcher": {
- "value": "C"
- },
- "properties": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "rgba(63, 196, 83, 1)"
- },
- "match": {
- "from": 1,
- "to": 30
- }
- },
- {
- "type": "range",
- "result": {
- "color": "rgba(185, 159, 0, 1)"
- },
- "match": {
- "special": 30,
- "from": 30,
- "to": 50
- }
- },
- {
- "type": "range",
- "result": {
- "color": "rgba(255, 101, 107, 1)"
- },
- "match": {
- "special": 90,
- "from": 50
- }
- }
- ],
- "standardOptions": {
- "util": "none"
- }
- }
- },
- {
- "type": "special",
- "matcher": {
- "value": "A"
- },
- "properties": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "rgba(63, 196, 83, 1)"
- },
- "match": {
- "from": 1
- }
- }
- ],
- "standardOptions": {}
- }
- },
- {
- "type": "special",
- "matcher": {
- "value": "B"
- },
- "properties": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "rgba(63, 196, 83, 1)"
- },
- "match": {
- "special": 1,
- "from": 1,
- "to": 350
- }
- },
- {
- "type": "range",
- "result": {
- "color": "rgba(185, 159, 0, 1)"
- },
- "match": {
- "special": 300,
- "from": 350
- }
- }
- ],
- "standardOptions": {}
- }
- }
- ],
- "datasourceValue": "${datasource}"
- },
- {
- "type": "row",
- "id": "fe54e096-8e11-406b-98f6-d2c5d76d9d8d",
- "name": "Exsi status",
- "collapsed": true,
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 19,
- "i": "fe54e096-8e11-406b-98f6-d2c5d76d9d8d",
- "isResizable": false
- },
- "panels": []
- },
- {
- "type": "stat",
- "id": "4cca929b-8a04-4c0c-924f-240ad5cf08d9",
- "layout": {
- "h": 5,
- "w": 2,
- "x": 0,
- "y": 20,
- "i": "4cca929b-8a04-4c0c-924f-240ad5cf08d9",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "vsphere_host_sys_uptime_latest{esxhostname=\"$esxi\"}",
- "legend": "{{esxhostname}}"
- }
- ],
- "name": "uptime\n",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "humantimeSeconds"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "stat",
- "id": "c097de32-5d94-4b32-8f93-0ac8cfe32657",
- "layout": {
- "h": 5,
- "w": 3,
- "x": 2,
- "y": 20,
- "i": "7f2edbdb-d890-4799-89b0-fad87ebf1c22",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_cpu_ready_summation{vcenter=\"$vcenter\",esxhostname=\"$esxi\"}) by(esxhostname)/count(vsphere_host_cpu_ready_summation{vcenter=\"$vcenter\",esxhostname=\"$esxi\"}) by(esxhostname))",
- "refId": "B",
- "legend": "cpu usage"
- }
- ],
- "name": "Host CPU Ready Time",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "milliseconds"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "25ed7e6c-1d20-4d3f-a2d3-de1e9bb2fb17",
- "layout": {
- "h": 5,
- "w": 5,
- "x": 5,
- "y": 20,
- "i": "9e349e57-b55e-462b-b63f-faed76213544",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_cpu_usage_average{vcenter=\"$vcenter\",esxhostname=\"$esxi\"}) by(esxhostname)/count(vsphere_host_cpu_usage_average{vcenter=\"$vcenter\",esxhostname=\"$esxi\"}) by(esxhostname))",
- "refId": "B",
- "legend": "{{esxhostname}}"
- }
- ],
- "name": "Host CPU Usage %",
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "2f77a4cc-0950-4fe5-86d7-0d6ebfed3d0c",
- "layout": {
- "h": 5,
- "w": 5,
- "x": 10,
- "y": 20,
- "i": "01d79496-7b09-44c1-8e5e-8430509295f3",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_mem_usage_average{vcenter=\"$vcenter\",esxhostname=\"$esxi\"}) by(esxhostname)/count(vsphere_host_mem_usage_average{vcenter=\"$vcenter\",esxhostname=\"$esxi\"}) by(esxhostname))",
- "refId": "B",
- "legend": "{{esxhostname}}"
- }
- ],
- "name": "Host RAM Usage in %",
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "af8a3cca-ad6e-4650-838f-c38c1cf2c7fa",
- "layout": {
- "h": 5,
- "w": 9,
- "x": 15,
- "y": 20,
- "i": "446ea897-c338-40f7-a146-2cda7bbca311",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_host_net_bytesRx_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(esxhostname))/1000",
- "refId": "B",
- "legend": "{{esxhostname}}-net_bytesRx"
- },
- {
- "expr": "(sum(vsphere_host_net_bytesTx_average{clustername=\"$cluster\",vcenter=\"$vcenter\"}) by(esxhostname))/1000",
- "refId": "A",
- "legend": "{{esxhostname}}-net_bytesTx"
- }
- ],
- "name": "cluster Network Usage",
- "maxPerRow": 4,
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "row",
- "id": "d2f2839c-11d2-470f-85a8-da9e81e72ad3",
- "name": "VMs status",
- "collapsed": true,
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 25,
- "i": "d2f2839c-11d2-470f-85a8-da9e81e72ad3",
- "isResizable": false
- },
- "panels": []
- },
- {
- "type": "stat",
- "id": "772d5173-cde1-4e3f-a72d-864f737e07b4",
- "layout": {
- "h": 5,
- "w": 2,
- "x": 0,
- "y": 26,
- "i": "7a9fe621-aca3-4a32-aae0-c3f3cf951ba3",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "refId": "A",
- "expr": "vsphere_vm_sys_uptime_latest{vmname=\"$vmname\"}",
- "legend": "{{vmname}}"
- }
- ],
- "name": "uptime",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "humantimeSeconds"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "stat",
- "id": "6a28ae90-8a63-45a1-9ceb-ab660f0a0d75",
- "layout": {
- "h": 5,
- "w": 3,
- "x": 2,
- "y": 26,
- "i": "f1ba46e5-558d-483e-bc9b-5cffff7343a8",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_vm_cpu_ready_summation{vcenter=\"$vcenter\",vmname=\"$vmname\"}) by(vmname)/count(vsphere_vm_cpu_ready_summation{vcenter=\"$vcenter\",vmname=\"$vmname\"}) by(vmname))",
- "refId": "B",
- "legend": "cpu usage"
- }
- ],
- "name": "VM CPU Ready Time",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "milliseconds"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "0cd4f9df-81c6-4a31-a15e-060a3b0c7e65",
- "layout": {
- "h": 5,
- "w": 5,
- "x": 5,
- "y": 26,
- "i": "96826cc9-cbe0-4e4e-9144-90d9052904cd",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_vm_cpu_usage_average{vcenter=\"$vcenter\",vmname=\"$vmname\"}) by(vmname)/count(vsphere_vm_cpu_usage_average{vcenter=\"$vcenter\",vmname=\"$vmname\"}) by(vmname))",
- "refId": "B",
- "legend": "{{vmname}}"
- }
- ],
- "name": "VM CPU Usage %",
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "2beeb800-bacd-49ec-b44a-4b19d6497808",
- "layout": {
- "h": 5,
- "w": 5,
- "x": 10,
- "y": 26,
- "i": "7651144f-7b05-4a21-a595-2816f108b23d",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_vm_mem_usage_average{vcenter=\"$vcenter\",vmname=\"$vmname\"}) by(vmname)/count(vsphere_vm_mem_usage_average{vcenter=\"$vcenter\",vmname=\"$vmname\"}) by(vmname))",
- "refId": "B",
- "legend": "{{vmname}}"
- }
- ],
- "name": "VM RAM Usage in %",
- "options": {
- "tooltip": {
- "mode": "single"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- },
- {
- "type": "timeseries",
- "id": "c2804d43-f9b0-4a74-a3fe-fb1f8b5f4a01",
- "layout": {
- "h": 5,
- "w": 9,
- "x": 15,
- "y": 26,
- "i": "06122a9b-53b1-4ef9-93be-2419197600c8",
- "isResizable": true
- },
- "version": "2.0.0",
- "datasourceCate": "prometheus",
- "targets": [
- {
- "expr": "(sum(vsphere_vm_net_bytesRx_average{vmname=\"$vmname\",vcenter=\"$vcenter\"}) by(vmname))/1000",
- "refId": "B",
- "legend": "{{vmname}}-net_bytesRx"
- },
- {
- "expr": "(sum(vsphere_vm_net_bytesTx_average{vmname=\"$vmname\",vcenter=\"$vcenter\"}) by(vmname))/1000",
- "refId": "A",
- "legend": "{{vmname}}-net_bytesTx"
- }
- ],
- "name": "VMNetwork Usage",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
- }
- },
- "datasourceValue": "${datasource}"
- }
- ],
- "version": "3.0.0",
- "datasourceValue": "Default"
- }
- }
|