From 667ac0bc5c38920299bf98168c097e1c68a581ee Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 10:10:00 +0100 Subject: [PATCH 1/9] Move workload related dashboards in separated folder --- tools/plutono/provisioning/dashboards/dashboards.yml | 12 +++++++++++- .../{ => workload}/cortex-compute-global.json | 0 .../cortex-compute-global.json.license | 0 .../{ => workload}/cortex-compute-kvm-overview.json | 0 .../cortex-compute-kvm-overview.json.license} | 0 .../{ => workload}/cortex-compute-kvm.json | 0 .../cortex-compute-kvm.json.license} | 0 .../{ => workload}/cortex-compute-vmware.json | 0 .../workload/cortex-compute-vmware.json.license | 2 ++ 9 files changed, 13 insertions(+), 1 deletion(-) rename tools/plutono/provisioning/dashboards/{ => workload}/cortex-compute-global.json (100%) rename tools/plutono/provisioning/dashboards/{ => workload}/cortex-compute-global.json.license (100%) rename tools/plutono/provisioning/dashboards/{ => workload}/cortex-compute-kvm-overview.json (100%) rename tools/plutono/provisioning/dashboards/{cortex-compute-kvm.json.license => workload/cortex-compute-kvm-overview.json.license} (100%) rename tools/plutono/provisioning/dashboards/{ => workload}/cortex-compute-kvm.json (100%) rename tools/plutono/provisioning/dashboards/{cortex-compute-vmware.json.license => workload/cortex-compute-kvm.json.license} (100%) rename tools/plutono/provisioning/dashboards/{ => workload}/cortex-compute-vmware.json (100%) create mode 100644 tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json.license diff --git a/tools/plutono/provisioning/dashboards/dashboards.yml b/tools/plutono/provisioning/dashboards/dashboards.yml index 78c615248..1d1cfa10c 100644 --- a/tools/plutono/provisioning/dashboards/dashboards.yml +++ b/tools/plutono/provisioning/dashboards/dashboards.yml @@ -12,4 +12,14 @@ providers: editable: true allowUiUpdates: true options: - path: /etc/plutono/provisioning/dashboards \ No newline at end of file + path: /etc/plutono/provisioning/dashboards + + - name: 'workload' + orgId: 1 + folder: 'Workload' + type: file + disableDeletion: false + editable: true + allowUiUpdates: true + options: + path: /etc/plutono/provisioning/dashboards/workload \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-global.json b/tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-global.json rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-global.json.license b/tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-global.json.license rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json.license diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-kvm-overview.json b/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-kvm-overview.json rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-kvm.json.license b/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-kvm.json.license rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json.license diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-kvm.json b/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-kvm.json rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-vmware.json.license b/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-vmware.json.license rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json.license diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-vmware.json b/tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-vmware.json rename to tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json.license b/tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json.license new file mode 100644 index 000000000..afcb6a5ce --- /dev/null +++ b/tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json.license @@ -0,0 +1,2 @@ +# Copyright SAP SE +# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file From 042c0f513ce88e5d3ee7c1ba822f578812c75ca4 Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 10:10:16 +0100 Subject: [PATCH 2/9] Add flavor usage dashboard --- .../workload/cortex-compute-flavors.json | 525 ++++++++++++++++++ .../cortex-compute-flavors.json.license | 2 + 2 files changed, 527 insertions(+) create mode 100644 tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json create mode 100644 tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json.license diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json b/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json new file mode 100644 index 000000000..713950184 --- /dev/null +++ b/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json @@ -0,0 +1,525 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Plutono --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 5, + "iteration": 1770195363564, + "links": [], + "panels": [ + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 27, + "panels": [], + "title": "Overview - Across All Selected Availability Zones", + "type": "row" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": null, + "filterable": false + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "#" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "gradient-gauge" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 25, + "options": { + "showHeader": true + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sort_desc(sum(cortex_flavor_running_vms{project_name=~\"$project_name\", flavor_name=~\"$flavor_name\", availability_zone=~\"$availability_zone\"}) by (project_name, flavor_name))", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Flavor Usage per Project - Aggregated Across All Selected AZs", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": { + "Time": 0, + "Value": 3, + "flavor_name": 2, + "project_name": 1 + }, + "renameByName": { + "Value": "#", + "flavor_name": "Flavor", + "project_name": "Project" + } + } + } + ], + "type": "table" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 18, + "options": { + "displayMode": "gradient", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "topk(20,sort_desc(sum(cortex_flavor_running_vms{project_name=~\"$project_name\", flavor_name=~\"$flavor_name\", availability_zone=~\"$availability_zone\"}) by (flavor_name)))", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "{{flavor_name}}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Top 20 Most Used Flavors - Across All Selected AZs", + "type": "bargauge" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 4, + "panels": [ + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": null, + "filterable": false + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "#" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "gradient-gauge" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 11 + }, + "id": 2, + "options": { + "showHeader": true + }, + "pluginVersion": "7.5.37", + "scopedVars": { + "availability_zone": { + "selected": false, + "text": "qa-de-1a", + "value": "qa-de-1a" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "sort_desc(cortex_flavor_running_vms{availability_zone=\"$availability_zone\", project_name=~\"$project_name\", flavor_name=~\"$flavor_name\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Flavor Usage by Project", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "__name__": true, + "availability_zone": true, + "component": true, + "container": true, + "endpoint": true, + "github_org": true, + "github_repo": true, + "instance": true, + "job": true, + "namespace": true, + "pod": true, + "project_id": true, + "service": true + }, + "indexByName": { + "Time": 0, + "Value": 5, + "__name__": 1, + "availability_zone": 2, + "component": 6, + "container": 7, + "endpoint": 8, + "flavor_name": 4, + "github_org": 9, + "github_repo": 10, + "instance": 11, + "job": 12, + "namespace": 13, + "pod": 14, + "project_id": 15, + "project_name": 3, + "service": 16 + }, + "renameByName": { + "Value": "#", + "availability_zone": "", + "flavor_name": "Flavor", + "project_name": "Project" + } + } + } + ], + "type": "table" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 11 + }, + "id": 10, + "options": { + "displayMode": "gradient", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "7.5.37", + "scopedVars": { + "availability_zone": { + "selected": false, + "text": "qa-de-1a", + "value": "qa-de-1a" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "topk(20, sum(cortex_flavor_running_vms{availability_zone=\"$availability_zone\", flavor_name=~\"$flavor_name\", project_name=~\"$project_name\"}) by (flavor_name))", + "instant": true, + "interval": "", + "legendFormat": "{{flavor_name}} ", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Top 20 Most Used Flavors - Within This AZ", + "type": "bargauge" + } + ], + "repeat": "availability_zone", + "title": "$availability_zone", + "type": "row" + } + ], + "schemaVersion": 27, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": null, + "current": { + "selected": true, + "tags": [], + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_flavor_running_vms, availability_zone)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Availability Zone", + "multi": true, + "name": "availability_zone", + "options": [], + "query": { + "query": "label_values(cortex_flavor_running_vms, availability_zone)", + "refId": "prometheus-openstack-availability_zone-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": true, + "tags": [], + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_flavor_running_vms, project_name)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Project", + "multi": true, + "name": "project_name", + "options": [], + "query": { + "query": "label_values(cortex_flavor_running_vms, project_name)", + "refId": "prometheus-openstack-project_name-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": true, + "tags": [], + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_flavor_running_vms, flavor_name)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Flavor", + "multi": true, + "name": "flavor_name", + "options": [], + "query": { + "query": "label_values(cortex_flavor_running_vms, flavor_name)", + "refId": "prometheus-openstack-flavor_name-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cortex Compute Flavors", + "uid": "cortex-compute-flavors", + "version": 2 +} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json.license b/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json.license new file mode 100644 index 000000000..afcb6a5ce --- /dev/null +++ b/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json.license @@ -0,0 +1,2 @@ +# Copyright SAP SE +# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file From 370b0c33028fe578f31629e038777ecb03247c9d Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 13:00:40 +0100 Subject: [PATCH 3/9] Rename workload folder to compute --- .../cortex-compute-flavors.json => compute/flavors.json} | 0 .../flavors.json.license} | 0 .../cortex-compute-global.json => compute/global.json} | 0 .../global.json.license} | 0 .../kvm-overview.json} | 0 .../kvm-overview.json.license} | 0 .../{workload/cortex-compute-kvm.json => compute/kvm.json} | 0 .../kvm.json.license} | 0 .../cortex-compute-vmware.json => compute/vmware.json} | 0 .../vmware.json.license} | 0 tools/plutono/provisioning/dashboards/dashboards.yml | 6 +++--- 11 files changed, 3 insertions(+), 3 deletions(-) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-flavors.json => compute/flavors.json} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-flavors.json.license => compute/flavors.json.license} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-global.json => compute/global.json} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-global.json.license => compute/global.json.license} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-kvm-overview.json => compute/kvm-overview.json} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-kvm-overview.json.license => compute/kvm-overview.json.license} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-kvm.json => compute/kvm.json} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-kvm.json.license => compute/kvm.json.license} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-vmware.json => compute/vmware.json} (100%) rename tools/plutono/provisioning/dashboards/{workload/cortex-compute-vmware.json.license => compute/vmware.json.license} (100%) diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json b/tools/plutono/provisioning/dashboards/compute/flavors.json similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json rename to tools/plutono/provisioning/dashboards/compute/flavors.json diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json.license b/tools/plutono/provisioning/dashboards/compute/flavors.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-flavors.json.license rename to tools/plutono/provisioning/dashboards/compute/flavors.json.license diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json b/tools/plutono/provisioning/dashboards/compute/global.json similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json rename to tools/plutono/provisioning/dashboards/compute/global.json diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json.license b/tools/plutono/provisioning/dashboards/compute/global.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-global.json.license rename to tools/plutono/provisioning/dashboards/compute/global.json.license diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json rename to tools/plutono/provisioning/dashboards/compute/kvm-overview.json diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json.license b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm-overview.json.license rename to tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json b/tools/plutono/provisioning/dashboards/compute/kvm.json similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json rename to tools/plutono/provisioning/dashboards/compute/kvm.json diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json.license b/tools/plutono/provisioning/dashboards/compute/kvm.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-kvm.json.license rename to tools/plutono/provisioning/dashboards/compute/kvm.json.license diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json b/tools/plutono/provisioning/dashboards/compute/vmware.json similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json rename to tools/plutono/provisioning/dashboards/compute/vmware.json diff --git a/tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json.license b/tools/plutono/provisioning/dashboards/compute/vmware.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/workload/cortex-compute-vmware.json.license rename to tools/plutono/provisioning/dashboards/compute/vmware.json.license diff --git a/tools/plutono/provisioning/dashboards/dashboards.yml b/tools/plutono/provisioning/dashboards/dashboards.yml index 1d1cfa10c..d83d66d4f 100644 --- a/tools/plutono/provisioning/dashboards/dashboards.yml +++ b/tools/plutono/provisioning/dashboards/dashboards.yml @@ -14,12 +14,12 @@ providers: options: path: /etc/plutono/provisioning/dashboards - - name: 'workload' + - name: 'compute' orgId: 1 - folder: 'Workload' + folder: 'Compute' type: file disableDeletion: false editable: true allowUiUpdates: true options: - path: /etc/plutono/provisioning/dashboards/workload \ No newline at end of file + path: /etc/plutono/provisioning/dashboards/compute \ No newline at end of file From 6fe8ab6aece841d88967b1ed402c25cc37687cb1 Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 13:46:05 +0100 Subject: [PATCH 4/9] Added pinned project flag to vmware metrics --- .../compute/resource_capacity_vmware.go | 14 +++++++---- .../compute/resource_capacity_vmware_test.go | 24 +++++++++++++------ 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware.go b/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware.go index 46a52d0ad..8fa0ff238 100644 --- a/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware.go +++ b/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware.go @@ -46,8 +46,9 @@ func (k *VMwareResourceCapacityKPI) Init(db *db.DB, client client.Client, opts c "enabled", "decommissioned", "external_customer", - "disabled_reason", "pinned_projects", + "disabled_reason", + "pinned_project_ids", }, nil, ) @@ -64,6 +65,7 @@ func (k *VMwareResourceCapacityKPI) Init(db *db.DB, client client.Client, opts c "decommissioned", "external_customer", "pinned_projects", + "pinned_project_ids", }, nil, ) @@ -152,9 +154,11 @@ func (k *VMwareResourceCapacityKPI) exportCapacityMetricVMware(ch chan<- prometh enabled := strconv.FormatBool(host.Enabled) decommissioned := strconv.FormatBool(host.Decommissioned) externalCustomer := strconv.FormatBool(host.ExternalCustomer) - pinnedProjects := "" + pinnedProjectIds := "" + pinnedProjects := "false" if host.PinnedProjects != nil { - pinnedProjects = *host.PinnedProjects + pinnedProjectIds = *host.PinnedProjects + pinnedProjects = "true" } disabledReason := "-" @@ -174,8 +178,9 @@ func (k *VMwareResourceCapacityKPI) exportCapacityMetricVMware(ch chan<- prometh enabled, decommissioned, externalCustomer, - disabledReason, pinnedProjects, + disabledReason, + pinnedProjectIds, ) ch <- prometheus.MustNewConstMetric( @@ -191,5 +196,6 @@ func (k *VMwareResourceCapacityKPI) exportCapacityMetricVMware(ch chan<- prometh decommissioned, externalCustomer, pinnedProjects, + pinnedProjectIds, ) } diff --git a/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware_test.go b/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware_test.go index d76053d7f..875be6357 100644 --- a/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware_test.go +++ b/internal/knowledge/kpis/plugins/compute/resource_capacity_vmware_test.go @@ -166,6 +166,7 @@ func TestVMwareResourceCapacityKPI_Collect_AbsoluteMetric(t *testing.T) { WorkloadType string DisabledReason string PinnedProjects string + PinnedProjectIds string Value float64 } @@ -203,6 +204,7 @@ func TestVMwareResourceCapacityKPI_Collect_AbsoluteMetric(t *testing.T) { WorkloadType: labels["workload_type"], DisabledReason: labels["disabled_reason"], PinnedProjects: labels["pinned_projects"], + PinnedProjectIds: labels["pinned_project_ids"], Value: m.GetGauge().GetValue(), } } @@ -218,7 +220,8 @@ func TestVMwareResourceCapacityKPI_Collect_AbsoluteMetric(t *testing.T) { CPUArchitecture: "cascade-lake", WorkloadType: "general-purpose", DisabledReason: "-", - PinnedProjects: "", + PinnedProjects: "false", + PinnedProjectIds: "", Value: 60, // 100 - 40 }, "vmware-host-ram": { @@ -231,7 +234,8 @@ func TestVMwareResourceCapacityKPI_Collect_AbsoluteMetric(t *testing.T) { CPUArchitecture: "cascade-lake", WorkloadType: "general-purpose", DisabledReason: "-", - PinnedProjects: "", + PinnedProjects: "false", + PinnedProjectIds: "", Value: 160, // 200 - 40 }, "vmware-host-disk": { @@ -244,7 +248,8 @@ func TestVMwareResourceCapacityKPI_Collect_AbsoluteMetric(t *testing.T) { CPUArchitecture: "cascade-lake", WorkloadType: "general-purpose", DisabledReason: "-", - PinnedProjects: "", + PinnedProjects: "false", + PinnedProjectIds: "", Value: 260, // 300 - 40 }, } @@ -284,7 +289,7 @@ func TestVMwareResourceCapacityKPI_Collect_TotalMetric(t *testing.T) { Decommissioned: true, ExternalCustomer: true, DisabledReason: nil, - PinnedProjects: nil, + PinnedProjects: testlib.Ptr("project1,project2"), }, // Skip this because it's not a VMware host &compute.HostDetails{ @@ -396,6 +401,7 @@ func TestVMwareResourceCapacityKPI_Collect_TotalMetric(t *testing.T) { CPUArchitecture string WorkloadType string PinnedProjects string + PinnedProjectIds string Value float64 } @@ -432,6 +438,7 @@ func TestVMwareResourceCapacityKPI_Collect_TotalMetric(t *testing.T) { CPUArchitecture: labels["cpu_architecture"], WorkloadType: labels["workload_type"], PinnedProjects: labels["pinned_projects"], + PinnedProjectIds: labels["pinned_project_ids"], Value: m.GetGauge().GetValue(), } } @@ -446,7 +453,8 @@ func TestVMwareResourceCapacityKPI_Collect_TotalMetric(t *testing.T) { ExternalCustomer: "true", CPUArchitecture: "cascade-lake", WorkloadType: "general-purpose", - PinnedProjects: "", + PinnedProjects: "true", + PinnedProjectIds: "project1,project2", Value: 100, }, "vmware-host-ram": { @@ -458,7 +466,8 @@ func TestVMwareResourceCapacityKPI_Collect_TotalMetric(t *testing.T) { ExternalCustomer: "true", CPUArchitecture: "cascade-lake", WorkloadType: "general-purpose", - PinnedProjects: "", + PinnedProjects: "true", + PinnedProjectIds: "project1,project2", Value: 200, }, "vmware-host-disk": { @@ -470,7 +479,8 @@ func TestVMwareResourceCapacityKPI_Collect_TotalMetric(t *testing.T) { ExternalCustomer: "true", CPUArchitecture: "cascade-lake", WorkloadType: "general-purpose", - PinnedProjects: "", + PinnedProjects: "true", + PinnedProjectIds: "project1,project2", Value: 300, }, } From c1ebe896006334c9b7c418bd196ca57dc50fdc4d Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 14:15:29 +0100 Subject: [PATCH 5/9] Add vmware details dashboard --- .../dashboards/compute/vmware-details.json | 2494 ++++++ ...on.license => vmware-details.json.license} | 0 .../dashboards/compute/vmware.json | 7099 ----------------- 3 files changed, 2494 insertions(+), 7099 deletions(-) create mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-details.json rename tools/plutono/provisioning/dashboards/compute/{vmware.json.license => vmware-details.json.license} (100%) delete mode 100644 tools/plutono/provisioning/dashboards/compute/vmware.json diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-details.json b/tools/plutono/provisioning/dashboards/compute/vmware-details.json new file mode 100644 index 000000000..5e6c21d39 --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/vmware-details.json @@ -0,0 +1,2494 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Plutono --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 2, + "iteration": 1770209655997, + "links": [], + "panels": [ + { + "datasource": "prometheus-openstack", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 0 + }, + "id": 296, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "vCPU Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "mbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 0 + }, + "id": 301, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "RAM Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "gbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 0 + }, + "id": 302, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Disk Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, + "id": 183, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:357", + "alias": "Available", + "color": "#5794F2", + "fill": 10 + }, + { + "$$hashKey": "object:641", + "alias": "Total", + "color": "#C0D8FF" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "vCPUs over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:97", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:98", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "mbytes" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 9 + }, + "hiddenSeries": false, + "id": 303, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:357", + "alias": "Available", + "color": "#5794F2", + "fill": 10 + }, + { + "$$hashKey": "object:641", + "alias": "Total", + "color": "#C0D8FF" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "RAM over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:97", + "format": "mbytes", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:98", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "gbytes" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 9 + }, + "hiddenSeries": false, + "id": 304, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:357", + "alias": "Available", + "color": "#5794F2", + "fill": 10 + }, + { + "$$hashKey": "object:641", + "alias": "Total", + "color": "#C0D8FF" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disk over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:97", + "format": "gbytes", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:98", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 17 + }, + "hiddenSeries": false, + "id": 187, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:720", + "alias": "/.*/", + "color": "#73BF69" + }, + { + "$$hashKey": "object:728", + "alias": "/.*false.*/", + "color": "#F2495C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n)\n", + "instant": true, + "interval": "", + "legendFormat": "{{compute_host}} (Enabled: {{enabled}})", + "queryType": "randomWalk", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available vCPU Capacity per Host", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "series", + "name": null, + "show": false, + "values": [ + "current" + ] + }, + "yaxes": [ + { + "$$hashKey": "object:742", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:743", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "mbytes" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 17 + }, + "hiddenSeries": false, + "id": 188, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:720", + "alias": "/.*/", + "color": "#73BF69" + }, + { + "$$hashKey": "object:728", + "alias": "/.*false.*/", + "color": "#F2495C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n", + "instant": true, + "interval": "", + "legendFormat": "{{compute_host}} {{enabled}}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available RAM Capacity per Host", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "series", + "name": null, + "show": false, + "values": [ + "current" + ] + }, + "yaxes": [ + { + "$$hashKey": "object:742", + "format": "mbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:743", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "gbytes" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 17 + }, + "hiddenSeries": false, + "id": 189, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:720", + "alias": "/.*/", + "color": "#73BF69" + }, + { + "$$hashKey": "object:728", + "alias": "/.*false.*/", + "color": "#F2495C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n", + "instant": true, + "interval": "", + "legendFormat": "{{compute_host}} {{enabled}}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available Disk Capacity per Host", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "series", + "name": null, + "show": false, + "values": [ + "current" + ] + }, + "yaxes": [ + { + "$$hashKey": "object:742", + "format": "gbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:743", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": null, + "filterable": false + }, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available vCPUs (%)" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "gradient-gauge" + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "max", + "value": 1 + }, + { + "id": "min", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available RAM (%)" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "gradient-gauge" + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "max", + "value": 1 + }, + { + "id": "min", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available Disk (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "min", + "value": 0 + }, + { + "id": "max", + "value": 1 + }, + { + "id": "custom.displayMode", + "value": "gradient-gauge" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Enabled" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "from": "", + "id": 1, + "text": "✅", + "to": "", + "type": 1, + "value": "true" + }, + { + "from": "", + "id": 2, + "text": "❌", + "to": "", + "type": 1, + "value": "false" + } + ] + }, + { + "id": "custom.width", + "value": 71 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total RAM" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "custom.width", + "value": 93 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total Disk" + }, + "properties": [ + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "custom.width", + "value": 90 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available RAM" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "custom.width", + "value": 116 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available Disk" + }, + "properties": [ + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "custom.width", + "value": 112 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Compute Host" + }, + "properties": [ + { + "id": "custom.width", + "value": 173 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Running VMs" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Workload Type" + }, + "properties": [ + { + "id": "custom.width", + "value": 130 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU Architecture" + }, + "properties": [ + { + "id": "custom.width", + "value": 132 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Availability Zone" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available vCPUs" + }, + "properties": [ + { + "id": "custom.width", + "value": 124 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total vCPUs" + }, + "properties": [ + { + "id": "custom.width", + "value": 109 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Pinned Project Ids" + }, + "properties": [ + { + "id": "noValue", + "value": "-" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available vCPUs" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "rgba(242, 73, 92, 0)", + "value": 0 + } + ] + } + }, + { + "id": "custom.displayMode", + "value": "color-background" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available RAM" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "rgba(242, 73, 92, 0)", + "value": 0 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available Disk" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "rgba(242, 73, 92, 0)", + "value": 0 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Decommissioned" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "from": "", + "id": 1, + "text": "✅", + "to": "", + "type": 1, + "value": "true" + }, + { + "from": "", + "id": 2, + "text": "❌", + "to": "", + "type": 1, + "value": "false" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "External Customer" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "from": "", + "id": 1, + "text": "✅", + "to": "", + "type": 1, + "value": "true" + }, + { + "from": "", + "id": 2, + "text": "❌", + "to": "", + "type": 1, + "value": "false" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Pinned Projects" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "from": "", + "id": 1, + "text": "✅", + "to": "", + "type": 1, + "value": "true" + }, + { + "from": "", + "id": 2, + "text": "❌", + "to": "", + "type": 1, + "value": "false" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 28, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 217, + "options": { + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "# Add all column names here\nmax by (compute_host, disabled_reason, workload_type, availability_zone, cpu_architecture, pinned_project_ids, enabled, external_customer, pinned_projects, decommissioned) (cortex_vmware_host_capacity_available{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "queryType": "randomWalk", + "refId": "AvailableCPUQuery" + }, + { + "exemplar": true, + "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "AvailableRAMQuery" + }, + { + "exemplar": true, + "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "AvailableDiskQuery" + }, + { + "exemplar": true, + "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "TotalCPUQuery" + }, + { + "exemplar": true, + "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "TotalRAMQuery" + }, + { + "exemplar": true, + "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "TotalDiskQuery" + }, + { + "exemplar": true, + "expr": "max by (compute_host) (cortex_sap_running_vms_per_host{availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"}) ", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "RunningVMsQuery" + } + ], + "title": "Hosts", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "compute_host" + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available CPUs", + "binary": { + "left": "Value #AvailableCPUQuery", + "operator": "/", + "reducer": "sum", + "right": "Value #TotalCPUQuery" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available RAM", + "binary": { + "left": "Value #AvailableRAMQuery", + "operator": "/", + "reducer": "sum", + "right": "Value #TotalRAMQuery" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available Disk", + "binary": { + "left": "Value #AvailableDiskQuery", + "operator": "/", + "reducer": "sum", + "right": "Value #TotalDiskQuery" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "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, + "availability_zone 1": false, + "availability_zone 2": true, + "availability_zone 3": true, + "cpu_architecture 1": false, + "cpu_architecture 2": true, + "cpu_architecture 3": true, + "disabled_reason 2": true, + "disabled_reason 3": true, + "enabled 2": true, + "enabled 3": true, + "running_vms 2": true, + "running_vms 3": true, + "total 1": true, + "total 2": true, + "total 3": true, + "workload_type 1": false, + "workload_type 2": true, + "workload_type 3": true + }, + "indexByName": { + "Available CPUs": 7, + "Available Disk": 13, + "Available RAM": 10, + "Time 1": 4, + "Time 2": 19, + "Time 3": 20, + "Time 4": 21, + "Time 5": 22, + "Time 6": 23, + "Value #AvailableCPUQuery": 5, + "Value #AvailableDiskQuery": 11, + "Value #AvailableRAMQuery": 8, + "Value #TotalCPUQuery": 6, + "Value #TotalDiskQuery": 12, + "Value #TotalRAMQuery": 9, + "availability_zone": 1, + "compute_host": 0, + "cpu_architecture": 3, + "decommissioned": 16, + "disabled_reason": 15, + "enabled": 14, + "external_customer": 18, + "pinned_projects": 17, + "workload_type": 2 + }, + "renameByName": { + "Available CPUs": "Available vCPUs (%)", + "Available Disk": "Available Disk (%)", + "Available RAM": "Available RAM (%)", + "Time 2": "", + "Time 4": "", + "Value #A": "Available CPUs (%)", + "Value #AvailableCPUQuery": "Available vCPUs", + "Value #AvailableDiskQuery": "Available Disk", + "Value #AvailableRAMQuery": "Available RAM", + "Value #B": "Available RAM (%)", + "Value #C": "Available Disk (%)", + "Value #D": "Total CPUs", + "Value #E": "Total RAM", + "Value #F": "Total Disk", + "Value #RunningVMsQuery": "Running VMs", + "Value #TotalCPUQuery": "Total vCPUs", + "Value #TotalDiskQuery": "Total Disk", + "Value #TotalRAMQuery": "Total RAM", + "availability_zone": "Availability Zone", + "availability_zone 1": "Availability Zone", + "compute_host": "Compute Host", + "cpu_architecture": "CPU Architecture", + "cpu_architecture 1": "CPU Architecture", + "decommissioned": "Decommissioned", + "disabled_reason": "Disabled Reason", + "disabled_reason 1": "Disabled Reason", + "disabled_reason 2": "", + "enabled": "Enabled", + "enabled 1": "Enabled", + "external_customer": "External Customer", + "pinned_project_ids": "Pinned Project Ids", + "pinned_projects": "Pinned Projects", + "workload_type": "Workload Type", + "workload_type 1": "Workload Type" + } + } + } + ], + "type": "table" + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateViridis", + "exponent": 0.5, + "max": 100, + "min": 0, + "mode": "spectrum" + }, + "dataFormat": "tsbuckets", + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 23, + "w": 24, + "x": 0, + "y": 53 + }, + "heatmap": {}, + "hideZeroBuckets": false, + "highlightCards": true, + "id": 191, + "interval": "6h", + "legend": { + "show": false + }, + "pluginVersion": "7.5.40", + "reverseYBuckets": false, + "targets": [ + { + "exemplar": true, + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) * 100", + "interval": "", + "legendFormat": "{{compute_host}}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": "30d", + "timeShift": null, + "title": "Available vCPU Capacity over Time (%)", + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "middle", + "yBucketNumber": null, + "yBucketSize": null + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateViridis", + "exponent": 0.5, + "max": 100, + "min": 0, + "mode": "spectrum" + }, + "dataFormat": "tsbuckets", + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 23, + "w": 24, + "x": 0, + "y": 76 + }, + "heatmap": {}, + "hideZeroBuckets": false, + "highlightCards": true, + "id": 299, + "interval": "6h", + "legend": { + "show": false + }, + "pluginVersion": "7.5.40", + "reverseYBuckets": false, + "targets": [ + { + "exemplar": true, + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) * 100", + "interval": "", + "legendFormat": "{{compute_host}}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": "30d", + "timeShift": null, + "title": "Available RAM Capacity over Time (%)", + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "middle", + "yBucketNumber": null, + "yBucketSize": null + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateViridis", + "exponent": 0.5, + "max": 100, + "min": 0, + "mode": "spectrum" + }, + "dataFormat": "tsbuckets", + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 23, + "w": 24, + "x": 0, + "y": 99 + }, + "heatmap": {}, + "hideZeroBuckets": false, + "highlightCards": true, + "id": 300, + "interval": "6h", + "legend": { + "show": false + }, + "pluginVersion": "7.5.40", + "reverseYBuckets": false, + "targets": [ + { + "exemplar": true, + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) * 100", + "interval": "", + "legendFormat": "{{compute_host}}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": "30d", + "timeShift": null, + "title": "Available Disk Capacity over Time (%)", + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "middle", + "yBucketNumber": null, + "yBucketSize": null + } + ], + "refresh": "5m", + "schemaVersion": 27, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, availability_zone)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Availability Zone", + "multi": false, + "name": "availability_zone", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, availability_zone)", + "refId": "prometheus-openstack-availability_zone-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, compute_host)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Compute Host", + "multi": true, + "name": "compute_host", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, compute_host)", + "refId": "prometheus-openstack-compute_host-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, workload_type)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Workload Type", + "multi": true, + "name": "workload_type", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, workload_type)", + "refId": "prometheus-openstack-workload_type-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, cpu_architecture)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "CPU Architecture", + "multi": true, + "name": "cpu_architecture", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, cpu_architecture)", + "refId": "prometheus-openstack-cpu_architecture-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, enabled)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Enabled", + "multi": false, + "name": "enabled", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, enabled)", + "refId": "prometheus-openstack-enabled-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, decommissioned)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Decommissioned", + "multi": false, + "name": "decommissioned", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, decommissioned)", + "refId": "prometheus-openstack-decommissioned-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, external_customer)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "External Customer", + "multi": false, + "name": "external_customer", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, external_customer)", + "refId": "prometheus-openstack-external_customer-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": true, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, pinned_projects)", + "description": "Flag that indicates if a host has projects pinned to it.", + "error": null, + "hide": 0, + "includeAll": true, + "label": "Pinned Projects", + "multi": false, + "name": "pinned_projects", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, pinned_projects)", + "refId": "prometheus-openstack-pinned_projects-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": true, + "text": "", + "value": "" + }, + "description": "You can enter a project_id here, to see the capacity that is available for this project. If Pinned Projects is set to All, this includes hosts that are reserved for this project, but also all the capacity that is not reserved for any project. Example \"my-project-id|my-other-project-id\".", + "error": null, + "hide": 0, + "label": null, + "name": "Project ID", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "skipUrlSync": false, + "type": "textbox" + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cortex VMware Compute Infrastructure - Details", + "uid": "cortex-compute-vmware-details", + "version": 2 +} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/vmware.json.license b/tools/plutono/provisioning/dashboards/compute/vmware-details.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/compute/vmware.json.license rename to tools/plutono/provisioning/dashboards/compute/vmware-details.json.license diff --git a/tools/plutono/provisioning/dashboards/compute/vmware.json b/tools/plutono/provisioning/dashboards/compute/vmware.json deleted file mode 100644 index 79a6243bd..000000000 --- a/tools/plutono/provisioning/dashboards/compute/vmware.json +++ /dev/null @@ -1,7099 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Plutono --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "iteration": 1767859983442, - "links": [], - "panels": [ - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 212, - "panels": [ - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 15, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 195, - "options": { - "content": "# Cortex Infrastructure Dashboard - Compute\n\nWelcome to the Cortex Infrastructure Dashboard for the compute scheduling domain of Cortex! This dashboard provides real-time insights into the current state of our data centers and their available capacity for virtual machine placement.\nThe dashboard is built on top of the Cortex Knowledge Database, with all metrics directly exported by Cortex. This ensures that the data you see here is exactly the same data used for our actual scheduling decisions.\n\nThis dashboard is still under active development. We welcome your feedback and contributions! Please feel free to reach out to use if you want to contribute or have suggestions for improvements.\n\nThe data displayed in this dashboard represents the available capacity of each hypervisor with the following important considerations:\n\n- **Includes overcommits** - The capacity values reflect overcommitted resources as configured in the system.\n- **Failover capacity limitations** - Failover capacity is automatically excluded from the displayed values, meaning the capacity you see is what's actually available for new VM placements. However, we cannot currently show you how much capacity is being reserved for failover scenarios.\n- **Commitments not included** - The displayed capacity does not yet account for resource commitments, so this is not the final available capacity for scheduling decisions\n\n## Filters\n\n| Filter | Description |\n|--------|-------------|\n| **Availability Zone** | See the whole region or filter by specific availability zones |\n| **Hypervisor Family** | Filter by virtualization platform (KVM, VMware) |\n| **Specific Hypervisors** | Drill down to individual hypervisors |\n| **Enabled** | TODO |\n| **Workload Type** | Workload type that is supposed to run on this hypervisor. General Purpose, HANA |\n| **CPU Architecture** | CPU Architecture of the hypervisor. Cascade Lake, Sapphire Rapids |\n| **Project ID** | Filter the capacity for a specific projects. This does then include all hypervisors that allow every project as well as hypervisors that are dedicated to the specific project. |\n\n## Structure\n\nThe dashboard is organized into two main sections to provide both quick insights and detailed analysis capabilities:\n\n### Pre-filtered Sections\n\nAt the top of the dashboard, you'll find 4 pre-configured sections that represent the most common combinations of workload type and CPU architecture:\n\nThese sections are designed to save you time by eliminating the need to manually apply workload type and CPU architecture filters every time you open the dashboard. Obviously the filters for workload type and cpu architecture are already applied, but you can still use additional filters (Availability Zone, Hypervisor Family, etc.) on top of these pre-configured views.\n\nEach pre-filtered section includes:\n\n- Time series data showing available capacity trends per resource\n- Current available capacity per resource\n- Current number of hypervisors considered in the section\n- Linear trend analysis showing projected future capacity\n\n### Custom Analysis Section\n\nBelow the pre-filtered sections, there's a flexible analysis section where you can:\n\n- Apply any combination of filters according to your specific needs\n- Access the same visualization panels as in the pre-filtered sections\n- View additional detailed information about individual hypervisors (not just aggregated values)\n", - "mode": "markdown" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Introduction", - "type": "text" - } - ], - "title": "README", - "type": "row" - }, - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 319, - "panels": [ - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 323, - "options": { - "content": "\n ", - "mode": "markdown" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Total General Purpose Capacity (with commitments, no cpu architecture distinction)", - "type": "text" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "min": 0, - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": "" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Disabled" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 2, - "x": 0, - "y": 3 - }, - "id": 326, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", - "instant": false, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", - "hide": false, - "interval": "", - "legendFormat": "Disabled", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Amount Hypervisors", - "transparent": true, - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Active hypervisors" - }, - "properties": [ - { - "id": "unit", - "value": "short" - } - ] - } - ] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 7, - "x": 2, - "y": 3 - }, - "hiddenSeries": false, - "id": 327, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.41", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:253", - "alias": "Active hypervisors", - "color": "#8F3BB8", - "dashes": true, - "linewidth": 2, - "nullPointMode": "connected", - "yaxis": 2 - }, - { - "$$hashKey": "object:367", - "alias": "vCPU Capacity", - "nullPointMode": "connected" - }, - { - "$$hashKey": "object:374", - "alias": "RAM Capacity", - "nullPointMode": "connected" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n -\n sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)\n) \n/ \nsum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "instant": false, - "interval": "", - "legendFormat": "vCPU Capacity", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n -\n sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)\n) \n/ \nsum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "RAM Capacity", - "refId": "B" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Active hypervisors", - "refId": "C" - } - ], - "thresholds": [ - { - "$$hashKey": "object:786", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:348", - "format": "percentunit", - "label": "Capacity (%)", - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:349", - "format": "short", - "label": "Amount of active hypervisors", - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Capacity (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 8, - "x": 9, - "y": 3 - }, - "id": 310, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", - "instant": true, - "interval": "", - "legendFormat": "vCPU", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Available (without commitments)", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "D" - } - ], - "title": "vCPUs", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available", - "binary": { - "left": "Available (without commitments)", - "operator": "-", - "reducer": "sum", - "right": "vCPU" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Capacity (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Available": 3, - "Available (without commitments)": 2, - "Capacity (%)": 5, - "Time": 0, - "Total": 4, - "vCPU": 1 - }, - "renameByName": { - "Available": "Available - Committed", - "Available (without commitments)": "Available", - "Capacity (%)": "", - "Total": "Total", - "vCPU": "Unused Commitments" - } - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Capacity (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 7, - "x": 17, - "y": 3 - }, - "id": 315, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", - "instant": true, - "interval": "", - "legendFormat": "RAM", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Available (without commitments)", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "D" - } - ], - "title": "RAM", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available", - "binary": { - "left": "Available (without commitments)", - "operator": "-", - "reducer": "sum", - "right": "RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Capacity (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Available": 3, - "Available (without commitments)": 2, - "Capacity (%)": 5, - "RAM": 1, - "Time": 0, - "Total": 4 - }, - "renameByName": { - "Available": "Available - Committed", - "Available (without commitments)": "Available", - "Capacity (%)": "", - "RAM": "Unused Commitments", - "Total": "Total", - "vCPU": "Unused Commitments" - } - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": ".*RAM" - }, - "properties": [ - { - "id": "unit", - "value": "mbytes" - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": ".*CPU" - }, - "properties": [ - { - "id": "unit", - "value": "short" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 317, - "options": { - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_committed_per_az{service=\"compute\",resource=\"cores\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Committed CPU" - }, - { - "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_usage_per_az{service=\"compute\",resource=\"cores\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Usage CPU" - }, - { - "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_usage_per_az{service=\"compute\",resource=\"ram\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Usage RAM" - }, - { - "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_committed_per_az{service=\"compute\",resource=\"ram\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Committed RAM" - }, - { - "exemplar": true, - "expr": " clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Unused CPU" - }, - { - "exemplar": true, - "expr": " clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Unused RAM" - } - ], - "title": "Committed - Usage per project", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "project_id" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time 1": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "availability_zone 2": true, - "availability_zone 3": true, - "availability_zone 4": true, - "availability_zone 5": true, - "availability_zone 6": true - }, - "indexByName": { - "Time 1": 1, - "Time 2": 9, - "Time 3": 11, - "Time 4": 13, - "Time 5": 15, - "Time 6": 17, - "Value #Committed CPU": 3, - "Value #Committed RAM": 6, - "Value #Unused CPU": 5, - "Value #Unused RAM": 8, - "Value #Usage CPU": 4, - "Value #Usage RAM": 7, - "availability_zone 1": 2, - "availability_zone 2": 10, - "availability_zone 3": 12, - "availability_zone 4": 14, - "availability_zone 5": 16, - "availability_zone 6": 18, - "project_id": 0 - }, - "renameByName": { - "Value #Committed CPU": "Committed CPU", - "Value #Committed RAM": "Committed RAM", - "Value #Unused CPU": "Unused CPU", - "Value #Unused RAM": "Unused RAM", - "Value #Usage CPU": "Used CPU", - "Value #Usage RAM": "Used RAM", - "availability_zone 1": "Availability Zone", - "availability_zone 5": "", - "project_id": "Project ID" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 - }, - "id": 324, - "options": { - "content": "", - "mode": "html" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Cascade Lake (without commitments)", - "type": "text" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "min": 0, - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": "" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Disabled" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 2, - "x": 0, - "y": 23 - }, - "id": 291, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", - "instant": false, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", - "hide": false, - "interval": "", - "legendFormat": "Disabled", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Amount Hypervisors", - "transparent": true, - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Active hypervisor" - }, - "properties": [ - { - "id": "unit", - "value": "short" - } - ] - } - ] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 7, - "x": 2, - "y": 23 - }, - "hiddenSeries": false, - "id": 292, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.41", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:709", - "alias": "Active hypervisor", - "color": "#8F3BB8", - "dashes": true, - "linewidth": 2, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "interval": "", - "legendFormat": "Available vCPU", - "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Active hypervisor", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:221", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "vCPU Capacity", - "binary": { - "left": "Available vCPU", - "operator": "/", - "reducer": "sum", - "right": "Total vCPU" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "RAM Capacity", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Disk Capacity", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, - "Total Disk": true, - "Total RAM": true, - "Total vCPU": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:149", - "format": "percentunit", - "label": "Capacity (%)", - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:150", - "format": "short", - "label": "Amount of active hypervisors", - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 9, - "y": 23 - }, - "id": 293, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 14, - "y": 23 - }, - "id": 294, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 19, - "y": 23 - }, - "id": 295, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 34 - }, - "id": 322, - "options": { - "content": "", - "mode": "html" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Sapphire Rapids (without commitments)", - "type": "text" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "min": 0, - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": "" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Disabled" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 2, - "x": 0, - "y": 35 - }, - "id": 246, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", - "instant": false, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", - "hide": false, - "interval": "", - "legendFormat": "Disabled", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Amount Hypervisors", - "transparent": true, - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Active hypervisor" - }, - "properties": [ - { - "id": "unit", - "value": "short" - } - ] - } - ] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 7, - "x": 2, - "y": 35 - }, - "hiddenSeries": false, - "id": 243, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.41", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:527", - "alias": "Active hypervisor", - "color": "#8F3BB8", - "dashes": true, - "linewidth": 2, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "interval": "", - "legendFormat": "Available vCPU", - "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Active hypervisor", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:221", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "vCPU Capacity", - "binary": { - "left": "Available vCPU", - "operator": "/", - "reducer": "sum", - "right": "Total vCPU" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "RAM Capacity", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Disk Capacity", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, - "Total Disk": true, - "Total RAM": true, - "Total vCPU": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:149", - "format": "percentunit", - "label": "Capacity (%)", - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:150", - "format": "short", - "label": "Amount of active hypervisors", - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 9, - "y": 35 - }, - "id": 288, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 14, - "y": 35 - }, - "id": 289, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 19, - "y": 35 - }, - "id": 290, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "transparent": true, - "type": "stat" - } - ], - "title": "General Purpose", - "type": "row" - }, - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 226, - "panels": [ - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "min": 0, - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": "" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Disabled" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 2, - "x": 0, - "y": 3 - }, - "id": 299, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", - "instant": false, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", - "hide": false, - "interval": "", - "legendFormat": "Disabled", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Amount Hypervisors", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 7, - "x": 2, - "y": 3 - }, - "hiddenSeries": false, - "id": 300, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.41", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "interval": "", - "legendFormat": "Available vCPU", - "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" - } - ], - "thresholds": [ - { - "$$hashKey": "object:221", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "vCPU Capacity", - "binary": { - "left": "Available vCPU", - "operator": "/", - "reducer": "sum", - "right": "Total vCPU" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "RAM Capacity", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Disk Capacity", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, - "Total Disk": true, - "Total RAM": true, - "Total vCPU": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:149", - "format": "percentunit", - "label": "Capacity (%)", - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:150", - "format": "short", - "label": "Amount of active hypervisors", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 9, - "y": 3 - }, - "id": 301, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 14, - "y": 3 - }, - "id": 302, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 19, - "y": 3 - }, - "id": 303, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - } - ], - "title": "HANA | Cascade Lake", - "type": "row" - }, - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 3 - }, - "id": 228, - "panels": [ - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "min": 0, - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": "" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Disabled" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 2, - "x": 0, - "y": 4 - }, - "id": 304, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", - "instant": false, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", - "hide": false, - "interval": "", - "legendFormat": "Disabled", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Amount Hypervisors", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Active hypervisor" - }, - "properties": [ - { - "id": "unit", - "value": "short" - } - ] - } - ] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 7, - "x": 2, - "y": 4 - }, - "hiddenSeries": false, - "id": 305, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.41", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:299", - "alias": "Active hypervisor", - "color": "#8F3BB8", - "dashes": true, - "linewidth": 2, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "interval": "", - "legendFormat": "Available vCPU", - "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" - }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) ", - "hide": false, - "interval": "", - "legendFormat": "Active hypervisor", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:221", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "vCPU Capacity", - "binary": { - "left": "Available vCPU", - "operator": "/", - "reducer": "sum", - "right": "Total vCPU" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "RAM Capacity", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Disk Capacity", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, - "Total Disk": true, - "Total RAM": true, - "Total vCPU": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:149", - "format": "percentunit", - "label": "Capacity (%)", - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:150", - "format": "short", - "label": "Amount of active hypervisors", - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 9, - "y": 4 - }, - "id": 306, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 14, - "y": 4 - }, - "id": 307, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 5, - "x": 19, - "y": 4 - }, - "id": 308, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.41", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - } - ], - "title": "HANA | Sapphire Rapids", - "type": "row" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 4 - }, - "id": 165, - "panels": [], - "title": "Total Over Current Selection", - "type": "row" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 0, - "y": 5 - }, - "id": 296, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 8, - "y": 5 - }, - "id": 297, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 16, - "y": 5 - }, - "id": 298, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "instant": true, - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - }, - { - "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n )\n[56d:4h], 4838400)", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Predicted (%) in 2 Months", - "binary": { - "left": "Predicted Capacity", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Predicted Capacity": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 14 - }, - "hiddenSeries": false, - "id": 183, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:357", - "alias": "Available", - "color": "#5794F2", - "fill": 10 - }, - { - "$$hashKey": "object:641", - "alias": "Total", - "color": "#C0D8FF" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)", - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "vCPUs over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:97", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:98", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "mbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 14 - }, - "hiddenSeries": false, - "id": 184, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:456", - "alias": "Available", - "color": "#5794F2", - "fill": 10 - }, - { - "$$hashKey": "object:830", - "alias": "Total", - "color": "#C0D8FF" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)", - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "RAM over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:97", - "format": "mbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:98", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "gbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 14 - }, - "hiddenSeries": false, - "id": 185, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:544", - "alias": "Available", - "color": "#5794F2", - "fill": 10 - }, - { - "$$hashKey": "object:932", - "alias": "Total", - "color": "#C0D8FF" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)", - "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:97", - "format": "gbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:98", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 22 - }, - "hiddenSeries": false, - "id": 187, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:720", - "alias": "/.*/", - "color": "#73BF69" - }, - { - "$$hashKey": "object:728", - "alias": "/.*false.*/", - "color": "#F2495C" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sort(\n max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available_pct{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n ) \n)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}} {{enabled}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available vCPU Capacity per Host (%)", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "current" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:742", - "format": "percent", - "label": null, - "logBase": 1, - "max": "100", - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:743", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 22 - }, - "hiddenSeries": false, - "id": 188, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:720", - "alias": "/.*/", - "color": "#73BF69" - }, - { - "$$hashKey": "object:728", - "alias": "/.*false.*/", - "color": "#F2495C" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sort(\n max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available_pct{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n ) \n)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}} {{enabled}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available RAM Capacity per Host (%)", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "current" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:742", - "format": "percent", - "label": null, - "logBase": 1, - "max": "100", - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:743", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 22 - }, - "hiddenSeries": false, - "id": 189, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:720", - "alias": "/.*/", - "color": "#73BF69" - }, - { - "$$hashKey": "object:728", - "alias": "/.*false.*/", - "color": "#F2495C" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sort(\n max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available_pct{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n ) \n)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}} {{enabled}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Disk Capacity per Host (%)", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "current" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:742", - "format": "percent", - "label": null, - "logBase": 1, - "max": "100", - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:743", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available vCPUs (%)" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "gradient-gauge" - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "max", - "value": 1 - }, - { - "id": "min", - "value": 0 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available RAM (%)" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "gradient-gauge" - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "max", - "value": 1 - }, - { - "id": "min", - "value": 0 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available Disk (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "min", - "value": 0 - }, - { - "id": "max", - "value": 1 - }, - { - "id": "custom.displayMode", - "value": "gradient-gauge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Enabled" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "from": "", - "id": 1, - "text": "✅", - "to": "", - "type": 1, - "value": "true" - }, - { - "from": "", - "id": 2, - "text": "❌", - "to": "", - "type": 1, - "value": "false" - } - ] - }, - { - "id": "custom.width", - "value": 71 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total RAM" - }, - "properties": [ - { - "id": "unit", - "value": "mbytes" - }, - { - "id": "custom.width", - "value": 93 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total Disk" - }, - "properties": [ - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "custom.width", - "value": 90 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available RAM" - }, - "properties": [ - { - "id": "unit", - "value": "mbytes" - }, - { - "id": "custom.width", - "value": 116 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available Disk" - }, - "properties": [ - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "custom.width", - "value": 112 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Compute Host" - }, - "properties": [ - { - "id": "custom.width", - "value": 173 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Running VMs" - }, - "properties": [ - { - "id": "custom.width", - "value": 110 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Workload Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 130 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU Architecture" - }, - "properties": [ - { - "id": "custom.width", - "value": 132 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Availability Zone" - }, - "properties": [ - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available vCPUs" - }, - "properties": [ - { - "id": "custom.width", - "value": 124 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total vCPUs" - }, - "properties": [ - { - "id": "custom.width", - "value": 109 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Pinned Project Ids" - }, - "properties": [ - { - "id": "noValue", - "value": "-" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available vCPUs" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgba(242, 73, 92, 0)", - "value": 0 - } - ] - } - }, - { - "id": "custom.displayMode", - "value": "color-background" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available RAM" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgba(242, 73, 92, 0)", - "value": 0 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Available Disk" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgba(242, 73, 92, 0)", - "value": 0 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 28, - "w": 24, - "x": 0, - "y": 30 - }, - "id": 217, - "options": { - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Disabled Reason" - } - ] - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "exemplar": true, - "expr": "# Add all column names here\nmax by (compute_host, enabled, disabled_reason, workload_type, availability_zone, cpu_architecture, pinned_projects) (cortex_vmware_host_capacity_available{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "AvailableCPUQuery" - }, - { - "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "AvailableRAMQuery" - }, - { - "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "AvailableDiskQuery" - }, - { - "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "TotalCPUQuery" - }, - { - "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "TotalRAMQuery" - }, - { - "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "TotalDiskQuery" - }, - { - "exemplar": true, - "expr": "max by (compute_host) (cortex_sap_running_vms_per_host{availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", hypervisor_family=~\"$hypervisor_family\", workload_type=~\"$workload_type\", enabled=~\"$enabled\", cpu_architecture=~\"$cpu_architecture\", pinned_projects=~\"(^$|.*$project_id.*)\"}) ", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "RunningVMsQuery" - } - ], - "title": "Hosts", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "compute_host" - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available CPUs", - "binary": { - "left": "Value #AvailableCPUQuery", - "operator": "/", - "reducer": "sum", - "right": "Value #TotalCPUQuery" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available RAM", - "binary": { - "left": "Value #AvailableRAMQuery", - "operator": "/", - "reducer": "sum", - "right": "Value #TotalRAMQuery" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available Disk", - "binary": { - "left": "Value #AvailableDiskQuery", - "operator": "/", - "reducer": "sum", - "right": "Value #TotalDiskQuery" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "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, - "availability_zone 1": false, - "availability_zone 2": true, - "availability_zone 3": true, - "cpu_architecture 1": false, - "cpu_architecture 2": true, - "cpu_architecture 3": true, - "disabled_reason 2": true, - "disabled_reason 3": true, - "enabled 2": true, - "enabled 3": true, - "hypervisor_family 1": true, - "hypervisor_family 2": true, - "hypervisor_family 3": true, - "running_vms 2": true, - "running_vms 3": true, - "total 1": true, - "total 2": true, - "total 3": true, - "workload_type 1": false, - "workload_type 2": true, - "workload_type 3": true - }, - "indexByName": { - "Available CPUs": 10, - "Available Disk": 16, - "Available RAM": 13, - "Time 1": 7, - "Time 2": 17, - "Time 3": 18, - "Time 4": 19, - "Time 5": 20, - "Time 6": 21, - "Time 7": 22, - "Value #AvailableCPUQuery": 8, - "Value #AvailableDiskQuery": 14, - "Value #AvailableRAMQuery": 11, - "Value #RunningVMsQuery": 4, - "Value #TotalCPUQuery": 9, - "Value #TotalDiskQuery": 15, - "Value #TotalRAMQuery": 12, - "availability_zone": 1, - "compute_host": 0, - "cpu_architecture": 3, - "disabled_reason": 6, - "enabled": 5, - "workload_type": 2 - }, - "renameByName": { - "Available CPUs": "Available vCPUs (%)", - "Available Disk": "Available Disk (%)", - "Available RAM": "Available RAM (%)", - "Time 2": "", - "Time 4": "", - "Value #A": "Available CPUs (%)", - "Value #AvailableCPUQuery": "Available vCPUs", - "Value #AvailableDiskQuery": "Available Disk", - "Value #AvailableRAMQuery": "Available RAM", - "Value #B": "Available RAM (%)", - "Value #C": "Available Disk (%)", - "Value #D": "Total CPUs", - "Value #E": "Total RAM", - "Value #F": "Total Disk", - "Value #RunningVMsQuery": "Running VMs", - "Value #TotalCPUQuery": "Total vCPUs", - "Value #TotalDiskQuery": "Total Disk", - "Value #TotalRAMQuery": "Total RAM", - "availability_zone": "Availability Zone", - "availability_zone 1": "Availability Zone", - "compute_host": "Compute Host", - "cpu_architecture": "CPU Architecture", - "cpu_architecture 1": "CPU Architecture", - "disabled_reason": "Disabled Reason", - "disabled_reason 1": "Disabled Reason", - "disabled_reason 2": "", - "enabled": "Enabled", - "enabled 1": "Enabled", - "hypervisor_family 1": "Hypervisor Family", - "pinned_projects": "Pinned Project Ids", - "workload_type": "Workload Type", - "workload_type 1": "Workload Type" - } - } - } - ], - "type": "table" - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateViridis", - "exponent": 0.5, - "max": 100, - "min": 0, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 23, - "w": 24, - "x": 0, - "y": 58 - }, - "heatmap": {}, - "hideZeroBuckets": false, - "highlightCards": true, - "id": 191, - "interval": "6h", - "legend": { - "show": false - }, - "pluginVersion": "7.5.40", - "reverseYBuckets": false, - "targets": [ - { - "exemplar": true, - "expr": "sort(\n max by (compute_host) (\n cortex_vmware_host_capacity_available_pct{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n ) \n)", - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": "30d", - "timeShift": null, - "title": "Available vCPU Capacity over Time (%)", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "middle", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateViridis", - "exponent": 0.5, - "max": 100, - "min": 0, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 23, - "w": 24, - "x": 0, - "y": 81 - }, - "heatmap": {}, - "hideZeroBuckets": false, - "highlightCards": true, - "id": 192, - "interval": "6h", - "legend": { - "show": false - }, - "pluginVersion": "7.5.40", - "reverseYBuckets": false, - "targets": [ - { - "exemplar": true, - "expr": "sort(\n max by (compute_host) (\n cortex_vmware_host_capacity_available_pct{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n ) \n)", - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": "30d", - "timeShift": null, - "title": "Available RAM Capacity over Time (%)", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "middle", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateViridis", - "exponent": 0.5, - "max": 100, - "min": 0, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 23, - "w": 24, - "x": 0, - "y": 104 - }, - "heatmap": {}, - "hideZeroBuckets": false, - "highlightCards": true, - "id": 193, - "interval": "6h", - "legend": { - "show": false - }, - "pluginVersion": "7.5.40", - "reverseYBuckets": false, - "targets": [ - { - "exemplar": true, - "expr": "sort(\n max by (compute_host) (\n cortex_vmware_host_capacity_available_pct{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n ) \n)", - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": "30d", - "timeShift": null, - "title": "Available Disk Capacity over Time (%)", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "middle", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 127 - }, - "id": 329, - "panels": [], - "title": "Flavor Usage", - "type": "row" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "#" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 100 - }, - { - "color": "red", - "value": 1000 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 18, - "w": 12, - "x": 0, - "y": 128 - }, - "id": 331, - "options": { - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "#" - } - ] - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "exemplar": true, - "expr": "cortex_sap_flavor_running_vms{availability_zone=~\"$availability_zone\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Running Workload", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "__name__": true, - "cluster": true, - "cluster_type": true, - "component": true, - "container": true, - "endpoint": true, - "github_org": true, - "github_repo": true, - "instance": true, - "job": true, - "namespace": true, - "pod": true, - "prometheus": true, - "region": true, - "service": true - }, - "indexByName": {}, - "renameByName": { - "Value": "#", - "availability_zone": "Availability Zone", - "cluster": "", - "flavor_name": "Flavor", - "pod": "" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 18, - "w": 12, - "x": 12, - "y": 128 - }, - "id": 333, - "options": { - "content": "# Flavor Usage\n\nThe table shows how many virtuals machines there are by flavor and availability zone. The only filter that you can apply here is the `availability_zone` filter.\n ", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "README", - "type": "text" - } - ], - "refresh": "5m", - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, availability_zone)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Availability Zone", - "multi": false, - "name": "availability_zone", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, availability_zone)", - "refId": "prometheus-openstack-availability_zone-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, hypervisor_family)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Hypervisor Family", - "multi": true, - "name": "hypervisor_family", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, hypervisor_family)", - "refId": "prometheus-openstack-hypervisor_family-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, compute_host)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Compute Host", - "multi": true, - "name": "compute_host", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, compute_host)", - "refId": "prometheus-openstack-compute_host-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, enabled)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Enabled", - "multi": false, - "name": "enabled", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, enabled)", - "refId": "prometheus-openstack-enabled-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, workload_type)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Workload Type", - "multi": true, - "name": "workload_type", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, workload_type)", - "refId": "prometheus-openstack-workload_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, cpu_architecture)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "CPU Architecture", - "multi": true, - "name": "cpu_architecture", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, cpu_architecture)", - "refId": "prometheus-openstack-cpu_architecture-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": "", - "value": "" - }, - "description": "You can enter a project_id here, to see the capacity that is available for this project. This includes hosts that are reserved for this project, but also all the capacity that is not reserved for any project. Example \"my-project-id|my-other-project-id\".", - "error": null, - "hide": 0, - "label": null, - "name": "project_id", - "options": [ - { - "selected": true, - "text": "", - "value": "" - } - ], - "query": "", - "skipUrlSync": false, - "type": "textbox" - } - ] - }, - "time": { - "from": "now-7d", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Cortex VMware Infrastructure - Compute", - "uid": "cortex-compute-vmware", - "version": 1 -} \ No newline at end of file From 38ca0b1b1b1d6fbbd31e5ad38e6628ab21d82f02 Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 14:17:55 +0100 Subject: [PATCH 6/9] Add flags to vmware queries --- .../dashboards/compute/vmware-details.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-details.json b/tools/plutono/provisioning/dashboards/compute/vmware-details.json index 5e6c21d39..aea031f7b 100644 --- a/tools/plutono/provisioning/dashboards/compute/vmware-details.json +++ b/tools/plutono/provisioning/dashboards/compute/vmware-details.json @@ -1739,7 +1739,7 @@ ] }, "gridPos": { - "h": 28, + "h": 16, "w": 24, "x": 0, "y": 25 @@ -1999,7 +1999,7 @@ "h": 23, "w": 24, "x": 0, - "y": 53 + "y": 41 }, "heatmap": {}, "hideZeroBuckets": false, @@ -2014,7 +2014,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) * 100", + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) * 100", "interval": "", "legendFormat": "{{compute_host}}", "queryType": "randomWalk", @@ -2071,7 +2071,7 @@ "h": 23, "w": 24, "x": 0, - "y": 76 + "y": 64 }, "heatmap": {}, "hideZeroBuckets": false, @@ -2086,7 +2086,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) * 100", + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) * 100", "interval": "", "legendFormat": "{{compute_host}}", "queryType": "randomWalk", @@ -2143,7 +2143,7 @@ "h": 23, "w": 24, "x": 0, - "y": 99 + "y": 87 }, "heatmap": {}, "hideZeroBuckets": false, @@ -2158,7 +2158,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\"\n }\n) * 100", + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) * 100", "interval": "", "legendFormat": "{{compute_host}}", "queryType": "randomWalk", From 2e91ecad2b2040f49c24e5677c1a0bb17cc1a6eb Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 16:23:56 +0100 Subject: [PATCH 7/9] Initialize overview dashboard --- .../dashboards/compute/vmware-overview.json | 5198 +++++++++++++++++ .../compute/vmware-overview.json.license | 2 + 2 files changed, 5200 insertions(+) create mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-overview.json create mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-overview.json.license diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-overview.json b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json new file mode 100644 index 000000000..9eabf89e0 --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json @@ -0,0 +1,5198 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Plutono --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 4, + "iteration": 1770216963725, + "links": [], + "panels": [ + { + "datasource": null, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 3, + "x": 0, + "y": 0 + }, + "id": 332, + "options": { + "content": "# README\n\nHere you can see the \"general\" available capacity right now.\nThat means only capacity that is not reserved for external customer or certain projects, no decommissioned and only enabled hosts. \n\nFor more details see the prefiltered sections below.", + "mode": "markdown" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "type": "text" + }, + { + "datasource": "prometheus-openstack", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 7, + "x": 3, + "y": 0 + }, + "id": 330, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "interval": "", + "legendFormat": "Available CPU", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total CPU", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "F" + } + ], + "title": "General Purpose (With Commitments)", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available CPU (%)", + "binary": { + "left": "Available CPU", + "operator": "/", + "reducer": "sum", + "right": "Total CPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available RAM (%)", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available Disk (%)", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available CPU": true, + "Available Disk": true, + "Available RAM": true, + "Time": true, + "Total CPU": true, + "Total Disk": true, + "Total RAM": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 7, + "x": 10, + "y": 0 + }, + "id": 335, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "interval": "", + "legendFormat": "Available CPU", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total CPU", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "F" + } + ], + "title": "HANA | Cascade Lake (No Commitments)", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available CPU (%)", + "binary": { + "left": "Available CPU", + "operator": "/", + "reducer": "sum", + "right": "Total CPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available RAM (%)", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available Disk (%)", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available CPU": true, + "Available Disk": true, + "Available RAM": true, + "Time": true, + "Total CPU": true, + "Total Disk": true, + "Total RAM": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 7, + "x": 17, + "y": 0 + }, + "id": 334, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "interval": "", + "legendFormat": "Available CPU", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total CPU", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "F" + } + ], + "title": "HANA | Sapphire Rapids (No Commitments)", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available CPU (%)", + "binary": { + "left": "Available CPU", + "operator": "/", + "reducer": "sum", + "right": "Total CPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available RAM (%)", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available Disk (%)", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available CPU": true, + "Available Disk": true, + "Available RAM": true, + "Time": true, + "Total CPU": true, + "Total Disk": true, + "Total RAM": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 319, + "panels": [ + { + "datasource": null, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 323, + "options": { + "content": "\n ", + "mode": "markdown" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Total General Purpose Capacity (with commitments, no cpu architecture distinction)", + "type": "text" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": "" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Disabled" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 2, + "x": 0, + "y": 11 + }, + "id": 326, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "instant": false, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Disabled", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Amount Hypervisors", + "transparent": true, + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hypervisors" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 11, + "w": 7, + "x": 2, + "y": 11 + }, + "hiddenSeries": false, + "id": 327, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:253", + "alias": "Active hypervisors", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "nullPointMode": "connected", + "yaxis": 2 + }, + { + "$$hashKey": "object:367", + "alias": "vCPU Capacity", + "nullPointMode": "connected" + }, + { + "$$hashKey": "object:374", + "alias": "RAM Capacity", + "nullPointMode": "connected" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n -\n sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)\n) \n/ \nsum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "instant": false, + "interval": "", + "legendFormat": "vCPU Capacity", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n -\n sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)\n) \n/ \nsum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "RAM Capacity", + "refId": "B" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Active hypervisors", + "refId": "C" + } + ], + "thresholds": [ + { + "$$hashKey": "object:786", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available Capacity over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [], + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:348", + "format": "percentunit", + "label": "Capacity (%)", + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:349", + "format": "short", + "label": "Amount of active hypervisors", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Capacity (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 8, + "x": 9, + "y": 11 + }, + "id": 310, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "instant": true, + "interval": "", + "legendFormat": "vCPU", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available (without commitments)", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "D" + } + ], + "title": "vCPUs", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Available (without commitments)", + "operator": "-", + "reducer": "sum", + "right": "vCPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Capacity (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Available": 3, + "Available (without commitments)": 2, + "Capacity (%)": 5, + "Time": 0, + "Total": 4, + "vCPU": 1 + }, + "renameByName": { + "Available": "Available - Committed", + "Available (without commitments)": "Available", + "Capacity (%)": "", + "Total": "Total", + "vCPU": "Unused Commitments" + } + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "mbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Capacity (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 7, + "x": 17, + "y": 11 + }, + "id": 315, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "instant": true, + "interval": "", + "legendFormat": "RAM", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available (without commitments)", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "D" + } + ], + "title": "RAM", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Available (without commitments)", + "operator": "-", + "reducer": "sum", + "right": "RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Capacity (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Available": 3, + "Available (without commitments)": 2, + "Capacity (%)": 5, + "RAM": 1, + "Time": 0, + "Total": 4 + }, + "renameByName": { + "Available": "Available - Committed", + "Available (without commitments)": "Available", + "Capacity (%)": "", + "RAM": "Unused Commitments", + "Total": "Total", + "vCPU": "Unused Commitments" + } + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": null, + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": ".*RAM" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": ".*CPU" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 317, + "options": { + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "max by (project_id, availability_zone) (\n limes_project_committed_per_az{service=\"compute\",resource=\"cores\",availability_zone=~\"$availability_zone\"}\n)", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Committed CPU" + }, + { + "exemplar": true, + "expr": "max by (project_id, availability_zone) (\n limes_project_usage_per_az{service=\"compute\",resource=\"cores\",availability_zone=~\"$availability_zone\"}\n)", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Usage CPU" + }, + { + "exemplar": true, + "expr": "max by (project_id, availability_zone) (\n limes_project_usage_per_az{service=\"compute\",resource=\"ram\",availability_zone=~\"$availability_zone\"}\n)", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Usage RAM" + }, + { + "exemplar": true, + "expr": "max by (project_id, availability_zone) (\n limes_project_committed_per_az{service=\"compute\",resource=\"ram\",availability_zone=~\"$availability_zone\"}\n)", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Committed RAM" + }, + { + "exemplar": true, + "expr": " clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Unused CPU" + }, + { + "exemplar": true, + "expr": " clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Unused RAM" + } + ], + "title": "Committed - Usage per project", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "project_id" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "availability_zone 2": true, + "availability_zone 3": true, + "availability_zone 4": true, + "availability_zone 5": true, + "availability_zone 6": true + }, + "indexByName": { + "Time 1": 1, + "Time 2": 9, + "Time 3": 11, + "Time 4": 13, + "Time 5": 15, + "Time 6": 17, + "Value #Committed CPU": 3, + "Value #Committed RAM": 6, + "Value #Unused CPU": 5, + "Value #Unused RAM": 8, + "Value #Usage CPU": 4, + "Value #Usage RAM": 7, + "availability_zone 1": 2, + "availability_zone 2": 10, + "availability_zone 3": 12, + "availability_zone 4": 14, + "availability_zone 5": 16, + "availability_zone 6": 18, + "project_id": 0 + }, + "renameByName": { + "Value #Committed CPU": "Committed CPU", + "Value #Committed RAM": "Committed RAM", + "Value #Unused CPU": "Unused CPU", + "Value #Unused RAM": "Unused RAM", + "Value #Usage CPU": "Used CPU", + "Value #Usage RAM": "Used RAM", + "availability_zone 1": "Availability Zone", + "availability_zone 5": "", + "project_id": "Project ID" + } + } + } + ], + "type": "table" + }, + { + "datasource": null, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 324, + "options": { + "content": "", + "mode": "html" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Cascade Lake (without commitments)", + "type": "text" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": "" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Disabled" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 2, + "x": 0, + "y": 31 + }, + "id": 291, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "instant": false, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Disabled", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Amount Hypervisors", + "transparent": true, + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hypervisor" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 11, + "w": 7, + "x": 2, + "y": 31 + }, + "hiddenSeries": false, + "id": 292, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:709", + "alias": "Active hypervisor", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "interval": "", + "legendFormat": "Available vCPU", + "queryType": "randomWalk", + "refId": "VCPUAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "RAMAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "DiskAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total vCPU", + "refId": "TotalVCPUCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "TotalRamCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "TotalDiskCapacity" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Active hypervisor", + "refId": "A" + } + ], + "thresholds": [ + { + "$$hashKey": "object:221", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available Capacity over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "vCPU Capacity", + "binary": { + "left": "Available vCPU", + "operator": "/", + "reducer": "sum", + "right": "Total vCPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM Capacity", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Disk Capacity", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Disk": true, + "Available RAM": true, + "Available vCPU": true, + "Total Disk": true, + "Total RAM": true, + "Total vCPU": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:149", + "format": "percentunit", + "label": "Capacity (%)", + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:150", + "format": "short", + "label": "Amount of active hypervisors", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 9, + "y": 31 + }, + "id": 293, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "vCPU Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "mbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 14, + "y": 31 + }, + "id": 294, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "RAM Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "gbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 19, + "y": 31 + }, + "id": 295, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Disk Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": null, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 42 + }, + "id": 322, + "options": { + "content": "", + "mode": "html" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Sapphire Rapids (without commitments)", + "type": "text" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": "" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Disabled" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 2, + "x": 0, + "y": 43 + }, + "id": 246, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "instant": false, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Disabled", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Amount Hypervisors", + "transparent": true, + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hypervisor" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 11, + "w": 7, + "x": 2, + "y": 43 + }, + "hiddenSeries": false, + "id": 243, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:527", + "alias": "Active hypervisor", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "interval": "", + "legendFormat": "Available vCPU", + "queryType": "randomWalk", + "refId": "VCPUAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "RAMAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "DiskAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total vCPU", + "refId": "TotalVCPUCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "TotalRamCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "TotalDiskCapacity" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Active hypervisor", + "refId": "A" + } + ], + "thresholds": [ + { + "$$hashKey": "object:221", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available Capacity over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "vCPU Capacity", + "binary": { + "left": "Available vCPU", + "operator": "/", + "reducer": "sum", + "right": "Total vCPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM Capacity", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Disk Capacity", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Disk": true, + "Available RAM": true, + "Available vCPU": true, + "Total Disk": true, + "Total RAM": true, + "Total vCPU": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:149", + "format": "percentunit", + "label": "Capacity (%)", + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:150", + "format": "short", + "label": "Amount of active hypervisors", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 9, + "y": 43 + }, + "id": 288, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "vCPU Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 14, + "y": 43 + }, + "id": 328, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "vCPU Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "gbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 19, + "y": 43 + }, + "id": 290, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Disk Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "transparent": true, + "type": "stat" + } + ], + "title": "General Purpose", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 226, + "panels": [ + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": "" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Disabled" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 2, + "x": 0, + "y": 10 + }, + "id": 299, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "instant": false, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Disabled", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Amount Hypervisors", + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 11, + "w": 7, + "x": 2, + "y": 10 + }, + "hiddenSeries": false, + "id": 300, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "interval": "", + "legendFormat": "Available vCPU", + "queryType": "randomWalk", + "refId": "VCPUAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "RAMAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "DiskAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total vCPU", + "refId": "TotalVCPUCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "TotalRamCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "TotalDiskCapacity" + } + ], + "thresholds": [ + { + "$$hashKey": "object:221", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available Capacity over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "vCPU Capacity", + "binary": { + "left": "Available vCPU", + "operator": "/", + "reducer": "sum", + "right": "Total vCPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM Capacity", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Disk Capacity", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Disk": true, + "Available RAM": true, + "Available vCPU": true, + "Total Disk": true, + "Total RAM": true, + "Total vCPU": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:149", + "format": "percentunit", + "label": "Capacity (%)", + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:150", + "format": "short", + "label": "Amount of active hypervisors", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 9, + "y": 10 + }, + "id": 301, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "vCPU Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "mbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 14, + "y": 10 + }, + "id": 302, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "RAM Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "gbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 19, + "y": 10 + }, + "id": 303, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Disk Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + } + ], + "title": "HANA | Cascade Lake", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 228, + "panels": [ + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": "" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Disabled" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 2, + "x": 0, + "y": 59 + }, + "id": 304, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "instant": false, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Disabled", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Amount Hypervisors", + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hypervisor" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 11, + "w": 7, + "x": 2, + "y": 59 + }, + "hiddenSeries": false, + "id": 305, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.37", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:299", + "alias": "Active hypervisor", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "interval": "", + "legendFormat": "Available vCPU", + "queryType": "randomWalk", + "refId": "VCPUAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "hide": false, + "interval": "", + "legendFormat": "Available RAM", + "refId": "RAMAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Available Disk", + "refId": "DiskAvailableCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total vCPU", + "refId": "TotalVCPUCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "TotalRamCapacity" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "TotalDiskCapacity" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) ", + "hide": false, + "interval": "", + "legendFormat": "Active hypervisor", + "refId": "A" + } + ], + "thresholds": [ + { + "$$hashKey": "object:221", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available Capacity over time", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "vCPU Capacity", + "binary": { + "left": "Available vCPU", + "operator": "/", + "reducer": "sum", + "right": "Total vCPU" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM Capacity", + "binary": { + "left": "Available RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Disk Capacity", + "binary": { + "left": "Available Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Disk": true, + "Available RAM": true, + "Available vCPU": true, + "Total Disk": true, + "Total RAM": true, + "Total vCPU": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:149", + "format": "percentunit", + "label": "Capacity (%)", + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:150", + "format": "short", + "label": "Amount of active hypervisors", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 9, + "y": 59 + }, + "id": 306, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "vCPU Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "mbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 14, + "y": 59 + }, + "id": 307, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "RAM Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(242, 73, 92, 0)", + "value": null + } + ] + }, + "unit": "gbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 5, + "x": 19, + "y": 59 + }, + "id": 308, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.37", + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "instant": true, + "interval": "", + "legendFormat": "Available", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + }, + { + "exemplar": true, + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Predicted Capacity", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Disk Capacity", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%) in 2 Months", + "binary": { + "left": "Predicted Capacity", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Predicted Capacity": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "stat" + } + ], + "title": "HANA | Sapphire Rapids", + "type": "row" + } + ], + "refresh": "5m", + "schemaVersion": 27, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, availability_zone)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Availability Zone", + "multi": false, + "name": "availability_zone", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, availability_zone)", + "refId": "prometheus-openstack-availability_zone-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, compute_host)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Compute Host", + "multi": true, + "name": "compute_host", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, compute_host)", + "refId": "prometheus-openstack-compute_host-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "prometheus-openstack", + "definition": "label_values(cortex_vmware_host_capacity_available, enabled)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Enabled", + "multi": false, + "name": "enabled", + "options": [], + "query": { + "query": "label_values(cortex_vmware_host_capacity_available, enabled)", + "refId": "prometheus-openstack-enabled-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cortex VMware Compute Infrastructure - Overview", + "uid": "cortex-compute-vmware-overview", + "version": 2 +} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-overview.json.license b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json.license new file mode 100644 index 000000000..afcb6a5ce --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json.license @@ -0,0 +1,2 @@ +# Copyright SAP SE +# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file From 7c53eb97f794e247de61fa14a0ef883fcbe4e12a Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 4 Feb 2026 16:24:16 +0100 Subject: [PATCH 8/9] Renamed kvm dashboards --- .../dashboards/compute/{kvm.json => kvm-details.json} | 4 ++-- .../compute/{kvm.json.license => kvm-details.json.license} | 0 .../plutono/provisioning/dashboards/compute/kvm-overview.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename tools/plutono/provisioning/dashboards/compute/{kvm.json => kvm-details.json} (99%) rename tools/plutono/provisioning/dashboards/compute/{kvm.json.license => kvm-details.json.license} (100%) diff --git a/tools/plutono/provisioning/dashboards/compute/kvm.json b/tools/plutono/provisioning/dashboards/compute/kvm-details.json similarity index 99% rename from tools/plutono/provisioning/dashboards/compute/kvm.json rename to tools/plutono/provisioning/dashboards/compute/kvm-details.json index 74ab176fc..d04de1ed5 100644 --- a/tools/plutono/provisioning/dashboards/compute/kvm.json +++ b/tools/plutono/provisioning/dashboards/compute/kvm-details.json @@ -2423,7 +2423,7 @@ }, "timepicker": {}, "timezone": "", - "title": "Cortex KVM Infrastructure - Compute", - "uid": "cortex-compute-kvm", + "title": "Cortex KVM Compute Infrastructure - Details", + "uid": "cortex-compute-kvm-details", "version": 1 } \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/kvm.json.license b/tools/plutono/provisioning/dashboards/compute/kvm-details.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/compute/kvm.json.license rename to tools/plutono/provisioning/dashboards/compute/kvm-details.json.license diff --git a/tools/plutono/provisioning/dashboards/compute/kvm-overview.json b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json index aac1741b3..6be2acbd3 100644 --- a/tools/plutono/provisioning/dashboards/compute/kvm-overview.json +++ b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json @@ -2423,7 +2423,7 @@ }, "timepicker": {}, "timezone": "", - "title": "Cortex KVM Infrastructure - Compute", - "uid": "cortex-kvm-infrastructure-compute", + "title": "Cortex KVM Compute Infrastructure - Overview", + "uid": "cortex-compute-kvm-overview", "version": 1 } \ No newline at end of file From f6b91844b2e1392403d0f857e9c283ea55bea8e2 Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Fri, 6 Feb 2026 11:58:44 +0100 Subject: [PATCH 9/9] Update vmware dashboard --- .../dashboards/compute/vmware-details.json | 879 ++- .../dashboards/compute/vmware-overview.json | 6791 +++++++++++++---- 2 files changed, 5988 insertions(+), 1682 deletions(-) diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-details.json b/tools/plutono/provisioning/dashboards/compute/vmware-details.json index aea031f7b..29875c773 100644 --- a/tools/plutono/provisioning/dashboards/compute/vmware-details.json +++ b/tools/plutono/provisioning/dashboards/compute/vmware-details.json @@ -15,9 +15,22 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": 2, - "iteration": 1770209655997, - "links": [], + "id": 510, + "iteration": 1770373782040, + "links": [ + { + "asDropdown": false, + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": false, + "title": "Cortex Compute VMware - Overview", + "tooltip": "", + "type": "link", + "url": "/d/cortex-compute-vmware-overview" + } + ], "panels": [ { "datasource": "prometheus-openstack", @@ -128,20 +141,20 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)", "hide": false, "instant": true, "interval": "", @@ -150,18 +163,68 @@ }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n )\n[56d:4h], 4838400)", "hide": false, "instant": true, "interval": "", "legendFormat": "Predicted Capacity", "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned", + "refId": "E" } ], "timeFrom": null, "timeShift": null, "title": "vCPU Capacity", "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload", + "binary": { + "left": "Total Decommissioned", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Raw Available", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, { "id": "calculateField", "options": { @@ -181,9 +244,25 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", + "alias": "Predicted", "binary": { "left": "Predicted Capacity", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%)", + "binary": { + "left": "Predicted", "operator": "/", "reducer": "sum", "right": "Total" @@ -198,10 +277,32 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": true, + "Total Decommissioned": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available": 6, + "Available (%)": 8, + "Available Decommissioned": 4, + "Decommissioned Workload": 5, + "Predicted": 9, + "Predicted (%)": 10, + "Predicted Capacity": 2, + "Raw Available": 1, + "Time": 0, + "Total": 7, + "Total Decommissioned": 3 + }, + "renameByName": { + "Available": "", + "Available (%)": "", + "Predicted (%)": "Predicted (%) in 2 Months", + "Total": "Total" + } } } ], @@ -209,6 +310,7 @@ }, { "datasource": "prometheus-openstack", + "description": "", "fieldConfig": { "defaults": { "color": { @@ -299,7 +401,7 @@ "x": 8, "y": 0 }, - "id": 301, + "id": 307, "options": { "colorMode": "background", "graphMode": "none", @@ -315,20 +417,20 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)", "hide": false, "instant": true, "interval": "", @@ -337,18 +439,68 @@ }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n )\n[56d:4h], 4838400)", "hide": false, "instant": true, "interval": "", "legendFormat": "Predicted Capacity", "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned", + "refId": "E" } ], "timeFrom": null, "timeShift": null, "title": "RAM Capacity", "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload", + "binary": { + "left": "Total Decommissioned", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Raw Available", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, { "id": "calculateField", "options": { @@ -368,9 +520,25 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", + "alias": "Predicted", "binary": { "left": "Predicted Capacity", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%)", + "binary": { + "left": "Predicted", "operator": "/", "reducer": "sum", "right": "Total" @@ -385,10 +553,32 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": true, + "Total Decommissioned": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available": 6, + "Available (%)": 8, + "Available Decommissioned": 4, + "Decommissioned Workload": 5, + "Predicted": 9, + "Predicted (%)": 10, + "Predicted Capacity": 2, + "Raw Available": 1, + "Time": 0, + "Total": 7, + "Total Decommissioned": 3 + }, + "renameByName": { + "Available": "", + "Available (%)": "", + "Predicted (%)": "Predicted (%) in 2 Months", + "Total": "Total" + } } } ], @@ -396,6 +586,7 @@ }, { "datasource": "prometheus-openstack", + "description": "", "fieldConfig": { "defaults": { "color": { @@ -486,7 +677,7 @@ "x": 16, "y": 0 }, - "id": 302, + "id": 308, "options": { "colorMode": "background", "graphMode": "none", @@ -502,20 +693,20 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)", "hide": false, "instant": true, "interval": "", @@ -524,18 +715,68 @@ }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n )\n[56d:4h], 4838400)", "hide": false, "instant": true, "interval": "", "legendFormat": "Predicted Capacity", "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned", + "refId": "E" } ], "timeFrom": null, "timeShift": null, "title": "Disk Capacity", "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload", + "binary": { + "left": "Total Decommissioned", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Raw Available", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, { "id": "calculateField", "options": { @@ -555,9 +796,25 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", + "alias": "Predicted", "binary": { "left": "Predicted Capacity", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Predicted (%)", + "binary": { + "left": "Predicted", "operator": "/", "reducer": "sum", "right": "Total" @@ -572,10 +829,32 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": true, + "Total Decommissioned": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available": 6, + "Available (%)": 8, + "Available Decommissioned": 4, + "Decommissioned Workload": 5, + "Predicted": 9, + "Predicted (%)": 10, + "Predicted Capacity": 2, + "Raw Available": 1, + "Time": 0, + "Total": 7, + "Total Decommissioned": 3 + }, + "renameByName": { + "Available": "", + "Available (%)": "", + "Predicted (%)": "Predicted (%) in 2 Months", + "Total": "Total" + } } } ], @@ -587,9 +866,25 @@ "dashLength": 10, "dashes": false, "datasource": "prometheus-openstack", + "description": "", "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] }, "fill": 1, "fillGradient": 0, @@ -600,7 +895,7 @@ "y": 9 }, "hiddenSeries": false, - "id": 183, + "id": 309, "legend": { "avg": false, "current": false, @@ -617,54 +912,142 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:357", + "$$hashKey": "object:241", + "alias": "Total", + "color": "#1F60C4", + "stack": false + }, + { + "$$hashKey": "object:248", "alias": "Available", - "color": "#5794F2", "fill": 10 }, { - "$$hashKey": "object:641", - "alias": "Total", - "color": "#C0D8FF" + "$$hashKey": "object:318", + "alias": "Decommissioned Workload", + "color": "#FA6400", + "fill": 10 } ], "spaceLength": 10, - "stack": false, + "stack": true, "steppedLine": false, "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": false, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total", "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned", + "refId": "E" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "vCPUs over time", + "title": "vCPU Capacity", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload", + "binary": { + "left": "Total Decommissioned", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Raw Available", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": false, + "Total Decommissioned": true + }, + "indexByName": { + "Available": 4, + "Available Decommissioned": 3, + "Decommissioned Workload": 5, + "Raw Available": 1, + "Time": 0, + "Total": 6, + "Total Decommissioned": 2 + }, + "renameByName": { + "Available": "", + "Available (%)": "", + "Predicted (%)": "Predicted (%) in 2 Months", + "Total": "Total" + } + } + } + ], "type": "graph", "xaxis": { "buckets": null, @@ -675,7 +1058,7 @@ }, "yaxes": [ { - "$$hashKey": "object:97", + "$$hashKey": "object:134", "format": "short", "label": null, "logBase": 1, @@ -684,7 +1067,7 @@ "show": true }, { - "$$hashKey": "object:98", + "$$hashKey": "object:135", "format": "short", "label": null, "logBase": 1, @@ -704,11 +1087,25 @@ "dashLength": 10, "dashes": false, "datasource": "prometheus-openstack", + "description": "", "fieldConfig": { "defaults": { "unit": "mbytes" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] }, "fill": 1, "fillGradient": 0, @@ -719,7 +1116,7 @@ "y": 9 }, "hiddenSeries": false, - "id": 303, + "id": 310, "legend": { "avg": false, "current": false, @@ -736,54 +1133,142 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:357", + "$$hashKey": "object:241", + "alias": "Total", + "color": "#1F60C4", + "stack": false + }, + { + "$$hashKey": "object:248", "alias": "Available", - "color": "#5794F2", "fill": 10 }, { - "$$hashKey": "object:641", - "alias": "Total", - "color": "#C0D8FF" + "$$hashKey": "object:318", + "alias": "Decommissioned Workload", + "color": "#FA6400", + "fill": 10 } ], "spaceLength": 10, - "stack": false, + "stack": true, "steppedLine": false, "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": false, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total", "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned", + "refId": "E" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "RAM over time", + "title": "RAM Capacity", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload", + "binary": { + "left": "Total Decommissioned", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Raw Available", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": false, + "Total Decommissioned": true + }, + "indexByName": { + "Available": 4, + "Available Decommissioned": 3, + "Decommissioned Workload": 5, + "Raw Available": 1, + "Time": 0, + "Total": 6, + "Total Decommissioned": 2 + }, + "renameByName": { + "Available": "", + "Available (%)": "", + "Predicted (%)": "Predicted (%) in 2 Months", + "Total": "Total" + } + } + } + ], "type": "graph", "xaxis": { "buckets": null, @@ -794,7 +1279,7 @@ }, "yaxes": [ { - "$$hashKey": "object:97", + "$$hashKey": "object:134", "format": "mbytes", "label": null, "logBase": 1, @@ -803,7 +1288,7 @@ "show": true }, { - "$$hashKey": "object:98", + "$$hashKey": "object:135", "format": "short", "label": null, "logBase": 1, @@ -823,11 +1308,25 @@ "dashLength": 10, "dashes": false, "datasource": "prometheus-openstack", + "description": "", "fieldConfig": { "defaults": { "unit": "gbytes" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] }, "fill": 1, "fillGradient": 0, @@ -838,7 +1337,7 @@ "y": 9 }, "hiddenSeries": false, - "id": 304, + "id": 311, "legend": { "avg": false, "current": false, @@ -855,54 +1354,142 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:357", + "$$hashKey": "object:241", + "alias": "Total", + "color": "#1F60C4", + "stack": false + }, + { + "$$hashKey": "object:248", "alias": "Available", - "color": "#5794F2", "fill": 10 }, { - "$$hashKey": "object:641", - "alias": "Total", - "color": "#C0D8FF" + "$$hashKey": "object:318", + "alias": "Decommissioned Workload", + "color": "#FA6400", + "fill": 10 } ], "spaceLength": 10, - "stack": false, + "stack": true, "steppedLine": false, "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": false, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total", "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n decommissioned=\"true\",\n external_customer=~\"$external_customer\",\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned", + "refId": "E" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Disk over time", + "title": "Disk Capacity", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload", + "binary": { + "left": "Total Decommissioned", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available", + "binary": { + "left": "Raw Available", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": false, + "Total Decommissioned": true + }, + "indexByName": { + "Available": 4, + "Available Decommissioned": 3, + "Decommissioned Workload": 5, + "Raw Available": 1, + "Time": 0, + "Total": 6, + "Total Decommissioned": 2 + }, + "renameByName": { + "Available": "", + "Available (%)": "", + "Predicted (%)": "Predicted (%) in 2 Months", + "Total": "Total" + } + } + } + ], "type": "graph", "xaxis": { "buckets": null, @@ -913,7 +1500,7 @@ }, "yaxes": [ { - "$$hashKey": "object:97", + "$$hashKey": "object:134", "format": "gbytes", "label": null, "logBase": 1, @@ -922,7 +1509,7 @@ "show": true }, { - "$$hashKey": "object:98", + "$$hashKey": "object:135", "format": "short", "label": null, "logBase": 1, @@ -974,7 +1561,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", @@ -986,7 +1573,12 @@ }, { "$$hashKey": "object:728", - "alias": "/.*false.*/", + "alias": "/.*Enabled: false.*/", + "color": "#FADE2A" + }, + { + "$$hashKey": "object:1582", + "alias": "/.*Decommissioned: true.*/", "color": "#F2495C" } ], @@ -996,10 +1588,10 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n)\n", + "expr": "max by (compute_host, enabled, decommissioned) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n)\n", "instant": true, "interval": "", - "legendFormat": "{{compute_host}} (Enabled: {{enabled}})", + "legendFormat": "{{compute_host}} (Enabled: {{enabled}}) (Decommissioned: {{decommissioned}})", "queryType": "randomWalk", "refId": "A" } @@ -1070,7 +1662,7 @@ "y": 17 }, "hiddenSeries": false, - "id": 188, + "id": 305, "legend": { "avg": false, "current": false, @@ -1087,7 +1679,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", @@ -1099,7 +1691,12 @@ }, { "$$hashKey": "object:728", - "alias": "/.*false.*/", + "alias": "/.*Enabled: false.*/", + "color": "#FADE2A" + }, + { + "$$hashKey": "object:1582", + "alias": "/.*Decommissioned: true.*/", "color": "#F2495C" } ], @@ -1109,10 +1706,10 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n", + "expr": "max by (compute_host, enabled, decommissioned) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n)\n", "instant": true, "interval": "", - "legendFormat": "{{compute_host}} {{enabled}}", + "legendFormat": "{{compute_host}} (Enabled: {{enabled}}) (Decommissioned: {{decommissioned}})", "queryType": "randomWalk", "refId": "A" } @@ -1183,7 +1780,7 @@ "y": 17 }, "hiddenSeries": false, - "id": 189, + "id": 306, "legend": { "avg": false, "current": false, @@ -1200,7 +1797,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", @@ -1212,7 +1809,12 @@ }, { "$$hashKey": "object:728", - "alias": "/.*false.*/", + "alias": "/.*Enabled: false.*/", + "color": "#FADE2A" + }, + { + "$$hashKey": "object:1582", + "alias": "/.*Decommissioned: true.*/", "color": "#F2495C" } ], @@ -1222,10 +1824,10 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host, enabled) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n", + "expr": "max by (compute_host, enabled, decommissioned) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n)\n", "instant": true, "interval": "", - "legendFormat": "{{compute_host}} {{enabled}}", + "legendFormat": "{{compute_host}} (Enabled: {{enabled}}) (Decommissioned: {{decommissioned}})", "queryType": "randomWalk", "refId": "A" } @@ -1749,11 +2351,11 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "# Add all column names here\nmax by (compute_host, disabled_reason, workload_type, availability_zone, cpu_architecture, pinned_project_ids, enabled, external_customer, pinned_projects, decommissioned) (cortex_vmware_host_capacity_available{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "expr": "# Add all column names here\nmax by (compute_host, disabled_reason, workload_type, availability_zone, cpu_architecture, enabled, external_customer, decommissioned) (cortex_vmware_host_capacity_available{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", "format": "table", "instant": true, "interval": "", @@ -1763,7 +2365,7 @@ }, { "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", "format": "table", "hide": false, "instant": true, @@ -1773,7 +2375,7 @@ }, { "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "expr": "max by (compute_host) (cortex_vmware_host_capacity_available{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", "format": "table", "hide": false, "instant": true, @@ -1783,7 +2385,7 @@ }, { "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", "format": "table", "hide": false, "instant": true, @@ -1793,7 +2395,7 @@ }, { "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", "format": "table", "hide": false, "instant": true, @@ -1803,7 +2405,7 @@ }, { "exemplar": true, - "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"})", + "expr": "max by (compute_host) (cortex_vmware_host_capacity_total{resource=\"disk\", availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", "format": "table", "hide": false, "instant": true, @@ -1813,7 +2415,7 @@ }, { "exemplar": true, - "expr": "max by (compute_host) (cortex_sap_running_vms_per_host{availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", pinned_project_ids=~\"(^$|.*$project_id.*)\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", pinned_projects=~\"$pinned_projects\"}) ", + "expr": "max by (compute_host) (cortex_sap_running_vms_per_host{availability_zone=~\"$availability_zone\", compute_host=~\"$compute_host\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) ", "format": "table", "hide": false, "instant": true, @@ -1931,7 +2533,6 @@ "disabled_reason": 15, "enabled": 14, "external_customer": 18, - "pinned_projects": 17, "workload_type": 2 }, "renameByName": { @@ -1965,8 +2566,6 @@ "enabled": "Enabled", "enabled 1": "Enabled", "external_customer": "External Customer", - "pinned_project_ids": "Pinned Project Ids", - "pinned_projects": "Pinned Projects", "workload_type": "Workload Type", "workload_type 1": "Workload Type" } @@ -2014,7 +2613,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) * 100", + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n) * 100", "interval": "", "legendFormat": "{{compute_host}}", "queryType": "randomWalk", @@ -2086,7 +2685,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) * 100", + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n) * 100", "interval": "", "legendFormat": "{{compute_host}}", "queryType": "randomWalk", @@ -2158,7 +2757,7 @@ "targets": [ { "exemplar": true, - "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n pinned_project_ids=~\"(^$|.*$project_id.*)\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\"\n }\n) * 100", + "expr": "max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n) \n/\nmax by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n }\n) * 100", "interval": "", "legendFormat": "{{compute_host}}", "queryType": "randomWalk", @@ -2232,7 +2831,7 @@ { "allValue": null, "current": { - "selected": false, + "selected": true, "text": [ "All" ], @@ -2267,7 +2866,8 @@ { "allValue": null, "current": { - "selected": false, + "selected": true, + "tags": [], "text": [ "All" ], @@ -2302,7 +2902,7 @@ { "allValue": null, "current": { - "selected": false, + "selected": true, "text": [ "All" ], @@ -2337,7 +2937,7 @@ { "allValue": null, "current": { - "selected": false, + "selected": true, "text": "All", "value": "$__all" }, @@ -2368,7 +2968,7 @@ { "allValue": null, "current": { - "selected": false, + "selected": true, "text": "All", "value": "$__all" }, @@ -2426,59 +3026,6 @@ "tagsQuery": "", "type": "query", "useTags": false - }, - { - "allValue": null, - "current": { - "selected": true, - "text": "All", - "value": "$__all" - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_vmware_host_capacity_available, pinned_projects)", - "description": "Flag that indicates if a host has projects pinned to it.", - "error": null, - "hide": 0, - "includeAll": true, - "label": "Pinned Projects", - "multi": false, - "name": "pinned_projects", - "options": [], - "query": { - "query": "label_values(cortex_vmware_host_capacity_available, pinned_projects)", - "refId": "prometheus-openstack-pinned_projects-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": "", - "value": "" - }, - "description": "You can enter a project_id here, to see the capacity that is available for this project. If Pinned Projects is set to All, this includes hosts that are reserved for this project, but also all the capacity that is not reserved for any project. Example \"my-project-id|my-other-project-id\".", - "error": null, - "hide": 0, - "label": null, - "name": "Project ID", - "options": [ - { - "selected": true, - "text": "", - "value": "" - } - ], - "query": "", - "skipUrlSync": false, - "type": "textbox" } ] }, @@ -2488,7 +3035,7 @@ }, "timepicker": {}, "timezone": "", - "title": "Cortex VMware Compute Infrastructure - Details", + "title": "Cortex Compute VMware - Details", "uid": "cortex-compute-vmware-details", - "version": 2 + "version": 4 } \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-overview.json b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json index 9eabf89e0..c5fcbd331 100644 --- a/tools/plutono/provisioning/dashboards/compute/vmware-overview.json +++ b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json @@ -15,9 +15,22 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": 4, - "iteration": 1770216963725, - "links": [], + "id": 511, + "iteration": 1770371744210, + "links": [ + { + "asDropdown": false, + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": false, + "title": "Cortex Compute VMware - Details", + "tooltip": "", + "type": "link", + "url": "/d/cortex-compute-vmware-details" + } + ], "panels": [ { "datasource": null, @@ -26,17 +39,17 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 3, + "h": 3, + "w": 24, "x": 0, "y": 0 }, - "id": 332, + "id": 380, "options": { - "content": "# README\n\nHere you can see the \"general\" available capacity right now.\nThat means only capacity that is not reserved for external customer or certain projects, no decommissioned and only enabled hosts. \n\nFor more details see the prefiltered sections below.", + "content": "# INFO\n\nCurrently not 100% accurate. Waiting on latest cortex version to be deployed.", "mode": "markdown" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "queryType": "randomWalk", @@ -47,9 +60,65 @@ "timeShift": null, "type": "text" }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 365, + "panels": [ + { + "datasource": null, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 332, + "options": { + "content": "This dashboard displays capacity that is available for any project to use. `General available` means the capacity is not reserved for external customers or pinned to specific projects. (For those there is a separate section=)\n\nThe displayed capacity accounts for upcoming migrations from decommissioned hosts. The capacity is calculated as following:\n\n`Available capacity on non-decommissioned hosts - Workload on decommissioned hosts / Total capacity of non-decommissioned hosts`\n\nThis is done because when a host is decommissioned, its workload must migrate to the remaining general available hosts, consuming some of their free capacity.\n\n## Example\n\nIf you have 100 cores available on non-decommissioned hosts, but 20 cores of workload are running on decommissioned hosts that need migration, the dashboard shows 80 cores as actually available.\n\n## Filters\n\n**Availability Zone**: Filter by specific availability zones or view all zones.\n\n**Compute Host**: Filter by specific hosts or view aggregated data across all hosts.\n\n**Enabled**: Set to \"true\" to only count enabled hosts (excludes hosts in maintenance). Set to \"All\" to include both enabled and disabled hosts.\n\nUse the pre-filtered sections below to view capacity by workload type and CPU architecture.", + "mode": "markdown" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "type": "text" + } + ], + "title": "README", + "type": "row" + }, + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 367, + "panels": [], + "title": "Overview", + "type": "row" + }, { "datasource": "prometheus-openstack", - "description": "", "fieldConfig": { "defaults": { "color": { @@ -64,7 +133,7 @@ "value": null }, { - "color": "#EAB839", + "color": "yellow", "value": 0.2 }, { @@ -79,16 +148,16 @@ }, "gridPos": { "h": 8, - "w": 7, - "x": 3, - "y": 0 + "w": 8, + "x": 0, + "y": 5 }, - "id": 330, + "id": 355, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", - "orientation": "vertical", + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -99,68 +168,242 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available CPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Total CPU", + "legendFormat": "Unused Commitments", "refId": "B" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available RAM", + "legendFormat": "Total CPUs", "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Total RAM", + "legendFormat": "Total Decommissioned CPUs", "refId": "D" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available Disk", + "legendFormat": "Available Decommissioned CPUs", "refId": "E" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Total Disk", + "legendFormat": "Raw RAM ", "refId": "F" + }, + { + "exemplar": true, + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Unused RAM commitments", + "refId": "G" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" + }, + { + "exemplar": true, + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Disk", + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "title": "General Purpose (With Commitments)", + "title": "General Purpose (With commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available CPU (%)", + "alias": "Decommissioned Workload (Total Decom - Available Decom)", + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Unused Commitments" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "alias": "", + "binary": { + "left": "Raw Available CPUs - Unused Commitments", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload (Total Decom - Available Decom)" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available CPUs", "binary": { - "left": "Available CPU", + "left": "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)", "operator": "/", "reducer": "sum", - "right": "Total CPU" + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM", + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Unused RAM commitments" }, "mode": "binary", "reduce": { @@ -171,9 +414,8 @@ { "id": "calculateField", "options": { - "alias": "Available RAM (%)", "binary": { - "left": "Available RAM", + "left": "RAM", "operator": "/", "reducer": "sum", "right": "Total RAM" @@ -187,9 +429,39 @@ { "id": "calculateField", "options": { - "alias": "Available Disk (%)", "binary": { - "left": "Available Disk", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Disk", + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Disk", "operator": "/", "reducer": "sum", "right": "Total Disk" @@ -204,16 +476,55 @@ "id": "organize", "options": { "excludeByName": { - "Available CPU": true, + "Available CPUs": false, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, "Available Disk": true, - "Available RAM": true, + "CPUs": false, + "Decommissioned Workload (Total Decom - Available Decom)": true, + "Disk": true, + "RAM": true, + "RAM / Total RAM": false, + "Raw Available CPUs": true, + "Raw Available CPUs - Unused Commitments": true, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": true, + "Raw Available Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, "Time": true, - "Total CPU": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, "Total Disk": true, - "Total RAM": true - }, - "indexByName": {}, - "renameByName": {} + "Total RAM": true, + "Unused Commitments": true, + "Unused RAM commitments": true + }, + "indexByName": { + "Available CPUs": 10, + "Available Decommissioned CPUs": 5, + "Decommissioned Workload (Total Decom - Available Decom)": 6, + "Raw Available CPUs": 1, + "Raw Available CPUs - Unused Commitments": 7, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": 8, + "Raw RAM ": 9, + "Time": 0, + "Total CPUs": 3, + "Total Decommissioned CPUs": 4, + "Unused Commitments": 2 + }, + "renameByName": { + "Available CPUs": "Available CPUs", + "Available Disk / Total Disk": "Available Disk", + "Disk / Total Disk": "Available Disk", + "RAM / Total RAM": "Available RAM", + "Time": "", + "Total Decommissioned RAM - Available Decommissioned RAM": "" + } } } ], @@ -221,7 +532,6 @@ }, { "datasource": "prometheus-openstack", - "description": "", "fieldConfig": { "defaults": { "color": { @@ -236,7 +546,7 @@ "value": null }, { - "color": "#EAB839", + "color": "yellow", "value": 0.2 }, { @@ -251,16 +561,16 @@ }, "gridPos": { "h": 8, - "w": 7, - "x": 10, - "y": 0 + "w": 8, + "x": 8, + "y": 5 }, - "id": 335, + "id": 356, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", - "orientation": "vertical", + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -271,68 +581,128 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available CPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Total CPU", - "refId": "B" + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available RAM", - "refId": "C" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, "interval": "", "legendFormat": "Total RAM", - "refId": "D" + "refId": "H" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available Disk", - "refId": "E" + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", "legendFormat": "Total Disk", - "refId": "F" + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "title": "HANA | Cascade Lake (No Commitments)", + "title": "HANA | Cascade Lake (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available CPU (%)", "binary": { - "left": "Available CPU", - "operator": "/", + "left": "Total Decommissioned CPUs", + "operator": "-", "reducer": "sum", - "right": "Total CPU" + "right": "Available Decommissioned CPUs" }, "mode": "binary", "reduce": { @@ -343,12 +713,11 @@ { "id": "calculateField", "options": { - "alias": "Available RAM (%)", "binary": { - "left": "Available RAM", - "operator": "/", + "left": "Raw Available CPUs", + "operator": "-", "reducer": "sum", - "right": "Total RAM" + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" }, "mode": "binary", "reduce": { @@ -359,12 +728,11 @@ { "id": "calculateField", "options": { - "alias": "Available Disk (%)", "binary": { - "left": "Available Disk", + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total Disk" + "right": "Total CPUs" }, "mode": "binary", "reduce": { @@ -373,27 +741,132 @@ } }, { - "id": "organize", + "id": "calculateField", "options": { - "excludeByName": { - "Available CPU": true, - "Available Disk": true, - "Available RAM": true, - "Time": true, - "Total CPU": true, - "Total Disk": true, - "Total RAM": true + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" }, - "indexByName": {}, - "renameByName": {} + "mode": "binary", + "reduce": { + "reducer": "sum" + } } - } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true + }, + "indexByName": {}, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } + } + } ], "type": "stat" }, { "datasource": "prometheus-openstack", - "description": "", "fieldConfig": { "defaults": { "color": { @@ -408,7 +881,7 @@ "value": null }, { - "color": "#EAB839", + "color": "yellow", "value": 0.2 }, { @@ -423,16 +896,16 @@ }, "gridPos": { "h": 8, - "w": 7, - "x": 17, - "y": 0 + "w": 8, + "x": 16, + "y": 5 }, - "id": 334, + "id": 357, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", - "orientation": "vertical", + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -443,68 +916,188 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available CPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Total CPU", - "refId": "B" + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available RAM", - "refId": "C" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", "legendFormat": "Total RAM", - "refId": "D" + "refId": "H" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": true, "interval": "", - "legendFormat": "Available Disk", - "refId": "E" + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": true, "interval": "", "legendFormat": "Total Disk", - "refId": "F" + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "title": "HANA | Sapphire Rapids (No Commitments)", + "title": "HANA | Sapphire Rapids (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available CPU (%)", "binary": { - "left": "Available CPU", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total CPU" + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -515,9 +1108,8 @@ { "id": "calculateField", "options": { - "alias": "Available RAM (%)", "binary": { - "left": "Available RAM", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", "right": "Total RAM" @@ -531,9 +1123,38 @@ { "id": "calculateField", "options": { - "alias": "Available Disk (%)", "binary": { - "left": "Available Disk", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", "right": "Total Disk" @@ -548,91 +1169,1459 @@ "id": "organize", "options": { "excludeByName": { - "Available CPU": true, - "Available Disk": true, - "Available RAM": true, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, "Time": true, - "Total CPU": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, "Total Disk": true, "Total RAM": true }, "indexByName": {}, - "renameByName": {} + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } } } ], "type": "stat" }, { - "collapsed": true, - "datasource": null, + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hosts" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, "gridPos": { - "h": 1, - "w": 24, + "h": 8, + "w": 8, "x": 0, - "y": 8 + "y": 13 }, - "id": 319, - "panels": [ + "hiddenSeries": false, + "id": 358, + "interval": "30m", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.45", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 10 - }, - "id": 323, - "options": { - "content": "\n ", - "mode": "markdown" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Total General Purpose Capacity (with commitments, no cpu architecture distinction)", - "type": "text" + "$$hashKey": "object:803", + "alias": "Active hosts", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 }, { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "min": 0, - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": "" - } - ] - }, - "unit": "none" + "$$hashKey": "object:829", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:839", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:847", + "alias": "Available Disk", + "color": "#E0B400" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available CPUs", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Unused Commitments", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Unused RAM commitments", + "refId": "G" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" + }, + { + "exemplar": true, + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "O" + } + ], + "thresholds": [ + { + "$$hashKey": "object:235", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "General Purpose over time (with commitments)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload (Total Decom - Available Decom)", + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Unused Commitments" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "alias": "", + "binary": { + "left": "Raw Available CPUs - Unused Commitments", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload (Total Decom - Available Decom)" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available CPUs", + "binary": { + "left": "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)", + "operator": "/", + "reducer": "sum", + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM", + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Unused RAM commitments" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Disk", + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available CPUs": false, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Available Disk": true, + "CPUs": false, + "Decommissioned Workload (Total Decom - Available Decom)": true, + "Disk": true, + "RAM": true, + "RAM / Total RAM": false, + "Raw Available CPUs": true, + "Raw Available CPUs - Unused Commitments": true, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": true, + "Raw Available Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true, + "Unused Commitments": true, + "Unused RAM commitments": true + }, + "indexByName": { + "Available CPUs": 10, + "Available Decommissioned CPUs": 5, + "Decommissioned Workload (Total Decom - Available Decom)": 6, + "Raw Available CPUs": 1, + "Raw Available CPUs - Unused Commitments": 7, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": 8, + "Raw RAM ": 9, + "Time": 0, + "Total CPUs": 3, + "Total Decommissioned CPUs": 4, + "Unused Commitments": 2 + }, + "renameByName": { + "Available CPUs": "Available CPUs", + "Available Disk / Total Disk": "Available Disk", + "Disk / Total Disk": "Available Disk", + "RAM / Total RAM": "Available RAM", + "Time": "", + "Total Decommissioned RAM - Available Decommissioned RAM": "" + } + } + } + ], + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:183", + "format": "percentunit", + "label": "Capacity (%)", + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:184", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hosts" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 13 + }, + "hiddenSeries": false, + "id": 359, + "interval": "30m", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.45", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:1642", + "alias": "Active hosts", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + }, + { + "$$hashKey": "object:1740", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:1748", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:1756", + "alias": "Available Disk", + "color": "#F2CC0C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available CPUs", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) ", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "B" + } + ], + "thresholds": [ + { + "$$hashKey": "object:1636", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "HANA | Cascade Lake (No commitments)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", + "operator": "/", + "reducer": "sum", + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true + }, + "indexByName": {}, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } + } + } + ], + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:1032", + "format": "percentunit", + "label": null, + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:1033", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hosts" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 13 + }, + "hiddenSeries": false, + "id": 360, + "interval": "30m", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.45", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:2057", + "alias": "Active hosts", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + }, + { + "$$hashKey": "object:2201", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:2209", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:2219", + "alias": "Available Disk", + "color": "#F2CC0C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available CPUs", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) ", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "B" + } + ], + "thresholds": [ + { + "$$hashKey": "object:1847", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "HANA | Sapphire Rapids (No commitments)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", + "operator": "/", + "reducer": "sum", + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true + }, + "indexByName": {}, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } + } + } + ], + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:1121", + "format": "percentunit", + "label": null, + "logBase": 1, + "max": "1", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:1122", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 319, + "panels": [ + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", - "options": "Disabled" + "options": "Available" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": "" + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" }, "properties": [ { @@ -641,11 +2630,11 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "red", "value": null }, { - "color": "red", + "color": "green", "value": 1 } ] @@ -656,12 +2645,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 2, "x": 0, - "y": 11 + "y": 22 }, - "id": 326, + "id": 340, "options": { "colorMode": "value", "graphMode": "none", @@ -677,11 +2666,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "instant": false, "interval": "", "legendFormat": "Available", @@ -690,17 +2679,32 @@ }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "hide": false, "interval": "", "legendFormat": "Disabled", "refId": "B" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "F" } ], "timeFrom": null, "timeShift": null, - "title": "Amount Hypervisors", - "transparent": true, + "title": "Amount hosts", "type": "stat" }, { @@ -717,7 +2721,7 @@ { "matcher": { "id": "byName", - "options": "Active hypervisors" + "options": "Active hosts" }, "properties": [ { @@ -731,13 +2735,14 @@ "fill": 0, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 12, "w": 7, "x": 2, - "y": 11 + "y": 22 }, "hiddenSeries": false, - "id": 327, + "id": 368, + "interval": "30m", "legend": { "avg": false, "current": false, @@ -754,29 +2759,33 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:253", - "alias": "Active hypervisors", + "$$hashKey": "object:803", + "alias": "Active hosts", "color": "#8F3BB8", "dashes": true, "linewidth": 2, - "nullPointMode": "connected", "yaxis": 2 }, { - "$$hashKey": "object:367", - "alias": "vCPU Capacity", - "nullPointMode": "connected" + "$$hashKey": "object:829", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:839", + "alias": "Available RAM", + "color": "#3274D9" }, { - "$$hashKey": "object:374", - "alias": "RAM Capacity", - "nullPointMode": "connected" + "$$hashKey": "object:847", + "alias": "Available Disk", + "color": "#E0B400" } ], "spaceLength": 10, @@ -784,53 +2793,390 @@ "steppedLine": false, "targets": [ { - "exemplar": true, - "expr": "(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n -\n sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)\n) \n/ \nsum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "instant": false, - "interval": "", - "legendFormat": "vCPU Capacity", - "queryType": "randomWalk", - "refId": "A" + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available CPUs", + "queryType": "randomWalk", + "refId": "A" + }, + { + "exemplar": true, + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Unused Commitments", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Unused RAM commitments", + "refId": "G" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" + }, + { + "exemplar": true, + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "O" + } + ], + "thresholds": [ + { + "$$hashKey": "object:235", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available capacity over time (with commitments)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Decommissioned Workload (Total Decom - Available Decom)", + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Unused Commitments" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "alias": "", + "binary": { + "left": "Raw Available CPUs - Unused Commitments", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload (Total Decom - Available Decom)" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Available CPUs", + "binary": { + "left": "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)", + "operator": "/", + "reducer": "sum", + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM", + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Unused RAM commitments" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, { - "exemplar": true, - "expr": "(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n -\n sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)\n) \n/ \nsum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "RAM Capacity", - "refId": "B" + "id": "calculateField", + "options": { + "alias": "Disk", + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Active hypervisors", - "refId": "C" - } - ], - "thresholds": [ + "id": "calculateField", + "options": { + "binary": { + "left": "Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, { - "$$hashKey": "object:786", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" + "id": "organize", + "options": { + "excludeByName": { + "Available CPUs": false, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Available Disk": true, + "CPUs": false, + "Decommissioned Workload (Total Decom - Available Decom)": true, + "Disk": true, + "RAM": true, + "RAM / Total RAM": false, + "Raw Available CPUs": true, + "Raw Available CPUs - Unused Commitments": true, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": true, + "Raw Available Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true, + "Unused Commitments": true, + "Unused RAM commitments": true + }, + "indexByName": { + "Available CPUs": 10, + "Available Decommissioned CPUs": 5, + "Decommissioned Workload (Total Decom - Available Decom)": 6, + "Raw Available CPUs": 1, + "Raw Available CPUs - Unused Commitments": 7, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": 8, + "Raw RAM ": 9, + "Time": 0, + "Total CPUs": 3, + "Total Decommissioned CPUs": 4, + "Unused Commitments": 2 + }, + "renameByName": { + "Available CPUs": "Available CPUs", + "Available Disk / Total Disk": "Available Disk", + "Disk / Total Disk": "Available Disk", + "RAM / Total RAM": "Available RAM", + "Time": "", + "Total Decommissioned RAM - Available Decommissioned RAM": "" + } + } } ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "transparent": true, "type": "graph", "xaxis": { "buckets": null, @@ -841,7 +3187,7 @@ }, "yaxes": [ { - "$$hashKey": "object:348", + "$$hashKey": "object:183", "format": "percentunit", "label": "Capacity (%)", "logBase": 1, @@ -850,9 +3196,9 @@ "show": true }, { - "$$hashKey": "object:349", + "$$hashKey": "object:184", "format": "short", - "label": "Amount of active hypervisors", + "label": null, "logBase": 1, "max": null, "min": "0", @@ -876,7 +3222,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -887,13 +3233,9 @@ { "matcher": { "id": "byName", - "options": "Capacity (%)" + "options": "Available (%)" }, "properties": [ - { - "id": "unit", - "value": "percentunit" - }, { "id": "thresholds", "value": { @@ -904,7 +3246,7 @@ "value": null }, { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -913,18 +3255,22 @@ } ] } + }, + { + "id": "unit", + "value": "percentunit" } ] } ] }, "gridPos": { - "h": 11, - "w": 8, + "h": 12, + "w": 5, "x": 9, - "y": 11 + "y": 22 }, - "id": 310, + "id": 361, "options": { "colorMode": "background", "graphMode": "none", @@ -940,56 +3286,99 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "vCPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "", + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "", + "legendFormat": "Unused Commitments", "refId": "B" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Available (without commitments)", + "legendFormat": "Total CPUs", "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", + "legendFormat": "Total Decommissioned CPUs", "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" } ], - "title": "vCPUs", + "title": "CPU (With commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available", + "alias": "Decommissioned Workload (Total Decom - Available Decom)", + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { "binary": { - "left": "Available (without commitments)", + "left": "Raw Available CPUs", "operator": "-", "reducer": "sum", - "right": "vCPU" + "right": "Unused Commitments" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + }, + { + "id": "calculateField", + "options": { + "alias": "", + "binary": { + "left": "Raw Available CPUs - Unused Commitments", + "operator": "-", + "reducer": "sum", + "right": "Decommissioned Workload (Total Decom - Available Decom)" }, "mode": "binary", "reduce": { @@ -1000,12 +3389,12 @@ { "id": "calculateField", "options": { - "alias": "Capacity (%)", + "alias": "Available CPUs", "binary": { - "left": "Available", + "left": "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total CPUs" }, "mode": "binary", "reduce": { @@ -1016,26 +3405,78 @@ { "id": "organize", "options": { - "excludeByName": {}, + "excludeByName": { + "Available CPUs": false, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Available Disk": true, + "CPUs": false, + "Decommissioned Workload (Total Decom - Available Decom)": false, + "Disk": true, + "RAM": true, + "RAM / Total RAM": false, + "Raw Available CPUs": true, + "Raw Available CPUs - Unused Commitments": true, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": false, + "Raw Available Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true, + "Unused Commitments": false, + "Unused RAM commitments": true + }, "indexByName": { - "Available": 3, - "Available (without commitments)": 2, - "Capacity (%)": 5, + "Available CPUs": 9, + "Available Decommissioned CPUs": 6, + "Available Decommissioned Disk": 18, + "Available Decommissioned RAM": 14, + "Decommissioned Workload (Total Decom - Available Decom)": 3, + "Disk": 24, + "Disk / Total Disk": 25, + "RAM": 21, + "RAM / Total RAM": 22, + "Raw Available CPUs": 1, + "Raw Available CPUs - Unused Commitments": 7, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": 4, + "Raw Available Disk": 15, + "Raw RAM ": 10, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": 20, "Time": 0, - "Total": 4, - "vCPU": 1 + "Total CPUs": 8, + "Total Decommissioned CPUs": 5, + "Total Decommissioned Disk": 17, + "Total Decommissioned Disk - Available Decommissioned Disk": 23, + "Total Decommissioned RAM": 13, + "Total Decommissioned RAM - Available Decommissioned RAM": 19, + "Total Disk": 16, + "Total RAM": 12, + "Unused Commitments": 2, + "Unused RAM commitments": 11 }, "renameByName": { - "Available": "Available - Committed", - "Available (without commitments)": "Available", - "Capacity (%)": "", - "Total": "Total", - "vCPU": "Unused Commitments" + "Available CPUs": "Available (%)", + "Available Disk / Total Disk": "Available Disk", + "Decommissioned Workload (Total Decom - Available Decom)": "Decommissioned Workload", + "Disk / Total Disk": "Available Disk", + "RAM / Total RAM": "Available RAM", + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": "Available", + "Time": "", + "Total CPUs": "Total", + "Total Decommissioned RAM - Available Decommissioned RAM": "", + "Unused Commitments": "Unused Commitments" } } } ], - "transparent": true, "type": "stat" }, { @@ -1050,7 +3491,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -1061,7 +3502,7 @@ { "matcher": { "id": "byName", - "options": "Capacity (%)" + "options": "Available (%)" }, "properties": [ { @@ -1078,7 +3519,7 @@ "value": null }, { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -1093,12 +3534,12 @@ ] }, "gridPos": { - "h": 11, - "w": 7, - "x": 17, - "y": 11 + "h": 12, + "w": 5, + "x": 14, + "y": 22 }, - "id": 315, + "id": 362, "options": { "colorMode": "background", "graphMode": "none", @@ -1114,47 +3555,95 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "RAM", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "# Unused Commitments\nsum(\n clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Available (without commitments)", - "refId": "C" + "legendFormat": "Unused RAM commitments", + "refId": "G" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "D" + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" } ], - "title": "RAM", + "title": "RAM (With commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available", "binary": { - "left": "Available (without commitments)", + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "RAM", + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "-", "reducer": "sum", - "right": "RAM" + "right": "Unused RAM commitments" }, "mode": "binary", "reduce": { @@ -1165,12 +3654,11 @@ { "id": "calculateField", "options": { - "alias": "Capacity (%)", "binary": { - "left": "Available", + "left": "RAM", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total RAM" }, "mode": "binary", "reduce": { @@ -1181,27 +3669,68 @@ { "id": "organize", "options": { - "excludeByName": {}, + "excludeByName": { + "Available CPUs": false, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Available Disk": true, + "CPUs": false, + "Decommissioned Workload (Total Decom - Available Decom)": false, + "Disk": true, + "RAM": false, + "RAM / Total RAM": false, + "Raw Available CPUs": true, + "Raw Available CPUs - Unused Commitments": true, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": false, + "Raw Available Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": false, + "Total Disk": true, + "Total RAM": false, + "Unused Commitments": true, + "Unused RAM commitments": false + }, "indexByName": { - "Available": 3, - "Available (without commitments)": 2, - "Capacity (%)": 5, - "RAM": 1, + "Available Decommissioned Disk": 5, + "Available Decommissioned RAM": 4, + "RAM": 8, + "RAM / Total RAM": 10, + "Raw RAM ": 1, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": 7, "Time": 0, - "Total": 4 + "Total Decommissioned RAM": 3, + "Total Decommissioned RAM - Available Decommissioned RAM": 6, + "Total RAM": 9, + "Unused RAM commitments": 2 }, "renameByName": { - "Available": "Available - Committed", - "Available (without commitments)": "Available", - "Capacity (%)": "", - "RAM": "Unused Commitments", - "Total": "Total", - "vCPU": "Unused Commitments" + "Available CPUs": "Available CPUs (%)", + "Available Disk / Total Disk": "Available Disk", + "Decommissioned Workload (Total Decom - Available Decom)": "Decommissioned CPU Workload", + "Disk / Total Disk": "Available Disk", + "RAM": "Available", + "RAM / Total RAM": "Available (%)", + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": "Available CPUs", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": "", + "Time": "", + "Total CPUs": "Total CPUs", + "Total Decommissioned RAM": "", + "Total Decommissioned RAM - Available Decommissioned RAM": "Decommissioned Workload", + "Total RAM": "Total", + "Unused Commitments": "Unused CPU Commitments", + "Unused RAM commitments": "Unused commitments" } } } ], - "transparent": true, "type": "stat" }, { @@ -1211,216 +3740,240 @@ "color": { "mode": "thresholds" }, - "custom": { - "align": null, - "filterable": false - }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", + "color": "rgba(115, 191, 105, 0)", "value": null - }, - { - "color": "red", - "value": 80 } ] - } + }, + "unit": "gbytes" }, "overrides": [ { "matcher": { - "id": "byRegexp", - "options": ".*RAM" + "id": "byName", + "options": "Available (%)" }, "properties": [ { "id": "unit", - "value": "mbytes" - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": ".*CPU" - }, - "properties": [ + "value": "percentunit" + }, { - "id": "unit", - "value": "short" + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } } ] } ] }, "gridPos": { - "h": 8, - "w": 24, - "x": 0, + "h": 12, + "w": 5, + "x": 19, "y": 22 }, - "id": 317, + "id": 363, "options": { - "showHeader": true, - "sortBy": [] + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_committed_per_az{service=\"compute\",resource=\"cores\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "", - "refId": "Committed CPU" + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_usage_per_az{service=\"compute\",resource=\"cores\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", + "expr": "# No Disk commitments here\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "", - "refId": "Usage CPU" + "legendFormat": "Total Disk", + "refId": "L" }, { "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_usage_per_az{service=\"compute\",resource=\"ram\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "", - "refId": "Usage RAM" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" }, { "exemplar": true, - "expr": "max by (project_id, availability_zone) (\n limes_project_committed_per_az{service=\"compute\",resource=\"ram\",availability_zone=~\"$availability_zone\"}\n)", - "format": "table", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "", - "refId": "Committed RAM" + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + } + ], + "title": "DIsk (No commitments)", + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, { - "exemplar": true, - "expr": " clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"cores\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Unused CPU" + "id": "calculateField", + "options": { + "alias": "Disk", + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, { - "exemplar": true, - "expr": " clamp_min(\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )\n -\n on(project_id, availability_zone)\n max by (project_id, availability_zone) (\n limes_project_usage_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\"\n }\n ),\n 0\n )\n or\n max by (project_id, availability_zone) (\n limes_project_committed_per_az{\n service=\"compute\",\n resource=\"ram\",\n availability_zone=~\"$availability_zone\" # Will not be any for compute service\n }\n )", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "Unused RAM" - } - ], - "title": "Committed - Usage per project", - "transformations": [ - { - "id": "seriesToColumns", + "id": "calculateField", "options": { - "byField": "project_id" + "binary": { + "left": "Disk", + "operator": "/", + "reducer": "sum", + "right": "Total Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } } }, { "id": "organize", "options": { "excludeByName": { - "Time 1": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "availability_zone 2": true, - "availability_zone 3": true, - "availability_zone 4": true, - "availability_zone 5": true, - "availability_zone 6": true + "Available CPUs": false, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Available Disk": true, + "CPUs": false, + "Decommissioned Workload (Total Decom - Available Decom)": false, + "Disk": false, + "RAM": true, + "RAM / Total RAM": false, + "Raw Available CPUs": true, + "Raw Available CPUs - Unused Commitments": true, + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": false, + "Raw Available Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": false, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": false, + "Total RAM": true, + "Unused Commitments": false, + "Unused RAM commitments": true }, "indexByName": { - "Time 1": 1, - "Time 2": 9, - "Time 3": 11, - "Time 4": 13, - "Time 5": 15, - "Time 6": 17, - "Value #Committed CPU": 3, - "Value #Committed RAM": 6, - "Value #Unused CPU": 5, - "Value #Unused RAM": 8, - "Value #Usage CPU": 4, - "Value #Usage RAM": 7, - "availability_zone 1": 2, - "availability_zone 2": 10, - "availability_zone 3": 12, - "availability_zone 4": 14, - "availability_zone 5": 16, - "availability_zone 6": 18, - "project_id": 0 + "Available Decommissioned Disk": 3, + "Disk": 5, + "Disk / Total Disk": 7, + "Raw Available Disk": 1, + "Time": 0, + "Total Decommissioned Disk": 2, + "Total Decommissioned Disk - Available Decommissioned Disk": 4, + "Total Disk": 6 }, "renameByName": { - "Value #Committed CPU": "Committed CPU", - "Value #Committed RAM": "Committed RAM", - "Value #Unused CPU": "Unused CPU", - "Value #Unused RAM": "Unused RAM", - "Value #Usage CPU": "Used CPU", - "Value #Usage RAM": "Used RAM", - "availability_zone 1": "Availability Zone", - "availability_zone 5": "", - "project_id": "Project ID" + "Available CPUs": "Available CPUs (%)", + "Available Disk / Total Disk": "Available Disk", + "Decommissioned Workload (Total Decom - Available Decom)": "Decommissioned CPU Workload", + "Disk": "Available", + "Disk / Total Disk": "Available (%)", + "RAM / Total RAM": "Available RAM", + "Raw Available CPUs - Unused Commitments - Decommissioned Workload (Total Decom - Available Decom)": "Available CPUs", + "Time": "", + "Total CPUs": "Total CPUs", + "Total Decommissioned Disk": "", + "Total Decommissioned Disk - Available Decommissioned Disk": "Decommissioned Workload", + "Total Decommissioned RAM - Available Decommissioned RAM": "", + "Total Disk": "Total", + "Unused Commitments": "Unused CPU Commitments" } } } ], - "type": "table" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 30 - }, - "id": 324, - "options": { - "content": "", - "mode": "html" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Cascade Lake (without commitments)", - "type": "text" - }, + "type": "stat" + } + ], + "title": "General Purpose (With commitments)", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 382, + "panels": [ { "datasource": "prometheus-openstack", "fieldConfig": { @@ -1435,12 +3988,12 @@ "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": null }, { - "color": "green", - "value": "" + "color": "red", + "value": 1 } ] }, @@ -1450,7 +4003,7 @@ { "matcher": { "id": "byName", - "options": "Disabled" + "options": "Available" }, "properties": [ { @@ -1459,11 +4012,39 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "red", "value": null }, + { + "color": "#EAB839", + "value": "" + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { "color": "red", + "value": null + }, + { + "color": "green", "value": 1 } ] @@ -1474,12 +4055,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 2, "x": 0, - "y": 31 + "y": 23 }, - "id": 291, + "id": 385, "options": { "colorMode": "value", "graphMode": "none", @@ -1495,11 +4076,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "instant": false, "interval": "", "legendFormat": "Available", @@ -1508,17 +4089,32 @@ }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "hide": false, "interval": "", "legendFormat": "Disabled", "refId": "B" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "F" } ], "timeFrom": null, "timeShift": null, - "title": "Amount Hypervisors", - "transparent": true, + "title": "Hosts", "type": "stat" }, { @@ -1535,7 +4131,7 @@ { "matcher": { "id": "byName", - "options": "Active hypervisor" + "options": "Active hosts" }, "properties": [ { @@ -1549,13 +4145,14 @@ "fill": 0, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 12, "w": 7, "x": 2, - "y": 31 + "y": 23 }, "hiddenSeries": false, - "id": 292, + "id": 387, + "interval": "30m", "legend": { "avg": false, "current": false, @@ -1572,18 +4169,33 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:709", - "alias": "Active hypervisor", + "$$hashKey": "object:1642", + "alias": "Active hosts", "color": "#8F3BB8", "dashes": true, "linewidth": 2, "yaxis": 2 + }, + { + "$$hashKey": "object:1740", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:1748", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:1756", + "alias": "Available Disk", + "color": "#F2CC0C" } ], "spaceLength": 10, @@ -1592,91 +4204,241 @@ "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available vCPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total RAM", + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Disk", + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" + "legendFormat": "Available Decommissioned Disk", + "refId": "N" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) ", "hide": false, "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" + "legendFormat": "Active hosts", + "refId": "B" + } + ], + "thresholds": [ + { + "$$hashKey": "object:1636", + "colorMode": "critical", + "fill": true, + "line": true, + "op": "lt", + "value": 0.2, + "yaxis": "left" + } + ], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Available capacity over time (No commitments)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", + "operator": "/", + "reducer": "sum", + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", + "operator": "/", + "reducer": "sum", + "right": "Total RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } }, - { - "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Active hypervisor", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:221", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ { "id": "calculateField", "options": { - "alias": "vCPU Capacity", "binary": { - "left": "Available vCPU", - "operator": "/", + "left": "Total Decommissioned Disk", + "operator": "-", "reducer": "sum", - "right": "Total vCPU" + "right": "Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -1687,12 +4449,11 @@ { "id": "calculateField", "options": { - "alias": "RAM Capacity", "binary": { - "left": "Available RAM", - "operator": "/", + "left": "Raw Available Disk", + "operator": "-", "reducer": "sum", - "right": "Total RAM" + "right": "Total Decommissioned Disk - Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -1703,9 +4464,8 @@ { "id": "calculateField", "options": { - "alias": "Disk Capacity", "binary": { - "left": "Available Disk", + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", "right": "Total Disk" @@ -1720,19 +4480,35 @@ "id": "organize", "options": { "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, "Total Disk": true, - "Total RAM": true, - "Total vCPU": true + "Total RAM": true }, "indexByName": {}, - "renameByName": {} + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } } } ], - "transparent": true, "type": "graph", "xaxis": { "buckets": null, @@ -1743,18 +4519,18 @@ }, "yaxes": [ { - "$$hashKey": "object:149", + "$$hashKey": "object:1032", "format": "percentunit", - "label": "Capacity (%)", + "label": null, "logBase": 1, "max": "1", "min": "0", "show": true }, { - "$$hashKey": "object:150", + "$$hashKey": "object:1033", "format": "short", - "label": "Amount of active hypervisors", + "label": null, "logBase": 1, "max": null, "min": "0", @@ -1778,7 +4554,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -1806,39 +4582,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -1853,12 +4597,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 9, - "y": 31 + "y": 23 }, - "id": 293, + "id": 388, "options": { "colorMode": "background", "graphMode": "none", @@ -1874,49 +4618,71 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" } ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", + "title": "CPU (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" }, "mode": "binary", "reduce": { @@ -1927,12 +4693,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total CPUs" }, "mode": "binary", "reduce": { @@ -1944,14 +4709,47 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned CPUs": 3, + "Raw Available CPUs": 1, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": 5, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": 7, + "Time": 0, + "Total CPUs": 6, + "Total Decommissioned CPUs": 2, + "Total Decommissioned CPUs - Available Decommissioned CPUs": 4 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": "Available", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available (%)", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total CPUs": "Total", + "Total Decommissioned CPUs - Available Decommissioned CPUs": "Decommissioned Workload" + } } } ], - "transparent": true, "type": "stat" }, { @@ -1966,7 +4764,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -1994,39 +4792,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -2041,12 +4807,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 14, - "y": 31 + "y": 23 }, - "id": 294, + "id": 389, "options": { "colorMode": "background", "graphMode": "none", @@ -2062,49 +4828,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total RAM", + "refId": "H" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" } ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", + "title": "RAM (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -2115,12 +4902,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total RAM" }, "mode": "binary", "reduce": { @@ -2132,14 +4918,47 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": false, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": false, + "Total Disk": true, + "Total RAM": false }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned RAM": 3, + "Raw RAM ": 1, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": 5, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": 7, + "Time": 0, + "Total Decommissioned RAM": 2, + "Total Decommissioned RAM - Available Decommissioned RAM": 4, + "Total RAM": 6 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": "Available", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available (%)", + "Total Decommissioned RAM - Available Decommissioned RAM": "Decommissioned Workload", + "Total RAM": "Total" + } } } ], - "transparent": true, "type": "stat" }, { @@ -2154,7 +4973,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -2182,39 +5001,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -2229,12 +5016,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 19, - "y": 31 + "y": 23 }, - "id": 295, + "id": 390, "options": { "colorMode": "background", "graphMode": "none", @@ -2250,49 +5037,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total Disk", + "refId": "L" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", + "title": "Disk (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned Disk - Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -2303,12 +5111,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total Disk" }, "mode": "binary", "reduce": { @@ -2320,45 +5127,65 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": false, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": false, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": false, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned Disk": 3, + "Raw Available Disk": 1, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": 5, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": 7, + "Time": 0, + "Total Decommissioned Disk": 2, + "Total Decommissioned Disk - Available Decommissioned Disk": 4, + "Total Disk": 6 + }, + "renameByName": { + "Available Decommissioned Disk": "", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": "Available", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available (%)", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total Decommissioned Disk - Available Decommissioned Disk": "Decommissioned Workload", + "Total Disk": "Total" + } } } ], - "transparent": true, "type": "stat" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 322, - "options": { - "content": "", - "mode": "html" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Sapphire Rapids (without commitments)", - "type": "text" - }, + } + ], + "title": "General Purpose | Cascade Lake (No commitments)", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 384, + "panels": [ { "datasource": "prometheus-openstack", "fieldConfig": { @@ -2373,12 +5200,12 @@ "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": null }, { - "color": "green", - "value": "" + "color": "red", + "value": 1 } ] }, @@ -2388,7 +5215,7 @@ { "matcher": { "id": "byName", - "options": "Disabled" + "options": "Available" }, "properties": [ { @@ -2397,11 +5224,39 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "red", "value": null }, + { + "color": "#EAB839", + "value": "" + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { "color": "red", + "value": null + }, + { + "color": "green", "value": 1 } ] @@ -2412,12 +5267,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 2, "x": 0, - "y": 43 + "y": 24 }, - "id": 246, + "id": 386, "options": { "colorMode": "value", "graphMode": "none", @@ -2433,11 +5288,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "instant": false, "interval": "", "legendFormat": "Available", @@ -2446,17 +5301,32 @@ }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "hide": false, "interval": "", "legendFormat": "Disabled", "refId": "B" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "F" } ], "timeFrom": null, "timeShift": null, - "title": "Amount Hypervisors", - "transparent": true, + "title": "Hosts", "type": "stat" }, { @@ -2473,7 +5343,7 @@ { "matcher": { "id": "byName", - "options": "Active hypervisor" + "options": "Active hosts" }, "properties": [ { @@ -2487,13 +5357,14 @@ "fill": 0, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 12, "w": 7, "x": 2, - "y": 43 + "y": 24 }, "hiddenSeries": false, - "id": 243, + "id": 391, + "interval": "30m", "legend": { "avg": false, "current": false, @@ -2510,18 +5381,33 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:527", - "alias": "Active hypervisor", + "$$hashKey": "object:2057", + "alias": "Active hosts", "color": "#8F3BB8", "dashes": true, "linewidth": 2, "yaxis": 2 + }, + { + "$$hashKey": "object:2201", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:2209", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:2219", + "alias": "Available Disk", + "color": "#F2CC0C" } ], "spaceLength": 10, @@ -2530,64 +5416,125 @@ "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available vCPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" + "refId": "L" }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Active hypervisor", - "refId": "A" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) ", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "B" } ], "thresholds": [ { - "$$hashKey": "object:221", + "$$hashKey": "object:1847", "colorMode": "critical", "fill": true, "line": true, @@ -2599,7 +5546,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Available Capacity over time", + "title": "Available capacity over time (No commitments)", "tooltip": { "shared": true, "sort": 0, @@ -2609,12 +5556,71 @@ { "id": "calculateField", "options": { - "alias": "vCPU Capacity", "binary": { - "left": "Available vCPU", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total vCPU" + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -2625,9 +5631,8 @@ { "id": "calculateField", "options": { - "alias": "RAM Capacity", "binary": { - "left": "Available RAM", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", "right": "Total RAM" @@ -2641,9 +5646,38 @@ { "id": "calculateField", "options": { - "alias": "Disk Capacity", "binary": { - "left": "Available Disk", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", "right": "Total Disk" @@ -2658,19 +5692,35 @@ "id": "organize", "options": { "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, "Total Disk": true, - "Total RAM": true, - "Total vCPU": true + "Total RAM": true }, "indexByName": {}, - "renameByName": {} + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } } } ], - "transparent": true, "type": "graph", "xaxis": { "buckets": null, @@ -2681,18 +5731,18 @@ }, "yaxes": [ { - "$$hashKey": "object:149", + "$$hashKey": "object:1121", "format": "percentunit", - "label": "Capacity (%)", + "label": null, "logBase": 1, "max": "1", "min": "0", "show": true }, { - "$$hashKey": "object:150", + "$$hashKey": "object:1122", "format": "short", - "label": "Amount of active hypervisors", + "label": null, "logBase": 1, "max": null, "min": "0", @@ -2710,56 +5760,24 @@ "defaults": { "color": { "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(242, 73, 92, 0)", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } + "color": "rgba(115, 191, 105, 0)", + "value": null } ] }, + "unit": "short" + }, + "overrides": [ { "matcher": { "id": "byName", - "options": "Predicted (%) in 2 Months" + "options": "Available (%)" }, "properties": [ { @@ -2776,7 +5794,7 @@ "value": null }, { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -2791,12 +5809,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 9, - "y": 43 + "y": 24 }, - "id": 288, + "id": 392, "options": { "colorMode": "background", "graphMode": "none", @@ -2812,49 +5830,71 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" } ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", + "title": "CPU (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" }, "mode": "binary", "reduce": { @@ -2865,12 +5905,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total CPUs" }, "mode": "binary", "reduce": { @@ -2882,14 +5921,47 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned CPUs": 3, + "Raw Available CPUs": 1, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": 5, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": 7, + "Time": 0, + "Total CPUs": 6, + "Total Decommissioned CPUs": 2, + "Total Decommissioned CPUs - Available Decommissioned CPUs": 4 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": "Available", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available (%)", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total CPUs": "Total", + "Total Decommissioned CPUs - Available Decommissioned CPUs": "Decommissioned Workload" + } } } ], - "transparent": true, "type": "stat" }, { @@ -2904,12 +5976,12 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] }, - "unit": "short" + "unit": "mbytes" }, "overrides": [ { @@ -2932,39 +6004,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -2979,12 +6019,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 14, - "y": 43 + "y": 24 }, - "id": 328, + "id": 393, "options": { "colorMode": "background", "graphMode": "none", @@ -3000,49 +6040,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total RAM", + "refId": "H" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" } ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", + "title": "RAM (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -3053,12 +6114,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total RAM" }, "mode": "binary", "reduce": { @@ -3070,14 +6130,47 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": false, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": false, + "Total Disk": true, + "Total RAM": false }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned RAM": 3, + "Raw RAM ": 1, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": 5, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": 7, + "Time": 0, + "Total Decommissioned RAM": 2, + "Total Decommissioned RAM - Available Decommissioned RAM": 4, + "Total RAM": 6 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": "Available", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available (%)", + "Total Decommissioned RAM - Available Decommissioned RAM": "Decommissioned Workload", + "Total RAM": "Total" + } } } ], - "transparent": true, "type": "stat" }, { @@ -3092,7 +6185,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -3120,39 +6213,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -3167,12 +6228,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 19, - "y": 43 + "y": 24 }, - "id": 290, + "id": 394, "options": { "colorMode": "background", "graphMode": "none", @@ -3188,49 +6249,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total Disk", + "refId": "L" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", + "title": "Disk (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned Disk - Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -3241,12 +6323,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total Disk" }, "mode": "binary", "reduce": { @@ -3258,18 +6339,52 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": false, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": false, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": false, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned Disk": 3, + "Raw Available Disk": 1, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": 5, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": 7, + "Time": 0, + "Total Decommissioned Disk": 2, + "Total Decommissioned Disk - Available Decommissioned Disk": 4, + "Total Disk": 6 + }, + "renameByName": { + "Available Decommissioned Disk": "", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": "Available", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available (%)", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total Decommissioned Disk - Available Decommissioned Disk": "Decommissioned Workload", + "Total Disk": "Total" + } } } ], - "transparent": true, "type": "stat" } ], - "title": "General Purpose", + "title": "General Purpose | Sapphire Rapids (No commitments)", "type": "row" }, { @@ -3279,7 +6394,7 @@ "h": 1, "w": 24, "x": 0, - "y": 9 + "y": 24 }, "id": 226, "panels": [ @@ -3297,12 +6412,12 @@ "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": null }, { - "color": "green", - "value": "" + "color": "red", + "value": 1 } ] }, @@ -3312,7 +6427,7 @@ { "matcher": { "id": "byName", - "options": "Disabled" + "options": "Available" }, "properties": [ { @@ -3321,11 +6436,39 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "red", "value": null }, + { + "color": "#EAB839", + "value": "" + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { "color": "red", + "value": null + }, + { + "color": "green", "value": 1 } ] @@ -3336,15 +6479,15 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 2, "x": 0, - "y": 10 + "y": 25 }, - "id": 299, + "id": 369, "options": { "colorMode": "value", - "graphMode": "area", + "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { @@ -3357,11 +6500,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "instant": false, "interval": "", "legendFormat": "Available", @@ -3370,16 +6513,32 @@ }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "hide": false, "interval": "", "legendFormat": "Disabled", "refId": "B" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "F" } ], "timeFrom": null, "timeShift": null, - "title": "Amount Hypervisors", + "title": "Hosts", "type": "stat" }, { @@ -3392,18 +6551,32 @@ "defaults": { "unit": "percentunit" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Active hosts" + }, + "properties": [ + { + "id": "unit", + "value": "short" + } + ] + } + ] }, "fill": 0, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 12, "w": 7, "x": 2, - "y": 10 + "y": 25 }, "hiddenSeries": false, - "id": 300, + "id": 373, + "interval": "30m", "legend": { "avg": false, "current": false, @@ -3420,67 +6593,160 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", - "seriesOverrides": [], + "seriesOverrides": [ + { + "$$hashKey": "object:1642", + "alias": "Active hosts", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + }, + { + "$$hashKey": "object:1740", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:1748", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:1756", + "alias": "Available Disk", + "color": "#F2CC0C" + } + ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available vCPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" + "refId": "L" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) ", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "B" } ], "thresholds": [ { - "$$hashKey": "object:221", + "$$hashKey": "object:1636", "colorMode": "critical", "fill": true, "line": true, @@ -3492,7 +6758,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Available Capacity over time", + "title": "Available capacity over time (No commitments)", "tooltip": { "shared": true, "sort": 0, @@ -3502,12 +6768,71 @@ { "id": "calculateField", "options": { - "alias": "vCPU Capacity", "binary": { - "left": "Available vCPU", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total vCPU" + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -3518,9 +6843,8 @@ { "id": "calculateField", "options": { - "alias": "RAM Capacity", "binary": { - "left": "Available RAM", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", "right": "Total RAM" @@ -3534,9 +6858,38 @@ { "id": "calculateField", "options": { - "alias": "Disk Capacity", "binary": { - "left": "Available Disk", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", "right": "Total Disk" @@ -3551,15 +6904,32 @@ "id": "organize", "options": { "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, "Total Disk": true, - "Total RAM": true, - "Total vCPU": true + "Total RAM": true }, "indexByName": {}, - "renameByName": {} + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } } } ], @@ -3573,21 +6943,21 @@ }, "yaxes": [ { - "$$hashKey": "object:149", + "$$hashKey": "object:1032", "format": "percentunit", - "label": "Capacity (%)", + "label": null, "logBase": 1, "max": "1", "min": "0", "show": true }, { - "$$hashKey": "object:150", + "$$hashKey": "object:1033", "format": "short", - "label": "Amount of active hypervisors", + "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true } ], @@ -3608,7 +6978,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -3636,39 +7006,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -3683,12 +7021,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 9, - "y": 10 + "y": 25 }, - "id": 301, + "id": 370, "options": { "colorMode": "background", "graphMode": "none", @@ -3704,49 +7042,71 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" } ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", + "title": "CPU (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" }, "mode": "binary", "reduce": { @@ -3757,12 +7117,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total CPUs" }, "mode": "binary", "reduce": { @@ -3774,10 +7133,44 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned CPUs": 3, + "Raw Available CPUs": 1, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": 5, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": 7, + "Time": 0, + "Total CPUs": 6, + "Total Decommissioned CPUs": 2, + "Total Decommissioned CPUs - Available Decommissioned CPUs": 4 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": "Available", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available (%)", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total CPUs": "Total", + "Total Decommissioned CPUs - Available Decommissioned CPUs": "Decommissioned Workload" + } } } ], @@ -3795,7 +7188,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -3823,39 +7216,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -3870,12 +7231,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 14, - "y": 10 + "y": 25 }, - "id": 302, + "id": 371, "options": { "colorMode": "background", "graphMode": "none", @@ -3891,49 +7252,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Raw RAM ", + "refId": "F" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Total RAM", + "refId": "H" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total Decommissioned RAM", + "refId": "I" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Available Decommissioned RAM", + "refId": "J" } ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", + "title": "RAM (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -3944,12 +7326,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total RAM" }, "mode": "binary", "reduce": { @@ -3961,10 +7342,44 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": false, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": false, + "Total Disk": true, + "Total RAM": false }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned RAM": 3, + "Raw RAM ": 1, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": 5, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": 7, + "Time": 0, + "Total Decommissioned RAM": 2, + "Total Decommissioned RAM - Available Decommissioned RAM": 4, + "Total RAM": 6 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": "Available", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available (%)", + "Total Decommissioned RAM - Available Decommissioned RAM": "Decommissioned Workload", + "Total RAM": "Total" + } } } ], @@ -3982,7 +7397,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -4010,39 +7425,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -4057,12 +7440,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 19, - "y": 10 + "y": 25 }, - "id": 303, + "id": 372, "options": { "colorMode": "background", "graphMode": "none", @@ -4078,49 +7461,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total Disk", + "refId": "L" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", + "title": "Disk (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned Disk - Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -4131,12 +7535,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total Disk" }, "mode": "binary", "reduce": { @@ -4148,17 +7551,52 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": false, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": false, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": false, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned Disk": 3, + "Raw Available Disk": 1, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": 5, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": 7, + "Time": 0, + "Total Decommissioned Disk": 2, + "Total Decommissioned Disk - Available Decommissioned Disk": 4, + "Total Disk": 6 + }, + "renameByName": { + "Available Decommissioned Disk": "", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": "Available", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available (%)", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total Decommissioned Disk - Available Decommissioned Disk": "Decommissioned Workload", + "Total Disk": "Total" + } } } ], "type": "stat" } ], - "title": "HANA | Cascade Lake", + "title": "HANA | Cascade Lake (No commitments)", "type": "row" }, { @@ -4168,7 +7606,7 @@ "h": 1, "w": 24, "x": 0, - "y": 10 + "y": 25 }, "id": 228, "panels": [ @@ -4186,12 +7624,12 @@ "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": null }, { - "color": "green", - "value": "" + "color": "red", + "value": 1 } ] }, @@ -4201,7 +7639,7 @@ { "matcher": { "id": "byName", - "options": "Disabled" + "options": "Available" }, "properties": [ { @@ -4210,11 +7648,39 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "red", "value": null }, + { + "color": "#EAB839", + "value": "" + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { "color": "red", + "value": null + }, + { + "color": "green", "value": 1 } ] @@ -4225,15 +7691,15 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 2, "x": 0, - "y": 59 + "y": 26 }, - "id": 304, + "id": 374, "options": { "colorMode": "value", - "graphMode": "area", + "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { @@ -4246,11 +7712,11 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "instant": false, "interval": "", "legendFormat": "Available", @@ -4259,16 +7725,32 @@ }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"false\"\n }\n )\n) or on() vector(0)", + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", "hide": false, "interval": "", "legendFormat": "Disabled", "refId": "B" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Decommissioned", + "refId": "D" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "Total", + "refId": "F" } ], "timeFrom": null, "timeShift": null, - "title": "Amount Hypervisors", + "title": "Hosts", "type": "stat" }, { @@ -4285,7 +7767,7 @@ { "matcher": { "id": "byName", - "options": "Active hypervisor" + "options": "Active hosts" }, "properties": [ { @@ -4299,13 +7781,14 @@ "fill": 0, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 12, "w": 7, "x": 2, - "y": 59 + "y": 26 }, "hiddenSeries": false, - "id": 305, + "id": 378, + "interval": "30m", "legend": { "avg": false, "current": false, @@ -4322,18 +7805,33 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:299", - "alias": "Active hypervisor", + "$$hashKey": "object:2057", + "alias": "Active hosts", "color": "#8F3BB8", "dashes": true, "linewidth": 2, "yaxis": 2 + }, + { + "$$hashKey": "object:2201", + "alias": "Available CPUs", + "color": "#56A64B" + }, + { + "$$hashKey": "object:2209", + "alias": "Available RAM", + "color": "#3274D9" + }, + { + "$$hashKey": "object:2219", + "alias": "Available Disk", + "color": "#F2CC0C" } ], "spaceLength": 10, @@ -4342,64 +7840,125 @@ "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available vCPU", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", - "refId": "VCPUAvailableCapacity" + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available RAM", - "refId": "RAMAvailableCapacity" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Available Disk", - "refId": "DiskAvailableCapacity" + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Total vCPU", - "refId": "TotalVCPUCapacity" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total RAM", - "refId": "TotalRamCapacity" + "refId": "H" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, + "instant": false, "interval": "", "legendFormat": "Total Disk", - "refId": "TotalDiskCapacity" + "refId": "L" }, { "exemplar": true, - "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per hypervisor (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n) ", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, + "instant": false, "interval": "", - "legendFormat": "Active hypervisor", - "refId": "A" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" + }, + { + "exemplar": true, + "expr": "count(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n # Use any resource here, otherwise the amount would have to be divided by 3, since the metric is exported 3 times per host (cpu, ram, disk)\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) ", + "hide": false, + "interval": "", + "legendFormat": "Active hosts", + "refId": "B" } ], "thresholds": [ { - "$$hashKey": "object:221", + "$$hashKey": "object:1847", "colorMode": "critical", "fill": true, "line": true, @@ -4411,7 +7970,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Available Capacity over time", + "title": "Available capacity over time (No commitments)", "tooltip": { "shared": true, "sort": 0, @@ -4421,12 +7980,86 @@ { "id": "calculateField", "options": { - "alias": "vCPU Capacity", "binary": { - "left": "Available vCPU", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", + "operator": "/", + "reducer": "sum", + "right": "Total CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned RAM - Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", - "right": "Total vCPU" + "right": "Total RAM" }, "mode": "binary", "reduce": { @@ -4437,12 +8070,26 @@ { "id": "calculateField", "options": { - "alias": "RAM Capacity", "binary": { - "left": "Available RAM", - "operator": "/", + "left": "Total Decommissioned Disk", + "operator": "-", "reducer": "sum", - "right": "Total RAM" + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", + "reducer": "sum", + "right": "Total Decommissioned Disk - Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -4453,9 +8100,8 @@ { "id": "calculateField", "options": { - "alias": "Disk Capacity", "binary": { - "left": "Available Disk", + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", "right": "Total Disk" @@ -4470,15 +8116,32 @@ "id": "organize", "options": { "excludeByName": { - "Available Disk": true, - "Available RAM": true, - "Available vCPU": true, + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": false, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, "Total Disk": true, - "Total RAM": true, - "Total vCPU": true + "Total RAM": true }, "indexByName": {}, - "renameByName": {} + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM" + } } } ], @@ -4492,18 +8155,18 @@ }, "yaxes": [ { - "$$hashKey": "object:149", + "$$hashKey": "object:1121", "format": "percentunit", - "label": "Capacity (%)", + "label": null, "logBase": 1, "max": "1", "min": "0", "show": true }, { - "$$hashKey": "object:150", + "$$hashKey": "object:1122", "format": "short", - "label": "Amount of active hypervisors", + "label": null, "logBase": 1, "max": null, "min": "0", @@ -4527,7 +8190,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -4555,39 +8218,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -4602,12 +8233,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 9, - "y": 59 + "y": 26 }, - "id": 306, + "id": 375, "options": { "colorMode": "background", "graphMode": "none", @@ -4623,49 +8254,71 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", + "legendFormat": "Raw Available CPUs", "queryType": "randomWalk", "refId": "A" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total CPUs", + "refId": "C" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned CPUs", + "refId": "D" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" } ], - "timeFrom": null, - "timeShift": null, - "title": "vCPU Capacity", + "title": "CPU (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned CPUs", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned CPUs" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available CPUs", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned CPUs - Available Decommissioned CPUs" }, "mode": "binary", "reduce": { @@ -4676,12 +8329,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total CPUs" }, "mode": "binary", "reduce": { @@ -4693,10 +8345,44 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": false, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": false, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": true, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned CPUs": 3, + "Raw Available CPUs": 1, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": 5, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": 7, + "Time": 0, + "Total CPUs": 6, + "Total Decommissioned CPUs": 2, + "Total Decommissioned CPUs - Available Decommissioned CPUs": 4 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": "Available", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available (%)", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total CPUs": "Total", + "Total Decommissioned CPUs - Available Decommissioned CPUs": "Decommissioned Workload" + } } } ], @@ -4714,7 +8400,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -4742,39 +8428,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -4789,12 +8443,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 14, - "y": 59 + "y": 26 }, - "id": 307, + "id": 377, "options": { "colorMode": "background", "graphMode": "none", @@ -4810,49 +8464,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw RAM ", + "refId": "F" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total RAM", + "refId": "H" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned RAM", + "refId": "I" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0) ", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned RAM", + "refId": "J" } ], - "timeFrom": null, - "timeShift": null, - "title": "RAM Capacity", + "title": "RAM (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned RAM", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned RAM" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw RAM ", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned RAM - Available Decommissioned RAM" }, "mode": "binary", "reduce": { @@ -4863,12 +8538,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total RAM" }, "mode": "binary", "reduce": { @@ -4880,10 +8554,44 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": true, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": false, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": true, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": false, + "Total Disk": true, + "Total RAM": false }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned RAM": 3, + "Raw RAM ": 1, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": 5, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": 7, + "Time": 0, + "Total Decommissioned RAM": 2, + "Total Decommissioned RAM - Available Decommissioned RAM": 4, + "Total RAM": 6 + }, + "renameByName": { + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available Disk", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": "Available", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available (%)", + "Total Decommissioned RAM - Available Decommissioned RAM": "Decommissioned Workload", + "Total RAM": "Total" + } } } ], @@ -4901,7 +8609,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(242, 73, 92, 0)", + "color": "rgba(115, 191, 105, 0)", "value": null } ] @@ -4929,39 +8637,7 @@ "value": null }, { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Predicted (%) in 2 Months" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", + "color": "#EAB839", "value": 0.2 }, { @@ -4976,12 +8652,12 @@ ] }, "gridPos": { - "h": 11, + "h": 12, "w": 5, "x": 19, - "y": 59 + "y": 26 }, - "id": 308, + "id": 376, "options": { "colorMode": "background", "graphMode": "none", @@ -4997,49 +8673,70 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.37", + "pluginVersion": "7.5.45", "targets": [ { "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)\n", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", + "hide": false, "instant": true, "interval": "", - "legendFormat": "Available", - "queryType": "randomWalk", - "refId": "A" + "legendFormat": "Raw Available Disk", + "refId": "K" }, { "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Total", - "refId": "B" + "legendFormat": "Total Disk", + "refId": "L" }, { "exemplar": true, - "expr": "predict_linear(\n sum(\n max by (compute_host) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n pinned_projects=~\"(^$|.*$project_id.*)\",\n enabled=\"true\"\n }\n )\n )\n[56d:4h], 4838400)", + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", "hide": false, "instant": true, "interval": "", - "legendFormat": "Predicted Capacity", - "refId": "C" + "legendFormat": "Total Decommissioned Disk", + "refId": "M" + }, + { + "exemplar": true, + "expr": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_available{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_project!=\"true\"\n }\n )\n) or vector(0)", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Available Decommissioned Disk", + "refId": "N" } ], - "timeFrom": null, - "timeShift": null, - "title": "Disk Capacity", + "title": "Disk (No commitments)", "transformations": [ { "id": "calculateField", "options": { - "alias": "Available (%)", "binary": { - "left": "Available", - "operator": "/", + "left": "Total Decommissioned Disk", + "operator": "-", + "reducer": "sum", + "right": "Available Decommissioned Disk" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Raw Available Disk", + "operator": "-", "reducer": "sum", - "right": "Total" + "right": "Total Decommissioned Disk - Available Decommissioned Disk" }, "mode": "binary", "reduce": { @@ -5050,12 +8747,11 @@ { "id": "calculateField", "options": { - "alias": "Predicted (%) in 2 Months", "binary": { - "left": "Predicted Capacity", + "left": "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk", "operator": "/", "reducer": "sum", - "right": "Total" + "right": "Total Disk" }, "mode": "binary", "reduce": { @@ -5067,17 +8763,80 @@ "id": "organize", "options": { "excludeByName": { - "Predicted Capacity": true + "Available Decommissioned CPUs": true, + "Available Decommissioned Disk": true, + "Available Decommissioned RAM": true, + "Raw Available CPUs": true, + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Raw Available Disk": true, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": false, + "Raw RAM ": true, + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM": true, + "Time": true, + "Total CPUs": true, + "Total Decommissioned CPUs": true, + "Total Decommissioned CPUs - Available Decommissioned CPUs": true, + "Total Decommissioned Disk": true, + "Total Decommissioned Disk - Available Decommissioned Disk": false, + "Total Decommissioned RAM": true, + "Total Decommissioned RAM - Available Decommissioned RAM": true, + "Total Disk": false, + "Total RAM": true }, - "indexByName": {}, - "renameByName": {} + "indexByName": { + "Available Decommissioned Disk": 3, + "Raw Available Disk": 1, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": 5, + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": 7, + "Time": 0, + "Total Decommissioned Disk": 2, + "Total Decommissioned Disk - Available Decommissioned Disk": 4, + "Total Disk": 6 + }, + "renameByName": { + "Available Decommissioned Disk": "", + "Raw Available CPUs - Total Decommissioned CPUs - Available Decommissioned CPUs / Total CPUs": "Available CPUs", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk": "Available", + "Raw Available Disk - Total Decommissioned Disk - Available Decommissioned Disk / Total Disk": "Available (%)", + "Raw RAM - Total Decommissioned RAM - Available Decommissioned RAM / Total RAM": "Available RAM", + "Total Decommissioned Disk - Available Decommissioned Disk": "Decommissioned Workload", + "Total Disk": "Total" + } } } ], "type": "stat" } ], - "title": "HANA | Sapphire Rapids", + "title": "HANA | Sapphire Rapids (No commitments)", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 350, + "panels": [], + "title": "External Customer", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 352, + "panels": [], + "title": "Capacity pinned to projects", "type": "row" } ], @@ -5192,7 +8951,7 @@ }, "timepicker": {}, "timezone": "", - "title": "Cortex VMware Compute Infrastructure - Overview", + "title": "Cortex Compute VMware - Overview", "uid": "cortex-compute-vmware-overview", - "version": 2 + "version": 21 } \ No newline at end of file