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, }, } diff --git a/tools/plutono/provisioning/dashboards/compute/flavors.json b/tools/plutono/provisioning/dashboards/compute/flavors.json new file mode 100644 index 000000000..713950184 --- /dev/null +++ b/tools/plutono/provisioning/dashboards/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/cortex-compute-global.json.license b/tools/plutono/provisioning/dashboards/compute/flavors.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-global.json.license rename to tools/plutono/provisioning/dashboards/compute/flavors.json.license diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-global.json b/tools/plutono/provisioning/dashboards/compute/global.json similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-global.json rename to tools/plutono/provisioning/dashboards/compute/global.json diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-kvm.json.license b/tools/plutono/provisioning/dashboards/compute/global.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-kvm.json.license rename to tools/plutono/provisioning/dashboards/compute/global.json.license diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-kvm.json b/tools/plutono/provisioning/dashboards/compute/kvm-details.json similarity index 99% rename from tools/plutono/provisioning/dashboards/cortex-compute-kvm.json rename to tools/plutono/provisioning/dashboards/compute/kvm-details.json index 74ab176fc..d04de1ed5 100644 --- a/tools/plutono/provisioning/dashboards/cortex-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/cortex-compute-vmware.json.license b/tools/plutono/provisioning/dashboards/compute/kvm-details.json.license similarity index 100% rename from tools/plutono/provisioning/dashboards/cortex-compute-vmware.json.license rename to tools/plutono/provisioning/dashboards/compute/kvm-details.json.license diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-kvm-overview.json b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json similarity index 99% rename from tools/plutono/provisioning/dashboards/cortex-compute-kvm-overview.json rename to tools/plutono/provisioning/dashboards/compute/kvm-overview.json index aac1741b3..6be2acbd3 100644 --- a/tools/plutono/provisioning/dashboards/cortex-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 diff --git a/tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license new file mode 100644 index 000000000..afcb6a5ce --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license @@ -0,0 +1,2 @@ +# Copyright SAP SE +# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file 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..29875c773 --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/vmware-details.json @@ -0,0 +1,3041 @@ +{ + "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": 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", + "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.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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": true, + "interval": "", + "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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\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 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": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "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" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": true, + "Total Decommissioned": true + }, + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "description": "", + "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": 307, + "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 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": "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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\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 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": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "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" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": true, + "Total Decommissioned": true + }, + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "description": "", + "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": 308, + "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 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": "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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\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 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": { + "alias": "Available (%)", + "binary": { + "left": "Available", + "operator": "/", + "reducer": "sum", + "right": "Total" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "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" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Available Decommissioned": true, + "Predicted": true, + "Predicted Capacity": true, + "Raw Available": true, + "Time": true, + "Total Decommissioned": true + }, + "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" + } + } + } + ], + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-openstack", + "description": "", + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, + "id": 309, + "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:241", + "alias": "Total", + "color": "#1F60C4", + "stack": false + }, + { + "$$hashKey": "object:248", + "alias": "Available", + "fill": 10 + }, + { + "$$hashKey": "object:318", + "alias": "Decommissioned Workload", + "color": "#FA6400", + "fill": 10 + } + ], + "spaceLength": 10, + "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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": false, + "interval": "", + "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 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": "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, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:134", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:135", + "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", + "description": "", + "fieldConfig": { + "defaults": { + "unit": "mbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 9 + }, + "hiddenSeries": false, + "id": 310, + "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:241", + "alias": "Total", + "color": "#1F60C4", + "stack": false + }, + { + "$$hashKey": "object:248", + "alias": "Available", + "fill": 10 + }, + { + "$$hashKey": "object:318", + "alias": "Decommissioned Workload", + "color": "#FA6400", + "fill": 10 + } + ], + "spaceLength": 10, + "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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": false, + "interval": "", + "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 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 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, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:134", + "format": "mbytes", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:135", + "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", + "description": "", + "fieldConfig": { + "defaults": { + "unit": "gbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Predicted (%) in 2 Months" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 9 + }, + "hiddenSeries": false, + "id": 311, + "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:241", + "alias": "Total", + "color": "#1F60C4", + "stack": false + }, + { + "$$hashKey": "object:248", + "alias": "Available", + "fill": 10 + }, + { + "$$hashKey": "object:318", + "alias": "Decommissioned Workload", + "color": "#FA6400", + "fill": 10 + } + ], + "spaceLength": 10, + "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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=~\"$external_customer\",\n }\n )\n)\n", + "instant": false, + "interval": "", + "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 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 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, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:134", + "format": "gbytes", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:135", + "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.45", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:720", + "alias": "/.*/", + "color": "#73BF69" + }, + { + "$$hashKey": "object:728", + "alias": "/.*Enabled: false.*/", + "color": "#FADE2A" + }, + { + "$$hashKey": "object:1582", + "alias": "/.*Decommissioned: true.*/", + "color": "#F2495C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "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}}) (Decommissioned: {{decommissioned}})", + "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": 305, + "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": "/.*Enabled: false.*/", + "color": "#FADE2A" + }, + { + "$$hashKey": "object:1582", + "alias": "/.*Decommissioned: true.*/", + "color": "#F2495C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "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: {{enabled}}) (Decommissioned: {{decommissioned}})", + "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": 306, + "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": "/.*Enabled: false.*/", + "color": "#FADE2A" + }, + { + "$$hashKey": "object:1582", + "alias": "/.*Decommissioned: true.*/", + "color": "#F2495C" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "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: {{enabled}}) (Decommissioned: {{decommissioned}})", + "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": 16, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 217, + "options": { + "showHeader": true, + "sortBy": [] + }, + "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, 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": "", + "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\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", + "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\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", + "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\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", + "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\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", + "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\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", + "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\", enabled=~\"$enabled\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) ", + "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, + "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", + "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": 41 + }, + "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 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", + "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": 64 + }, + "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 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", + "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": 87 + }, + "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 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", + "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": 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": true, + "tags": [], + "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 + }, + { + "allValue": null, + "current": { + "selected": true, + "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, 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 + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cortex Compute VMware - Details", + "uid": "cortex-compute-vmware-details", + "version": 4 +} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/vmware-details.json.license b/tools/plutono/provisioning/dashboards/compute/vmware-details.json.license new file mode 100644 index 000000000..afcb6a5ce --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/vmware-details.json.license @@ -0,0 +1,2 @@ +# Copyright SAP SE +# SPDX-License-Identifier: Apache-2.0 \ 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 new file mode 100644 index 000000000..c5fcbd331 --- /dev/null +++ b/tools/plutono/provisioning/dashboards/compute/vmware-overview.json @@ -0,0 +1,8957 @@ +{ + "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": 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, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 380, + "options": { + "content": "# INFO\n\nCurrently not 100% accurate. Waiting on latest cortex version to be deployed.", + "mode": "markdown" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "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", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 5 + }, + "id": 355, + "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 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 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": true, + "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": true, + "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 # 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 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" + }, + { + "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": true, + "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": 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)", + "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": 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, + "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": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 5 + }, + "id": 356, + "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 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 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": true, + "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": true, + "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": 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=\"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": "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": 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=\"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_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=\"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)", + "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": 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", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 5 + }, + "id": 357, + "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 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 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": true, + "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": true, + "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": 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_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=\"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 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_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=\"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)", + "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": 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" + }, + { + "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": 0, + "y": 13 + }, + "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": [ + { + "$$hashKey": "object:803", + "alias": "Active hosts", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + }, + { + "$$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": "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": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 2, + "x": 0, + "y": 22 + }, + "id": 340, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "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 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", + "queryType": "randomWalk", + "refId": "A" + }, + { + "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 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 hosts", + "type": "stat" + }, + { + "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": 12, + "w": 7, + "x": 2, + "y": 22 + }, + "hiddenSeries": false, + "id": 368, + "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:803", + "alias": "Active hosts", + "color": "#8F3BB8", + "dashes": true, + "linewidth": 2, + "yaxis": 2 + }, + { + "$$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": "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" + } + } + }, + { + "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 + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 0)", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Available (%)" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + }, + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 9, + "y": 22 + }, + "id": 361, + "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 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 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": true, + "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": true, + "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": true, + "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": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + } + ], + "title": "CPU (With commitments)", + "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": "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)": 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 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 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 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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 14, + "y": 22 + }, + "id": 362, + "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 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 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" + } + ], + "title": "RAM (With commitments)", + "transformations": [ + { + "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": "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)": 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 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 Decommissioned RAM": 3, + "Total Decommissioned RAM - Available Decommissioned RAM": 6, + "Total RAM": 9, + "Unused RAM commitments": 2 + }, + "renameByName": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 19, + "y": 22 + }, + "id": 363, + "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": "# 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": "DIsk (No commitments)", + "transformations": [ + { + "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)": 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": { + "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": { + "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": "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": { + "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": "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": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 2, + "x": 0, + "y": 23 + }, + "id": 385, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "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 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", + "queryType": "randomWalk", + "refId": "A" + }, + { + "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 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": "Hosts", + "type": "stat" + }, + { + "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": 12, + "w": 7, + "x": 2, + "y": 23 + }, + "hiddenSeries": false, + "id": 387, + "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=\"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 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 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_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": "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": 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=\"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": "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" + } + } + }, + { + "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 + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 9, + "y": 23 + }, + "id": 388, + "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 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": "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 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 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": true, + "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": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + } + ], + "title": "CPU (No commitments)", + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 14, + "y": 23 + }, + "id": 389, + "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 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": "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": 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 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 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" + } + ], + "title": "RAM (No commitments)", + "transformations": [ + { + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 19, + "y": 23 + }, + "id": 390, + "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 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": "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=\"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 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": 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 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": "Disk (No commitments)", + "transformations": [ + { + "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": 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": { + "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": "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": { + "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": "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": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 2, + "x": 0, + "y": 24 + }, + "id": 386, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "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 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", + "queryType": "randomWalk", + "refId": "A" + }, + { + "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 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": "Hosts", + "type": "stat" + }, + { + "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": 12, + "w": 7, + "x": 2, + "y": 24 + }, + "hiddenSeries": false, + "id": 391, + "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=\"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 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 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=\"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 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": 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=\"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=\"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": "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 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": "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=\"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=\"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:1847", + "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" + } + } + }, + { + "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 + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 9, + "y": 24 + }, + "id": 392, + "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 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": "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 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 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=\"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 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" + } + ], + "title": "CPU (No commitments)", + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 14, + "y": 24 + }, + "id": 393, + "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 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": "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=\"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": "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": 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 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" + } + ], + "title": "RAM (No commitments)", + "transformations": [ + { + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 19, + "y": 24 + }, + "id": 394, + "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 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": "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=\"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 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=\"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=\"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" + } + ], + "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" + } + } + }, + { + "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": 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": { + "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": "General Purpose | Sapphire Rapids (No commitments)", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 226, + "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": "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": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 2, + "x": 0, + "y": 25 + }, + "id": 369, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "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 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", + "queryType": "randomWalk", + "refId": "A" + }, + { + "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 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": "Hosts", + "type": "stat" + }, + { + "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": 12, + "w": 7, + "x": 2, + "y": 25 + }, + "hiddenSeries": false, + "id": 373, + "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": "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" + } + } + }, + { + "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 + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 9, + "y": 25 + }, + "id": 370, + "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 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 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": true, + "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": true, + "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": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + } + ], + "title": "CPU (No commitments)", + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 14, + "y": 25 + }, + "id": 371, + "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 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": "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": 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=\"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" + } + ], + "title": "RAM (No commitments)", + "transformations": [ + { + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 19, + "y": 25 + }, + "id": 372, + "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 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_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=\"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": "Disk (No commitments)", + "transformations": [ + { + "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": 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": { + "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 (No commitments)", + "type": "row" + }, + { + "collapsed": true, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 228, + "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": "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": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 2, + "x": 0, + "y": 26 + }, + "id": 374, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.45", + "targets": [ + { + "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 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", + "queryType": "randomWalk", + "refId": "A" + }, + { + "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 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": "Hosts", + "type": "stat" + }, + { + "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": 12, + "w": 7, + "x": 2, + "y": 26 + }, + "hiddenSeries": false, + "id": 378, + "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": "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" + } + } + }, + { + "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 + } + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 9, + "y": 26 + }, + "id": 375, + "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 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 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": true, + "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": true, + "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": true, + "interval": "", + "legendFormat": "Available Decommissioned CPUs", + "refId": "E" + } + ], + "title": "CPU (No commitments)", + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 14, + "y": 26 + }, + "id": 377, + "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 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_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=\"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 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" + } + ], + "title": "RAM (No commitments)", + "transformations": [ + { + "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": "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": 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": { + "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" + } + } + } + ], + "type": "stat" + }, + { + "datasource": "prometheus-openstack", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(115, 191, 105, 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": "#EAB839", + "value": 0.2 + }, + { + "color": "green", + "value": 0.3 + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 5, + "x": 19, + "y": 26 + }, + "id": 376, + "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 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_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=\"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": "Disk (No commitments)", + "transformations": [ + { + "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": 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": { + "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 (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" + } + ], + "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 Compute VMware - Overview", + "uid": "cortex-compute-vmware-overview", + "version": 21 +} \ 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 diff --git a/tools/plutono/provisioning/dashboards/cortex-compute-vmware.json b/tools/plutono/provisioning/dashboards/cortex-compute-vmware.json deleted file mode 100644 index 79a6243bd..000000000 --- a/tools/plutono/provisioning/dashboards/cortex-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 diff --git a/tools/plutono/provisioning/dashboards/dashboards.yml b/tools/plutono/provisioning/dashboards/dashboards.yml index 78c615248..d83d66d4f 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: 'compute' + orgId: 1 + folder: 'Compute' + type: file + disableDeletion: false + editable: true + allowUiUpdates: true + options: + path: /etc/plutono/provisioning/dashboards/compute \ No newline at end of file