From 40c71860e9135d745e3ae42bcf65cdcc29433840 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 19:41:09 +0200 Subject: [PATCH 01/13] Renovate: Update module github.com/google/cel-go to v0.30.0 [SECURITY] (#1355) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [github.com/google/cel-go](https://redirect.github.com/google/cel-go) | `v0.29.2` → `v0.30.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoogle%2fcel-go/v0.30.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgoogle%2fcel-go/v0.30.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgoogle%2fcel-go/v0.29.2/v0.30.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoogle%2fcel-go/v0.29.2/v0.30.0?slim=true) | --- ### JSON private fields exposed via NativeTypes and ParseStructTag in github.com/google/cel-go [GHSA-gcjh-h69q-9w9g](https://redirect.github.com/advisories/GHSA-gcjh-h69q-9w9g) / [GO-2026-6094](https://pkg.go.dev/vuln/GO-2026-6094)
More information #### Details JSON private fields exposed via NativeTypes and ParseStructTag in github.com/google/cel-go #### Severity Unknown #### References - [https://github.com/cel-expr/cel-go/security/advisories/GHSA-gcjh-h69q-9w9g](https://redirect.github.com/cel-expr/cel-go/security/advisories/GHSA-gcjh-h69q-9w9g) This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6094) and the [Go Vulnerability Database](https://redirect.github.com/golang/vulndb) ([CC-BY 4.0](https://redirect.github.com/golang/vulndb#license)).
--- ### Release Notes
google/cel-go (github.com/google/cel-go) ### [`v0.30.0`](https://redirect.github.com/google/cel-go/compare/v0.29.2...v0.30.0) [Compare Source](https://redirect.github.com/google/cel-go/compare/v0.29.2...v0.30.0)
--- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cobaltcore-dev/cortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ee5919330..9274cd26e 100644 --- a/go.mod +++ b/go.mod @@ -65,7 +65,7 @@ require ( github.com/go-openapi/swag/typeutils v0.28.0 // indirect github.com/go-openapi/swag/yamlutils v0.28.0 // indirect github.com/go-sql-driver/mysql v1.10.0 // indirect - github.com/google/cel-go v0.29.2 // indirect + github.com/google/cel-go v0.30.0 // indirect github.com/google/gnostic-models v0.7.1 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/gorilla/mux v1.8.1 // indirect diff --git a/go.sum b/go.sum index 70dc28aea..719749ba6 100644 --- a/go.sum +++ b/go.sum @@ -98,8 +98,8 @@ github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1v github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/cel-go v0.29.2 h1:ZtDxkeiMmz0mxbKDYiNkE5Lk7V5edMRcaaDf2jX002k= -github.com/google/cel-go v0.29.2/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8= +github.com/google/cel-go v0.30.0 h1:ll54AkzKunWkBn9wSoiUXbFZXYZTkdJGNXTBXUoolGo= +github.com/google/cel-go v0.30.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8= github.com/google/gnostic-models v0.7.1 h1:SisTfuFKJSKM5CPZkffwi6coztzzeYUhc3v4yxLWH8c= github.com/google/gnostic-models v0.7.1/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= From 20d992dfa2c4ede4ed3f984506de540e46667cac Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 19:49:20 +0200 Subject: [PATCH 02/13] Renovate: Update module github.com/moby/sys/user to v0.4.1 [SECURITY] (#1354) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [github.com/moby/sys/user](https://redirect.github.com/moby/sys) | `v0.4.0` → `v0.4.1` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmoby%2fsys%2fuser/v0.4.1?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fmoby%2fsys%2fuser/v0.4.1?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fmoby%2fsys%2fuser/v0.4.0/v0.4.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmoby%2fsys%2fuser/v0.4.0/v0.4.1?slim=true) | --- ### github.com/moby/sys/user has a possible DoS via unbounded parsing of user and group database files [CVE-2026-61801](https://nvd.nist.gov/vuln/detail/CVE-2026-61801) / [GHSA-mjcv-p78q-w5fw](https://redirect.github.com/advisories/GHSA-mjcv-p78q-w5fw)
More information #### Details A denial-of-service (DoS) vulnerability exists in `github.com/moby/sys/user` before v0.4.1 when parsing specially crafted user or group database files. An attacker able to supply a malicious `/etc/passwd` or `/etc/group`-style file may cause excessive memory consumption, potentially resulting in process termination due to Out Of Memory (OOM) conditions. This issue is related to containerd [CVE-2026-47262] / [GHSA-jpcc-p29g-p8mq](https://redirect.github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq), which describes one practical exploitation path through processing untrusted container image content. Applications using `github.com/moby/sys/user` to parse untrusted user or group database files may be similarly affected. ##### Impact `github.com/moby/sys/user` versions before v0.4.1 do not place sufficient limits on entries while parsing user and group database files. A specially crafted file may cause excessive memory consumption, potentially leading to process termination due to Out Of Memory (OOM) conditions. Applications that use `github.com/moby/sys/user` to parse user-supplied or otherwise untrusted `/etc/passwd` or `/etc/group` files may be affected. The severity depends on whether an attacker can influence the contents of files being parsed. ##### Patches This issue is fixed in `github.com/moby/sys/user` v0.4.1. Users should upgrade to v0.4.1 or later. ##### Workarounds Avoid parsing attacker-controlled `/etc/passwd` or `/etc/group`-style files with affected versions of `github.com/moby/sys/user`. Applications that must process untrusted user or group database files should validate and limit accepted input before parsing. Upgrading to v0.4.1 or later is the recommended remediation. ##### References * containerd CVE-2026-47262 / GHSA-jpcc-p29g-p8mq: https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq * Fix in `github.com/moby/sys/user`: https://github.com/moby/sys/user/commit/210d32ba2bcb4544ee968c7f31249fe59796e60b #### Severity - CVSS Score: 5.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/moby/sys/security/advisories/GHSA-mjcv-p78q-w5fw](https://redirect.github.com/moby/sys/security/advisories/GHSA-mjcv-p78q-w5fw) - [https://github.com/moby/sys/pull/221](https://redirect.github.com/moby/sys/pull/221) - [https://github.com/moby/sys/commit/85a71bbe1faa36c552a960e6a5f3d0cfb632fbbe](https://redirect.github.com/moby/sys/commit/85a71bbe1faa36c552a960e6a5f3d0cfb632fbbe) - [https://github.com/advisories/GHSA-mjcv-p78q-w5fw](https://redirect.github.com/advisories/GHSA-mjcv-p78q-w5fw) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-mjcv-p78q-w5fw) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
--- ### github.com/moby/sys/user has a possible DoS via unbounded parsing of user and group database files [CVE-2026-61801](https://nvd.nist.gov/vuln/detail/CVE-2026-61801) / [GHSA-mjcv-p78q-w5fw](https://redirect.github.com/advisories/GHSA-mjcv-p78q-w5fw)
More information #### Details A denial-of-service (DoS) vulnerability exists in `github.com/moby/sys/user` before v0.4.1 when parsing specially crafted user or group database files. An attacker able to supply a malicious `/etc/passwd` or `/etc/group`-style file may cause excessive memory consumption, potentially resulting in process termination due to Out Of Memory (OOM) conditions. This issue is related to containerd [CVE-2026-47262] / [GHSA-jpcc-p29g-p8mq](https://redirect.github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq), which describes one practical exploitation path through processing untrusted container image content. Applications using `github.com/moby/sys/user` to parse untrusted user or group database files may be similarly affected. ##### Impact `github.com/moby/sys/user` versions before v0.4.1 do not place sufficient limits on entries while parsing user and group database files. A specially crafted file may cause excessive memory consumption, potentially leading to process termination due to Out Of Memory (OOM) conditions. Applications that use `github.com/moby/sys/user` to parse user-supplied or otherwise untrusted `/etc/passwd` or `/etc/group` files may be affected. The severity depends on whether an attacker can influence the contents of files being parsed. ##### Patches This issue is fixed in `github.com/moby/sys/user` v0.4.1. Users should upgrade to v0.4.1 or later. ##### Workarounds Avoid parsing attacker-controlled `/etc/passwd` or `/etc/group`-style files with affected versions of `github.com/moby/sys/user`. Applications that must process untrusted user or group database files should validate and limit accepted input before parsing. Upgrading to v0.4.1 or later is the recommended remediation. ##### References * containerd CVE-2026-47262 / GHSA-jpcc-p29g-p8mq: https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq * Fix in `github.com/moby/sys/user`: https://github.com/moby/sys/user/commit/210d32ba2bcb4544ee968c7f31249fe59796e60b #### Severity - CVSS Score: 5.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/moby/sys/security/advisories/GHSA-mjcv-p78q-w5fw](https://redirect.github.com/moby/sys/security/advisories/GHSA-mjcv-p78q-w5fw) - [https://github.com/moby/sys/pull/221](https://redirect.github.com/moby/sys/pull/221) - [https://github.com/moby/sys/commit/85a71bbe1faa36c552a960e6a5f3d0cfb632fbbe](https://redirect.github.com/moby/sys/commit/85a71bbe1faa36c552a960e6a5f3d0cfb632fbbe) - [https://github.com/moby/sys](https://redirect.github.com/moby/sys) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-mjcv-p78q-w5fw) and the [GitHub Advisory Database](https://redirect.github.com/github/advisory-database) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
--- ### Release Notes
moby/sys (github.com/moby/sys/user) ### [`v0.4.1`](https://redirect.github.com/moby/sys/releases/tag/user/v0.4.1) #### What's Changed - user: prevent possible DoS via unbounded parsing of user and group database files in CVE-2026-61801 / [GHSA-mjcv-p78q-w5fw](https://redirect.github.com/moby/sys/security/advisories/GHSA-mjcv-p78q-w5fw). This fixes a similar issue as CVE-2026-47262 in containerd. - user: prevent falling back to looking up numeric usernames and improve handling of numeric user/group to prevent looking up numeric values as usernames. This fixes a similar issue as CVE-2026-46680 in containerd. [#​221](https://redirect.github.com/moby/sys/pull/221) - user: bump Go to 1.18, modernize [#​198](https://redirect.github.com/moby/sys/pull/198) - user: make code a bit more DRY [#​225](https://redirect.github.com/moby/sys/pull/225) - user: test cleanups [#​226](https://redirect.github.com/moby/sys/pull/226) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cobaltcore-dev/cortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 9274cd26e..8284004c6 100644 --- a/go.mod +++ b/go.mod @@ -75,7 +75,7 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/kylelemons/godebug v1.1.0 // indirect - github.com/moby/sys/user v0.4.0 // indirect + github.com/moby/sys/user v0.4.1 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect diff --git a/go.sum b/go.sum index 719749ba6..c810d9f57 100644 --- a/go.sum +++ b/go.sum @@ -143,8 +143,8 @@ github.com/lib/pq v1.12.3 h1:tTWxr2YLKwIvK90ZXEw8GP7UFHtcbTtty8zsI+YjrfQ= github.com/lib/pq v1.12.3/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA= github.com/mattn/go-sqlite3 v1.14.52 h1:wVbm2Qnf4OXkqhBTSPuCRZDRnxfbVrrmiCEroVdog8U= github.com/mattn/go-sqlite3 v1.14.52/go.mod h1:6JTjA44L93a0QCyJef5YvlPoKXntQPjzWv5gtm9sB6w= -github.com/moby/sys/user v0.4.0 h1:jhcMKit7SA80hivmFJcbB1vqmw//wU61Zdui2eQXuMs= -github.com/moby/sys/user v0.4.0/go.mod h1:bG+tYYYJgaMtRKgEmuueC0hJEAZWwtIbZTB+85uoHjs= +github.com/moby/sys/user v0.4.1 h1:RgjRlaDKi/Xmyrz4t8lyzXT6v2ooFeO/7xtchmhVWE0= +github.com/moby/sys/user v0.4.1/go.mod h1:E9QsW5WRe1kUAf7kW8hXKwu1uhsZEAdPLYHYSDudF4Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= From 5a6b927985695b21ee345b56f80deeec1c874fb6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 08:22:40 +0200 Subject: [PATCH 03/13] Renovate: Update github.com/sapcc/go-bits digest to 605f183 (#1358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/sapcc/go-bits](https://redirect.github.com/sapcc/go-bits) | require | digest | `c011033` → `416f3ad` | --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - "after 6pm every weekday,every weekend,before 8am every weekday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cobaltcore-dev/cortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 8284004c6..80fdb51f2 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/prometheus/client_golang v1.25.0 github.com/prometheus/client_model v0.6.3 github.com/sapcc/go-api-declarations v1.25.1 - github.com/sapcc/go-bits v0.0.0-20261009090210-c011033c8559 + github.com/sapcc/go-bits v0.0.0-20261013222358-416f3ade2c19 go.uber.org/zap v1.28.0 go.xyrillian.de/gg v1.19.0 golang.org/x/sync v0.24.0 @@ -85,7 +85,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/poy/onpar v0.3.5 // indirect - github.com/prometheus/common v0.72.0 // indirect + github.com/prometheus/common v0.72.1 // indirect github.com/prometheus/procfs v0.22.0 // indirect github.com/sirupsen/logrus v1.9.4 // indirect github.com/spf13/cobra v1.10.2 // indirect @@ -106,10 +106,10 @@ require ( go.yaml.in/yaml/v3 v3.0.5 // indirect go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect - golang.org/x/net v0.60.0 // indirect + golang.org/x/net v0.61.0 // indirect golang.org/x/oauth2 v0.37.0 // indirect golang.org/x/sys v0.49.0 // indirect - golang.org/x/text v0.42.0 // indirect + golang.org/x/text v0.43.0 // indirect golang.org/x/time v0.16.0 // indirect gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688 // indirect diff --git a/go.sum b/go.sum index c810d9f57..68929fdd2 100644 --- a/go.sum +++ b/go.sum @@ -176,8 +176,8 @@ github.com/prometheus/client_golang v1.25.0 h1:cDtW1TcFsMi1RJc8khwCKB4VhzwV04aKq github.com/prometheus/client_golang v1.25.0/go.mod h1:j2X/4/kaQHLPnmyEU8zjmkndo1T317VpCIQEml8LTKk= github.com/prometheus/client_model v0.6.3 h1:O0jaTVAYNxTHYInEPFJt5I3+sN8zqBtVMPTB1qyxiEo= github.com/prometheus/client_model v0.6.3/go.mod h1:gpN5P9S7Rr6Yr92PiQ+Ixvhf6JZEkF1dnxsYL2aPBEM= -github.com/prometheus/common v0.72.0 h1:tAYsE+sPJxIncDAobm4H5aQjmox9ZxEIIqPbiffa8G4= -github.com/prometheus/common v0.72.0/go.mod h1:77NWqAQ2tXT7BIK40qjJdw5Acrsrg1TlHAnsQi3i6mk= +github.com/prometheus/common v0.72.1 h1:ZAiQed/nk8IIcsdzb2TlJu23NEUDyDLQ9TXTN2WRK6Y= +github.com/prometheus/common v0.72.1/go.mod h1:1IoBY4IRaJnhs2ESjNzjilP1cJ/P8pimGoomq7zRXrA= github.com/prometheus/procfs v0.22.0 h1:6q9+/JL9IKAPbCmBrv9n5O5Ty3NKnciV5X7YGw0oics= github.com/prometheus/procfs v0.22.0/go.mod h1:CvmFr/GVhIjIvWJZW3tgkODBQMRIf0EyWMQLHCHab58= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= @@ -185,8 +185,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sapcc/go-api-declarations v1.25.1 h1:Lrbf8TZY/ARg0J9IrlrObqnXjrzSzmYKQd/L/a71Lsg= github.com/sapcc/go-api-declarations v1.25.1/go.mod h1:bJkK8wphzlmUmN5lxBv8BbfxUXMOkW+UiC10xBHXsFs= -github.com/sapcc/go-bits v0.0.0-20261009090210-c011033c8559 h1:7BRF2kmSSen/+ffHcb5b49m+K4gA7/bFErGVrf2ssrM= -github.com/sapcc/go-bits v0.0.0-20261009090210-c011033c8559/go.mod h1:GDsLUgS36+Q2q7rMlYZQjRnBF3WsPYpipPa3i9iO65A= +github.com/sapcc/go-bits v0.0.0-20261013222358-416f3ade2c19 h1:JKZe05UIn70AalARFEN5IKSh7yhb6wPCEUNn/41VNM8= +github.com/sapcc/go-bits v0.0.0-20261013222358-416f3ade2c19/go.mod h1:Z2uDp3zty2oJAXAVZZaUazo3uGZ6G2zBfauNtEl+EHw= github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= @@ -243,8 +243,8 @@ golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f h1:W3F4c+6OLc6H2lb//N1q4WpJk golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f/go.mod h1:J1xhfL/vlindoeF/aINzNzt2Bket5bjo9sdOYzOsU80= golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c= golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o= -golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= -golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= +golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= +golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/oauth2 v0.37.0 h1:JUlcxA8oAtauLfiH8FX2/FkAWHAdi0QtGCGc+hofE98= golang.org/x/oauth2 v0.37.0/go.mod h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58= golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= @@ -254,12 +254,12 @@ golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= -golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= -golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= +golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= +golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= golang.org/x/time v0.16.0 h1:vMb6ptszcQMkcwiRTAuNNU50gom6++Q/6gY2hDM6VDE= golang.org/x/time v0.16.0/go.mod h1:rVKOqvZeKvrDKTQiAHJ7wmwP0RzleSphoEA9RcdLA0s= -golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= -golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= +golang.org/x/tools v0.51.0 h1:k4Xc/1Om9jwkBJBo4NVLMSARBoWtK10mx+W5BnXCeAI= +golang.org/x/tools v0.51.0/go.mod h1:9eEncMayCV6zRMGhR5eZEC2iBx98qWcF1HZ9Z7wJOoA= gomodules.xyz/jsonpatch/v2 v2.5.0 h1:JELs8RLM12qJGXU4u/TO3V25KW8GreMKl9pdkk14RM0= gomodules.xyz/jsonpatch/v2 v2.5.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= From 4adb745fac9d94d0db52c690bac50df33505a720 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 08:23:13 +0200 Subject: [PATCH 04/13] Renovate: Update kube-prometheus-stack Docker tag to v92.3.1 (#1359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kube-prometheus-stack](https://redirect.github.com/prometheus-operator/kube-prometheus) ([source](https://redirect.github.com/prometheus-community/helm-charts)) | patch | `92.3.0` → `92.3.1` | --- ### Release Notes
prometheus-community/helm-charts (kube-prometheus-stack) ### [`v92.3.1`](https://redirect.github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-92.3.1) kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator. ##### What's Changed - \[kube-prometheus-stack] Update kube-prometheus-stack dependency non-major updates by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7363](https://redirect.github.com/prometheus-community/helm-charts/pull/7363) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - "after 6pm every weekday,every weekend,before 8am every weekday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cobaltcore-dev/cortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- helm/dev/cortex-prometheus-operator/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/dev/cortex-prometheus-operator/Chart.yaml b/helm/dev/cortex-prometheus-operator/Chart.yaml index 7ce02314d..d0c9a9f43 100644 --- a/helm/dev/cortex-prometheus-operator/Chart.yaml +++ b/helm/dev/cortex-prometheus-operator/Chart.yaml @@ -10,4 +10,4 @@ dependencies: # CRDs of the prometheus operator, such as PrometheusRule, ServiceMonitor, etc. - name: kube-prometheus-stack repository: oci://ghcr.io/prometheus-community/charts - version: 92.3.0 + version: 92.3.1 From 4f3aa35097a3891bd130a129fc2052ae8802e296 Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 14 Oct 2026 09:23:34 +0200 Subject: [PATCH 05/13] fix: remove large runner from workflows (#1360) Signed-off-by: Markus Wieland --- .github/workflows/codeql.yaml | 2 +- .github/workflows/push-images.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index cf302e9ca..cd1272b72 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -24,7 +24,7 @@ permissions: jobs: analyze: name: CodeQL - runs-on: large_runner_16core_64gb + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v7 diff --git a/.github/workflows/push-images.yaml b/.github/workflows/push-images.yaml index ef3c39e9c..1a0ae6046 100644 --- a/.github/workflows/push-images.yaml +++ b/.github/workflows/push-images.yaml @@ -17,7 +17,7 @@ jobs: packages: write attestations: write id-token: write - runs-on: large_runner_16core_64gb + runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - name: Set up QEMU From eca9083720b7f072528744cee62c7317e0268420 Mon Sep 17 00:00:00 2001 From: Philipp Matthes Date: Wed, 14 Oct 2026 09:56:39 +0200 Subject: [PATCH 06/13] Avoid review comments on outdated language features (#1361) The review agent made comments related to the new `new()` golang feature and didn't recognize it, marking it as not compilable. Compilability should be checked not by the review agent, but instead by separate workflows. Signed-off-by: Philipp Matthes --- .github/workflows/cortex-agent-review.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cortex-agent-review.yaml b/.github/workflows/cortex-agent-review.yaml index 04552698a..56ee9bc4a 100644 --- a/.github/workflows/cortex-agent-review.yaml +++ b/.github/workflows/cortex-agent-review.yaml @@ -78,6 +78,10 @@ jobs: "consider" suggestions, documentation, test coverage, or anything that is a matter of opinion. Absolutely no nits. If there are no critical issues, post nothing at all. + ALSO DO NOT comment on: syntax errors or suspected non-compilable code. This + will be checked by build and test workflows programmatically. Note that you may + have an outdated knowledge about programming language features. + Note: The PR branch is already checked out in the current working directory. Check existing comments first — use `gh pr view --json comments` and `gh api` From 505f1ae87452e5a4b6e282365270b238f7c792d5 Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 14 Oct 2026 13:57:08 +0200 Subject: [PATCH 07/13] chore: Migrate from Plutono to Perses (#1363) Signed-off-by: Markus Wieland --- Tiltfile | 8 - docs/01-getting-started/07-tooling.md | 6 +- .../05-infrastructure-dashboard.md | 11 +- docs/04-knowledge-database/06-monitoring.md | 1 - .../cortex-cinder/templates/alerts.yaml | 60 +- helm/bundles/cortex-cinder/values.yaml | 7 + .../cortex-manila/templates/alerts.yaml | 52 +- helm/bundles/cortex-manila/values.yaml | 7 + .../bundles/cortex-nova/templates/alerts.yaml | 180 +- helm/bundles/cortex-nova/values.yaml | 7 + .../templates/alerts.yaml | 44 +- .../bundles/cortex-placement-shim/values.yaml | 7 + .../cortex-compute-kvm-overview.json | 795 +- .../cortex-compute-vmware-details.json | 1502 +++ .../cortex-compute-vmware-overview.json | 4013 ++++++++ .../cortex-global-compute-capacity.json | 352 + .../cortex-placement-shim-status.json | 629 ++ .../cortex-project-flavor-usage.json | 384 + .../dashboards/cortex-status-global.json | 547 + tools/perses/dashboards/cortex-status.json | 1333 +++ tools/plutono/Dockerfile | 7 - tools/plutono/app.yaml | 24 - tools/plutono/plutono.ini | 9 - .../dashboards/compute/flavors.json | 547 - .../dashboards/compute/flavors.json.license | 2 - .../dashboards/compute/global.json | 470 - .../dashboards/compute/global.json.license | 2 - .../dashboards/compute/kvm-details.json | 2429 ----- .../compute/kvm-details.json.license | 2 - .../dashboards/compute/kvm-overview.json | 2429 ----- .../compute/kvm-overview.json.license | 2 - .../dashboards/compute/vmware-details.json | 3041 ------ .../compute/vmware-details.json.license | 2 - .../dashboards/compute/vmware-overview.json | 8957 ----------------- .../compute/vmware-overview.json.license | 2 - .../cortex-placement-shim-status.json | 976 -- .../cortex-placement-shim-status.license | 2 - .../dashboards/cortex-status.json | 2366 ----- .../dashboards/cortex-status.json.license | 2 - .../provisioning/dashboards/cortex.json | 72 - .../dashboards/cortex.json.license | 2 - .../provisioning/dashboards/dashboards.yml | 25 - .../provisioning/datasources/datasources.yml | 71 - 43 files changed, 9766 insertions(+), 21620 deletions(-) create mode 100644 tools/perses/dashboards/cortex-compute-vmware-details.json create mode 100644 tools/perses/dashboards/cortex-compute-vmware-overview.json create mode 100644 tools/perses/dashboards/cortex-global-compute-capacity.json create mode 100644 tools/perses/dashboards/cortex-placement-shim-status.json create mode 100644 tools/perses/dashboards/cortex-project-flavor-usage.json create mode 100644 tools/perses/dashboards/cortex-status-global.json create mode 100644 tools/perses/dashboards/cortex-status.json delete mode 100644 tools/plutono/Dockerfile delete mode 100644 tools/plutono/app.yaml delete mode 100644 tools/plutono/plutono.ini delete mode 100644 tools/plutono/provisioning/dashboards/compute/flavors.json delete mode 100644 tools/plutono/provisioning/dashboards/compute/flavors.json.license delete mode 100644 tools/plutono/provisioning/dashboards/compute/global.json delete mode 100644 tools/plutono/provisioning/dashboards/compute/global.json.license delete mode 100644 tools/plutono/provisioning/dashboards/compute/kvm-details.json delete mode 100644 tools/plutono/provisioning/dashboards/compute/kvm-details.json.license delete mode 100644 tools/plutono/provisioning/dashboards/compute/kvm-overview.json delete mode 100644 tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license delete mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-details.json delete mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-details.json.license delete mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-overview.json delete mode 100644 tools/plutono/provisioning/dashboards/compute/vmware-overview.json.license delete mode 100644 tools/plutono/provisioning/dashboards/cortex-placement-shim-status.json delete mode 100644 tools/plutono/provisioning/dashboards/cortex-placement-shim-status.license delete mode 100644 tools/plutono/provisioning/dashboards/cortex-status.json delete mode 100644 tools/plutono/provisioning/dashboards/cortex-status.json.license delete mode 100644 tools/plutono/provisioning/dashboards/cortex.json delete mode 100644 tools/plutono/provisioning/dashboards/cortex.json.license delete mode 100644 tools/plutono/provisioning/dashboards/dashboards.yml delete mode 100644 tools/plutono/provisioning/datasources/datasources.yml diff --git a/Tiltfile b/Tiltfile index bc0c1c407..446a06255 100644 --- a/Tiltfile +++ b/Tiltfile @@ -313,14 +313,6 @@ k8s_resource( labels=['Monitoring'], ) -docker_build('cortex-plutono', './tools/plutono') -k8s_yaml('./tools/plutono/app.yaml') -k8s_resource('cortex-plutono', port_forwards=[ - port_forward(5000, 3000, name='plutono'), -], links=[ - link('http://localhost:5000/d/cortex/cortex?orgId=1', 'cortex dashboard'), -], labels=['Monitoring']) - helm_resource( 'cortex-perses', 'perses/perses', diff --git a/docs/01-getting-started/07-tooling.md b/docs/01-getting-started/07-tooling.md index 66cc60cdf..e18e75d20 100644 --- a/docs/01-getting-started/07-tooling.md +++ b/docs/01-getting-started/07-tooling.md @@ -200,10 +200,10 @@ Output of pipeline : host-a, host-b Final output : host-a, host-b ``` -## `tools/perses` and `tools/plutono` — dashboard definitions +## `tools/perses` — dashboard definitions -These two are **not** runnable Go programs. `tools/perses` holds Perses dashboard definitions (JSON) and -`tools/plutono` is a Grafana-fork container image used to render them. They are covered in +This is **not** a runnable Go program. `tools/perses` holds Perses dashboard definitions (JSON) rendered by a +Perses instance. They are covered in [The infrastructure dashboard](../04-knowledge-database/05-infrastructure-dashboard.md). These utilities sit beside Cortex rather than inside it: none is shipped in the Helm charts, and each diff --git a/docs/04-knowledge-database/05-infrastructure-dashboard.md b/docs/04-knowledge-database/05-infrastructure-dashboard.md index 66679bf7e..3ee74dc31 100644 --- a/docs/04-knowledge-database/05-infrastructure-dashboard.md +++ b/docs/04-knowledge-database/05-infrastructure-dashboard.md @@ -35,16 +35,15 @@ they need no special plumbing to reach a dashboard. The dashboard definitions are development/operations tooling, deliberately kept out of the deployable charts: - **Perses** — `tools/perses/dashboards/`, including `cortex-compute-kvm-overview.json` (the compute KVM - overview) and `project.json`. -- **Plutono** — `tools/plutono/provisioning/dashboards/`, including `cortex-placement-shim-status.json` - (the [shim](../03-reservations-and-inventory/05-placement-api-shim.md) status board), `cortex-status.json`, - `cortex.json`, and a `compute/` subtree (`kvm-overview.json`, `kvm-details.json`, `vmware-overview.json`, - `vmware-details.json`, `flavors.json`, `global.json`). + overview), `cortex-placement-shim-status.json` (the + [shim](../03-reservations-and-inventory/05-placement-api-shim.md) status board), `cortex-status.json`, + the compute VMware boards (`cortex-compute-vmware-overview.json`, `cortex-compute-vmware-details.json`), + and `project.json`. > [!NOTE] > There are no dashboard JSON files under `helm/`. The only `dashboard:` strings in the charts are > alert-rule annotations pointing at dashboards by name — the definitions themselves ship in `tools/`. To -> use one, import it into your own Perses or Plutono instance; Cortex does not deploy a dashboard server for +> use one, import it into your own Perses instance; Cortex does not deploy a dashboard server for > you. This page is the visual read-out of the whole [knowledge flow](01-knowledge-flow-overview.md): datasources diff --git a/docs/04-knowledge-database/06-monitoring.md b/docs/04-knowledge-database/06-monitoring.md index 2a3bbed5e..e104f28e5 100644 --- a/docs/04-knowledge-database/06-monitoring.md +++ b/docs/04-knowledge-database/06-monitoring.md @@ -86,7 +86,6 @@ Expected — the `PrometheusRule` containing the `cortex-nova-alerts` group. Dashboards are not part of the Helm charts. Import them from the repository: - Perses: `tools/perses/dashboards/` -- Plutono/Grafana: `tools/plutono/provisioning/dashboards/` These include a compute KVM overview and a placement-shim status dashboard, and are covered in [The infrastructure dashboard](05-infrastructure-dashboard.md). diff --git a/helm/bundles/cortex-cinder/templates/alerts.yaml b/helm/bundles/cortex-cinder/templates/alerts.yaml index c2c82a258..ecd7bd6bd 100644 --- a/helm/bundles/cortex-cinder/templates/alerts.yaml +++ b/helm/bundles/cortex-cinder/templates/alerts.yaml @@ -24,12 +24,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cortex Scheduling for Cinder is down" description: > The Cortex scheduling service is down. Scheduling requests from Cinder will @@ -43,12 +45,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cortex Knowledge for Cinder is down" description: > The Cortex Knowledge service is down. This is no immediate problem, @@ -60,11 +64,13 @@ spec: for: 5m labels: context: api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cinder Scheduler HTTP request 400 errors too high" description: > Cinder Scheduler is responding to placement requests with HTTP 4xx @@ -77,11 +83,13 @@ spec: for: 5m labels: context: api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cinder Scheduler HTTP request 500 errors too high" description: > Cinder Scheduler is responding to placement requests with HTTP 5xx errors. @@ -106,12 +114,14 @@ spec: for: 5m labels: context: memory - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/deployment annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` uses too much memory" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is using more than {{ mulf .Values.alerts.thresholds.highMemoryFraction 100 | int }}% of its configured @@ -132,12 +142,14 @@ spec: for: 5m labels: context: cpu - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/deployment annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` uses too much CPU" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is using more than {{ mulf .Values.alerts.thresholds.highCPUFraction 100 | int }}% of its configured @@ -150,11 +162,13 @@ spec: for: 5m labels: context: db - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` is trying to connect to the database too often" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is trying to connect to the database too often. This may happen @@ -165,11 +179,13 @@ spec: for: 5m labels: context: syncstatus - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` Sync not successful" description: > `{{ "{{" }} $labels.component {{ "}}" }}` experienced an issue syncing data from the datasource `{{ "{{" }} $labels.datasource {{ "}}" }}`. This may @@ -184,11 +200,13 @@ spec: for: 60m labels: context: syncobjects - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` is not syncing any new data from `{{ "{{" }} $labels.datasource {{ "}}" }}`" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is not syncing any objects from the datasource `{{ "{{" }} $labels.datasource {{ "}}" }}`. This may happen @@ -203,11 +221,13 @@ spec: for: 60m labels: context: datasources - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the datasource @@ -219,11 +239,13 @@ spec: for: 60m labels: context: knowledge - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Knowledge `{{ "{{" }} $labels.knowledge {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the knowledge @@ -235,11 +257,13 @@ spec: for: 5m labels: context: decisions - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Some decisions are in error state for operator `{{ "{{" }} $labels.operator {{ "}}" }}`" description: > The cortex scheduling pipeline generated decisions that are in error state. @@ -252,11 +276,13 @@ spec: for: 5m labels: context: decisions - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Too many decisions are in waiting state for operator `{{ "{{" }} $labels.operator {{ "}}" }}`" description: > The cortex scheduling pipeline has a high number of decisions for which @@ -272,11 +298,13 @@ spec: for: 60m labels: context: kpis - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "KPI `{{ "{{" }} $labels.kpi {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the KPI @@ -288,11 +316,13 @@ spec: for: 5m labels: context: pipelines - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Pipeline `{{ "{{" }} $labels.pipeline {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the pipeline diff --git a/helm/bundles/cortex-cinder/values.yaml b/helm/bundles/cortex-cinder/values.yaml index 863483a2b..ef471d343 100644 --- a/helm/bundles/cortex-cinder/values.yaml +++ b/helm/bundles/cortex-cinder/values.yaml @@ -17,6 +17,13 @@ owner-info: alerts: enabled: true prometheus: openstack + # Base URL (no trailing slash) for Perses dashboard links emitted as the + # `persesDashboard` annotation on each alert. The per-alert dashboard slug is + # appended to it. The value is templateable with Prometheus label expressions, + # e.g. a region-specific host: + # https://perses.{{ $labels.region }}.example.com/projects/observability/dashboards + # Left empty by default so no persesDashboard annotation is emitted. + persesDashboardBaseURL: "" thresholds: # Fraction of each pod's configured container memory limit above which # CortexCinderHighMemoryUsage fires. The alert joins process_resident_memory_bytes diff --git a/helm/bundles/cortex-manila/templates/alerts.yaml b/helm/bundles/cortex-manila/templates/alerts.yaml index 4f9aa8313..234dc0a5c 100644 --- a/helm/bundles/cortex-manila/templates/alerts.yaml +++ b/helm/bundles/cortex-manila/templates/alerts.yaml @@ -24,12 +24,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cortex Scheduling for Manila is down" description: > The Cortex scheduling service is down. Scheduling requests from Manila will @@ -43,12 +45,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cortex Knowledge for Manila is down" description: > The Cortex Knowledge service is down. This is no immediate problem, @@ -60,12 +64,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/apierrors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Manila Scheduler HTTP request 400 errors too high" description: > Manila Scheduler is responding to placement requests with HTTP 4xx @@ -78,12 +84,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/apierrors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Manila Scheduler HTTP request 500 errors too high" description: > Manila Scheduler is responding to placement requests with HTTP 5xx errors. @@ -108,12 +116,14 @@ spec: for: 5m labels: context: memory - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/deployment annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` uses too much memory" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is using more than {{ mulf .Values.alerts.thresholds.highMemoryFraction 100 | int }}% of its configured @@ -134,12 +144,14 @@ spec: for: 5m labels: context: cpu - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/deployment annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` uses too much CPU" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is using more than {{ mulf .Values.alerts.thresholds.highCPUFraction 100 | int }}% of its configured @@ -152,12 +164,14 @@ spec: for: 5m labels: context: db - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/database annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` is trying to connect to the database too often" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is trying to connect to the database too often. This may happen @@ -168,12 +182,14 @@ spec: for: 5m labels: context: syncstatus - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` Sync not successful" description: > `{{ "{{" }} $labels.component {{ "}}" }}` experienced an issue syncing data from the datasource `{{ "{{" }} $labels.datasource {{ "}}" }}`. This may @@ -188,12 +204,14 @@ spec: for: 60m labels: context: syncobjects - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` is not syncing any new data from `{{ "{{" }} $labels.datasource {{ "}}" }}`" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is not syncing any objects from the datasource `{{ "{{" }} $labels.datasource {{ "}}" }}`. This may happen @@ -208,12 +226,14 @@ spec: for: 60m labels: context: datasources - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the datasource @@ -225,12 +245,14 @@ spec: for: 60m labels: context: knowledge - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Knowledge `{{ "{{" }} $labels.knowledge {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the knowledge @@ -243,12 +265,14 @@ spec: for: 60m labels: context: kpis - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "KPI `{{ "{{" }} $labels.kpi {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the KPI @@ -260,12 +284,14 @@ spec: for: 5m labels: context: kpis - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Pipeline `{{ "{{" }} $labels.pipeline {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the pipeline diff --git a/helm/bundles/cortex-manila/values.yaml b/helm/bundles/cortex-manila/values.yaml index 9647c1de7..993fcc9ab 100644 --- a/helm/bundles/cortex-manila/values.yaml +++ b/helm/bundles/cortex-manila/values.yaml @@ -17,6 +17,13 @@ owner-info: alerts: enabled: true prometheus: openstack + # Base URL (no trailing slash) for Perses dashboard links emitted as the + # `persesDashboard` annotation on each alert. The per-alert dashboard slug is + # appended to it. The value is templateable with Prometheus label expressions, + # e.g. a region-specific host: + # https://perses.{{ $labels.region }}.example.com/projects/observability/dashboards + # Left empty by default so no persesDashboard annotation is emitted. + persesDashboardBaseURL: "" thresholds: # Fraction of each pod's configured container memory limit above which # CortexManilaHighMemoryUsage fires. The alert joins process_resident_memory_bytes diff --git a/helm/bundles/cortex-nova/templates/alerts.yaml b/helm/bundles/cortex-nova/templates/alerts.yaml index e5d802de2..994bd8b92 100644 --- a/helm/bundles/cortex-nova/templates/alerts.yaml +++ b/helm/bundles/cortex-nova/templates/alerts.yaml @@ -24,12 +24,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: {{ if and .Values.kvm.enabled .Values.kvm.criticalAlerts }}critical{{ else }}warning{{ end }} support_group: workload-management playbook: docs/support/playbook/cortex/alerts/down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cortex Scheduling for Nova is down" description: > The Cortex scheduling service is down. Scheduling requests from Nova will @@ -44,12 +46,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cortex Knowledge for Nova is down" description: > The Cortex Knowledge service is down. This is no immediate problem, @@ -61,11 +65,13 @@ spec: for: 5m labels: context: descheduler - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Descheduler pipeline is erroring." description: > The Cortex descheduler pipeline is encountering errors during its execution. @@ -77,12 +83,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Nova Scheduler HTTP request 400 errors too high" description: > Nova Scheduler is responding to placement requests with HTTP 4xx @@ -95,12 +103,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Nova Scheduler HTTP request 500 errors too high" description: > Nova Scheduler is responding to placement requests with HTTP 5xx errors. @@ -125,12 +135,14 @@ spec: for: 5m labels: context: memory - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/deployment annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` uses too much memory" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is using more than {{ mulf .Values.alerts.thresholds.highMemoryFraction 100 | int }}% of its configured @@ -151,12 +163,14 @@ spec: for: 5m labels: context: cpu - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/deployment annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` uses too much CPU" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is using more than {{ mulf .Values.alerts.thresholds.highCPUFraction 100 | int }}% of its configured @@ -169,12 +183,14 @@ spec: for: 5m labels: context: db - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/database annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` is trying to connect to the database too often" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is trying to connect to the database too often. This may happen @@ -185,12 +201,14 @@ spec: for: 5m labels: context: syncstatus - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` Sync not successful" description: > `{{ "{{" }} $labels.component {{ "}}" }}` experienced an issue syncing data from the datasource `{{ "{{" }} $labels.datasource {{ "}}" }}`. This may @@ -205,12 +223,14 @@ spec: for: 60m labels: context: syncobjects - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "`{{ "{{" }} $labels.component {{ "}}" }}` is not syncing any new data from `{{ "{{" }} $labels.datasource {{ "}}" }}`" description: > `{{ "{{" }} $labels.component {{ "}}" }}` is not syncing any objects from the datasource `{{ "{{" }} $labels.datasource {{ "}}" }}`. This may happen @@ -225,12 +245,14 @@ spec: for: 60m labels: context: datasources - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the datasource @@ -242,12 +264,14 @@ spec: for: 60m labels: context: knowledge - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Knowledge `{{ "{{" }} $labels.knowledge {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the knowledge @@ -259,11 +283,13 @@ spec: for: 5m labels: context: decisions - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Some decisions are in error state for operator `{{ "{{" }} $labels.operator {{ "}}" }}`" description: > The cortex scheduling pipeline generated decisions that are in error state. @@ -276,11 +302,13 @@ spec: for: 5m labels: context: decisions - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Too many decisions are in waiting state for operator `{{ "{{" }} $labels.operator {{ "}}" }}`" description: > The cortex scheduling pipeline has a high number of decisions for which @@ -296,12 +324,14 @@ spec: for: 60m labels: context: kpis - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "KPI `{{ "{{" }} $labels.kpi {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the KPI @@ -313,12 +343,14 @@ spec: for: 5m labels: context: pipelines - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Pipeline `{{ "{{" }} $labels.pipeline {{ "}}" }}` is in `{{ "{{" }} $labels.state {{ "}}" }}` state" description: > This may indicate issues with the pipeline @@ -344,12 +376,14 @@ spec: for: 2h labels: context: reservations - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/unready annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "In-flight reservation backlog with reason=InstanceNotFound keeps growing" description: > The number of in-flight reservations that have not yet observed @@ -368,12 +402,14 @@ spec: for: 15m labels: context: scheduling - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/scheduling annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Nova scheduling frequently cannot determine the hypervisor type from image properties" description: > The `filter_image_properties` step in pipeline `{{ "{{" }} $labels.pipeline {{ "}}" }}` @@ -391,12 +427,14 @@ spec: for: 15m labels: context: scheduling - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/scheduling annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Nova capabilities filter frequently encounters unknown hypervisor types" description: > The `filter_capabilities` step in pipeline `{{ "{{" }} $labels.pipeline {{ "}}" }}` @@ -411,12 +449,14 @@ spec: for: 5m labels: context: scheduling - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/scheduling annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Nova scheduling cannot find valid KVM hosts" description: > Cortex is seeing new faulty vms in `{{ "{{" }} $labels.az {{ "}}" }}` where Nova scheduling @@ -430,12 +470,14 @@ spec: for: 60m labels: context: datasources - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "New datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` has not reconciled" description: > A new datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` has been added but has not @@ -449,12 +491,14 @@ spec: for: 30m labels: context: datasources - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Existing datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` is lagging behind" description: > An existing datasource `{{ "{{" }} $labels.datasource {{ "}}" }}` has been queued for @@ -469,12 +513,14 @@ spec: for: 15m labels: context: controller-errors - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/reconciles annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Controller reconcile error rate >10%" description: > More than 10% of controller reconciles are resulting in errors. This may @@ -489,12 +535,14 @@ spec: for: 15m labels: context: controller-duration - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/reconciles annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Controller reconciliation takes longer than ({{ "{{" }} $value | humanizeDuration {{ "}}" }})" description: "Reconcile duration higher than 10m while reconciling {{ "{{" }} $labels.controller {{ "}}" }}" @@ -504,12 +552,14 @@ spec: for: 60m labels: context: controller-workqueue - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/datasources annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Controller {{ "{{" }} $labels.name {{ "}}" }}'s backlog is not being drained." description: > The workqueue for controller {{ "{{" }} $labels.name {{ "}}" }} has a backlog that is @@ -523,11 +573,13 @@ spec: for: 15m labels: context: controller-webhook - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Controller webhook {{ "{{" }} $labels.webhook {{ "}}" }} latency is high" description: > The latency for webhook {{ "{{" }} $labels.webhook {{ "}}" }} is higher than expected (p90 > 200ms). @@ -541,11 +593,13 @@ spec: for: 15m labels: context: controller-webhook - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Controller webhook {{ "{{" }} $labels.webhook {{ "}}" }} is experiencing errors" description: > The webhook {{ "{{" }} $labels.webhook {{ "}}" }} has experienced errors in the last 5 minutes. @@ -560,12 +614,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource info API is unavailable" description: > The committed resource info API (Limes LIQUID integration) has been returning @@ -580,12 +636,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource change API HTTP 5xx errors" description: > The committed resource change API (Limes LIQUID integration) is returning @@ -603,12 +661,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed resource change API returning internal errors" description: > The committed resource change API encountered internal errors processing commitment @@ -626,12 +686,14 @@ spec: for: 30m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-performance annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource rejection rate too high ({{ "{{" }} $value | humanizePercentage {{ "}}" }})" description: > More than 30% of commitment changes have been rejected over the last hour. @@ -647,11 +709,13 @@ spec: for: 30m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: info support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed resource change API receiving bad requests" description: > The committed resource change API has been receiving requests with invalid parameters @@ -664,12 +728,14 @@ spec: for: 1m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-performance annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource change API timeout detected" description: > A commitment change request timed out after the configured deadline. @@ -683,12 +749,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-performance annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource change API p95 latency >= 10s" description: > The committed resource change API p95 latency has reached or exceeded 10 seconds, @@ -702,12 +770,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-capacity annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource capacity API HTTP 5xx errors" description: > The committed resource capacity API (Limes LIQUID integration) is returning @@ -721,12 +791,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-capacity annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource capacity for {{ "{{" }} $labels.resource {{ "}}" }} in {{ "{{" }} $labels.az {{ "}}" }} dropped to zero" description: > The reported capacity for committed resource {{ "{{" }} $labels.resource {{ "}}" }} in @@ -740,12 +812,14 @@ spec: for: 10m labels: context: committed-resource-capacity - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-capacity annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "FlavorGroupCapacity for {{ "{{" }} $labels.flavor_group {{ "}}" }} in {{ "{{" }} $labels.az {{ "}}" }} has been not-ready for >10 minutes" description: > The FlavorGroupCapacity CRD for flavor group {{ "{{" }} $labels.flavor_group {{ "}}" }} @@ -763,12 +837,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource usage API HTTP 5xx errors" description: > The committed resource usage API (Limes LIQUID integration) is returning @@ -782,12 +858,14 @@ spec: for: 5m labels: context: committed-resource-api - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Committed Resource quota API HTTP 5xx errors" description: > The committed resource quota API (Limes LIQUID integration) is returning @@ -800,11 +878,13 @@ spec: for: 5m labels: context: multicluster - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cross-cluster name conflicts detected for `{{ "{{" }} $labels.gvk {{ "}}" }}`" description: > The multicluster client detected the same resource name for @@ -827,11 +907,13 @@ spec: for: 5m labels: context: multicluster - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Cache overlay for `{{ "{{" }} $labels.gvk {{ "}}" }}` is not draining" description: > The in-process cache overlay for `{{ "{{" }} $labels.gvk {{ "}}" }}` @@ -865,12 +947,14 @@ spec: for: 15m labels: context: committed-resource-capacity - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-capacity annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Host {{ "{{" }} $labels.compute_host {{ "}}" }} reservation blocks exceed capacity for {{ "{{" }} $labels.resource {{ "}}" }}" description: > The total of running VM allocations and reservation blocks (committed resource + @@ -884,12 +968,14 @@ spec: for: 15m labels: context: committed-resource-capacity - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-capacity annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Host {{ "{{" }} $labels.host {{ "}}" }} CR slots exceed effective capacity for {{ "{{" }} $labels.resource {{ "}}" }}" description: > Committed resource reservation slots on host {{ "{{" }} $labels.host {{ "}}" }} exceed @@ -900,12 +986,14 @@ spec: expr: sum by (az) (increase(cortex_committed_resource_host_oversubscribed_evicted_reservations_total{service="cortex-nova-metrics"}[1h])) > 10 labels: context: committed-resource-capacity - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/committed-resource-capacity annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "High CR slot eviction rate in AZ {{ "{{" }} $labels.az {{ "}}" }}" description: > More than 10 committed resource reservation slots were evicted due to oversubscription @@ -923,12 +1011,14 @@ spec: expr: max(min_over_time(cortex_failover_reconciliation_vms_missing_failover{service="cortex-nova-metrics"}[{{ .Values.alerts.thresholds.failoverMissingFor }}])) > 0 labels: context: failover-reservations - dashboard: cortex-status-dashboard/cortex-status-dashboard service: cortex severity: warning support_group: workload-management playbook: "" annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-status-dashboard" +{{- end }} summary: "Failover reservations missing for VMs" description: > {{ "{{" }} $value | humanize {{ "}}" }} VM(s) never regained their required failover diff --git a/helm/bundles/cortex-nova/values.yaml b/helm/bundles/cortex-nova/values.yaml index 39478060a..ca217ea2a 100644 --- a/helm/bundles/cortex-nova/values.yaml +++ b/helm/bundles/cortex-nova/values.yaml @@ -17,6 +17,13 @@ owner-info: alerts: enabled: true prometheus: openstack + # Base URL (no trailing slash) for Perses dashboard links emitted as the + # `persesDashboard` annotation on each alert. The per-alert dashboard slug is + # appended to it. The value is templateable with Prometheus label expressions, + # e.g. a region-specific host: + # https://perses.{{ $labels.region }}.example.com/projects/observability/dashboards + # Left empty by default so no persesDashboard annotation is emitted. + persesDashboardBaseURL: "" thresholds: # Fraction of each pod's configured container memory limit above which # CortexNovaHighMemoryUsage fires. The alert joins process_resident_memory_bytes diff --git a/helm/bundles/cortex-placement-shim/templates/alerts.yaml b/helm/bundles/cortex-placement-shim/templates/alerts.yaml index c19e32b03..f4ad4c8c6 100644 --- a/helm/bundles/cortex-placement-shim/templates/alerts.yaml +++ b/helm/bundles/cortex-placement-shim/templates/alerts.yaml @@ -21,12 +21,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Cortex Placement Shim is down" description: > The Cortex Placement Shim is down. Placement API requests that are @@ -47,12 +49,14 @@ spec: for: 5m labels: context: liveness - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-down annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Cortex Placement Shim controller-manager is not running" description: > The Cortex Placement Shim controller-manager has been up with a synced @@ -71,12 +75,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim downstream HTTP 4xx errors too high" description: > The Placement Shim is responding to client requests with HTTP 4xx @@ -90,12 +96,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim downstream HTTP 5xx errors too high" description: > The Placement Shim is responding to client requests with HTTP 5xx @@ -109,12 +117,14 @@ spec: for: 5m labels: context: upstream - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim upstream HTTP 5xx errors too high" description: > The upstream Placement API is returning 5xx errors to the shim. @@ -130,12 +140,14 @@ spec: for: 5m labels: context: api - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim downstream latency too high" description: > The Placement Shim downstream request latency (p95) exceeds 10 @@ -151,12 +163,14 @@ spec: for: 5m labels: context: upstream - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-api-errors annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim upstream latency too high" description: > The upstream Placement API response latency (p95) as seen by the @@ -170,12 +184,14 @@ spec: for: 5m labels: context: memory - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-resource-usage annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim uses too much memory" description: > The Placement Shim is using more than 1500 MiB of resident memory @@ -188,12 +204,14 @@ spec: for: 5m labels: context: cpu - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-resource-usage annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Placement Shim uses too much CPU" description: > The Placement Shim is consuming more than 40% of a single CPU core @@ -208,12 +226,14 @@ spec: for: 5m labels: context: multicluster - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-multicluster annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Cross-cluster name conflicts detected for `{{ "{{" }} $labels.gvk {{ "}}" }}`" description: > The multicluster client detected the same resource name for @@ -234,12 +254,14 @@ spec: for: 5m labels: context: multicluster - dashboard: cortex-placement-shim-status-dashboard/cortex-placement-shim-status-dashboard service: cortex severity: warning support_group: workload-management playbook: docs/support/playbook/cortex/alerts/shim-multicluster annotations: +{{- if .Values.alerts.persesDashboardBaseURL }} + persesDashboard: "{{ .Values.alerts.persesDashboardBaseURL }}/cortex-placement-shim-status-dashboard" +{{- end }} summary: "Remote apiserver `{{ "{{" }} $labels.host {{ "}}" }}` is unreachable" description: > The multicluster client cannot reach the remote apiserver at diff --git a/helm/bundles/cortex-placement-shim/values.yaml b/helm/bundles/cortex-placement-shim/values.yaml index 858c3370a..df1db661f 100644 --- a/helm/bundles/cortex-placement-shim/values.yaml +++ b/helm/bundles/cortex-placement-shim/values.yaml @@ -17,6 +17,13 @@ owner-info: alerts: enabled: true prometheus: openstack + # Base URL (no trailing slash) for Perses dashboard links emitted as the + # `persesDashboard` annotation on each alert. The per-alert dashboard slug is + # appended to it. The value is templateable with Prometheus label expressions, + # e.g. a region-specific host: + # https://perses.{{ $labels.region }}.example.com/projects/observability/dashboards + # Left empty by default so no persesDashboard annotation is emitted. + persesDashboardBaseURL: "" cortex-shim: namePrefix: cortex-placement diff --git a/tools/perses/dashboards/cortex-compute-kvm-overview.json b/tools/perses/dashboards/cortex-compute-kvm-overview.json index 073c98cce..28d109f1e 100644 --- a/tools/perses/dashboards/cortex-compute-kvm-overview.json +++ b/tools/perses/dashboards/cortex-compute-kvm-overview.json @@ -1,10 +1,10 @@ { "kind": "Dashboard", "metadata": { - "name": "cortex_computer_kvm_-_overview", - "createdAt": "2026-03-31T07:59:22.596660897Z", - "updatedAt": "2026-04-01T09:45:18.10325137Z", - "version": 19, + "name": "cortex_compute_kvm_-_overview", + "createdAt": "2026-08-07T12:22:15.443047024Z", + "updatedAt": "2026-10-12T10:15:35.00421019Z", + "version": 6, "tags": [ "compute", "infrastructure", @@ -14,21 +14,21 @@ }, "spec": { "display": { - "name": "Cortex Computer KVM - Overview" + "name": "Cortex Compute KVM - Overview" }, "panels": { "1c635e5426614893a17cdb63fcf68abd": { "kind": "Panel", "spec": { "display": { - "name": "CPU" + "name": "CPU (Including Overcommit)" }, "plugin": { "kind": "TimeSeriesChart", "spec": { "legend": { "mode": "table", - "position": "right", + "position": "bottom", "size": "small", "values": [ "last" @@ -38,7 +38,7 @@ { "areaOpacity": 1, "colorMode": "fixed-single", - "colorValue": "#ff0000", + "colorValue": "#EE6C6C", "queryIndex": 0 }, { @@ -50,13 +50,13 @@ { "areaOpacity": 1, "colorMode": "fixed-single", - "colorValue": "#006eff", + "colorValue": "#004cff", "queryIndex": 2 }, { - "areaOpacity": 1, "colorMode": "fixed-single", - "colorValue": "#00ff73", + "colorValue": "#59CC8D", + "lineStyle": "dotted", "queryIndex": 3 } ], @@ -87,7 +87,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Workload" } } @@ -99,7 +99,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"failover\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"failover\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Failover" } } @@ -111,7 +111,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"reserved\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"reserved\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Reserved" } } @@ -123,8 +123,83 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"payg\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", - "seriesNameFormat": "Pay As You Go" + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"available\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "219f8a051cf244cbbfc35862b894c100": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM per Node" + }, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "shortValues": true, + "unit": "bytes" + }, + "groupBy": [ + "compute_host" + ], + "isStacked": true, + "mode": "value", + "orientation": "vertical", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"failover\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Failover" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"reserved\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Reserved" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"available\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Available" } } } @@ -140,12 +215,13 @@ "kind": "StatChart", "spec": { "calculation": "last-number", + "colorMode": "background_solid", "format": { "unit": "bytes" }, "legendMode": "on", "thresholds": { - "defaultColor": "#ffffff", + "defaultColor": "#a8a8a8", "steps": [] } } @@ -157,7 +233,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Total" } } @@ -200,7 +276,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"payg\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host)) /\nsum(max(cortex_kvm_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"available\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)) /\nsum(max(cortex_kvm_host_capacity_total{resource=\"ram\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Available (%)" } } @@ -209,6 +285,81 @@ ] } }, + "45677dc08c73425cb3ca1422aec50f15": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "columnSettings": [ + { + "header": "Availability Zone", + "name": "az" + }, + { + "header": "Flavor Group", + "name": "flavor_group" + }, + { + "header": "Flavor", + "name": "flavor_name" + }, + { + "header": "Placeable", + "name": "value" + } + ], + "defaultColumnHidden": true, + "density": "standard", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max by (az, flavor_group, flavor_name) (cortex_committed_resource_capacity_vm_slots_placeable{az=~\"$availability_zone\"})" + } + } + } + } + ] + } + }, + "5d78ed91ffc341998c0ec76cf5667f6c": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(cortex_kvm_project_instances{availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"})", + "seriesNameFormat": "Total VMs" + } + } + } + } + ] + } + }, "637a56a9a10f4a01adc8fb093372e2d9": { "kind": "Panel", "spec": { @@ -220,7 +371,7 @@ "spec": { "legend": { "mode": "table", - "position": "right", + "position": "bottom", "size": "small", "values": [ "last" @@ -230,7 +381,7 @@ { "areaOpacity": 1, "colorMode": "fixed-single", - "colorValue": "#ff0000", + "colorValue": "#EE6C6C", "queryIndex": 0 }, { @@ -242,13 +393,13 @@ { "areaOpacity": 1, "colorMode": "fixed-single", - "colorValue": "#006eff", + "colorValue": "#004cff", "queryIndex": 2 }, { - "areaOpacity": 1, "colorMode": "fixed-single", - "colorValue": "#00ff73", + "colorValue": "#59CC8D", + "lineStyle": "dotted", "queryIndex": 3 } ], @@ -278,7 +429,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Workload" } } @@ -290,7 +441,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"failover\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"failover\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Failover" } } @@ -302,7 +453,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"reserved\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"reserved\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Reserved" } } @@ -314,8 +465,8 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"payg\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", - "seriesNameFormat": "Pay As You Go" + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"ram\", type=\"available\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", + "seriesNameFormat": "Available" } } } @@ -331,12 +482,13 @@ "kind": "StatChart", "spec": { "calculation": "last-number", + "colorMode": "background_solid", "format": { "unit": "decimal" }, "legendMode": "on", "thresholds": { - "defaultColor": "#ffffff" + "defaultColor": "#a8a8a8" } } }, @@ -347,7 +499,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Total" } } @@ -360,17 +512,20 @@ "kind": "Panel", "spec": { "display": { - "name": "Number of Hosts" + "name": "Selected Nodes available over time" }, "plugin": { - "kind": "StatChart", + "kind": "TimeSeriesChart", "spec": { - "calculation": "last-number", - "format": { - "unit": "decimal" - }, - "legendMode": "auto", - "sparkline": {} + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } } }, "queries": [ @@ -380,7 +535,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "count(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "count(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Number of Hosts" } } @@ -401,6 +556,81 @@ } } }, + "b79f75c11fdc400eb90fdc153abd72ed": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU (Including Overcommit) per Node" + }, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "shortValues": true, + "unit": "decimal" + }, + "groupBy": [ + "compute_host" + ], + "isStacked": true, + "mode": "value", + "orientation": "vertical", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"failover\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Failover" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"reserved\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Reserved" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"available\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, "c61f619c77104964aa28667b95cbefb1": { "kind": "Panel", "spec": { @@ -435,7 +665,7 @@ "plugin": { "kind": "PrometheusTimeSeriesQuery", "spec": { - "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"payg\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host)) /\nsum(max(cortex_kvm_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}) by (compute_host))", + "query": "sum(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"available\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host)) /\nsum(max(cortex_kvm_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", "seriesNameFormat": "Available (%)" } } @@ -444,6 +674,58 @@ ] } }, + "ccf9476bdfc24a18a976b7f429dd69b4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Number of VMs (some filters can not be applied atm)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "last-number" + ] + }, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by(domain_name, domain_id)(max by (compute_host, domain_id, domain_name, project_id) (cortex_kvm_project_instances{availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}))", + "seriesNameFormat": "{{domain_name}}" + } + } + } + } + ] + } + }, "ec913f5da9a24a468f0f147d112de6bb": { "kind": "Panel", "spec": { @@ -455,6 +737,225 @@ } } } + }, + "8b6cd566a08141bd9c83d9e336752ad9": { + "kind": "Panel", + "spec": { + "display": { + "name": "Number of VMs (some filters can not be applied atm)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "last-number" + ] + }, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by(domain_name, domain_id)(max by (compute_host, domain_id, domain_name, project_id) (cortex_kvm_project_instances{availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\"}))", + "seriesNameFormat": "{{domain_name}}" + } + } + } + } + ] + } + }, + "bc51a08e10a04375833252f119c7c1f1": { + "kind": "Panel", + "spec": { + "display": { + "name": "" + }, + "plugin": { + "kind": "Table", + "spec": { + "density": "standard", + "enableFiltering": true, + "columnSettings": [ + { + "name": "compute_host", + "header": "Host" + }, + { + "name": "status", + "header": "Status", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "Ready" + } + }, + "text": "Ready", + "prefix": "🟢 " + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "Terminating" + } + }, + "text": "Terminating", + "prefix": "🛑 " + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "Maintenance" + } + }, + "prefix": "🚧 ", + "text": "Maintenance" + } + ] + }, + { + "name": "availability_zone", + "header": "Availability Zone" + }, + { + "name": "building_block", + "header": "Building Block" + }, + { + "name": "cpu_architecture", + "header": "CPU Arch." + }, + { + "name": "workload_type", + "header": "Workload Type" + }, + { + "name": "decommissioned", + "header": "Decommissioned", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "true" + } + }, + "text": "✅" + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "false" + } + }, + "text": "❌" + } + ] + }, + { + "name": "external_customer", + "header": "External Customer", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "true" + } + }, + "text": "✅" + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "false" + } + }, + "text": "❌" + } + ] + } + ], + "defaultColumnHidden": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "cortex_kvm_host_capacity_total{resource=\"cpu\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}" + } + } + } + } + ] + } + }, + "c5a2806556054e15b0acace0c7bf57c2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Selected Nodes" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "auto" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(max(cortex_kvm_host_capacity_usage{resource=\"cpu\", type=\"utilized\", availability_zone=~\"$availability_zone\", workload_type=~\"$workload_type\", cpu_architecture=~\"$cpu_architecture\", building_block=~\"$building_block\", compute_host=~\"$compute_host\", enabled=~\"$enabled\", maintenance=~\"$maintenance\", decommissioned=~\"$decommissioned\", external_customer=~\"$external_customer\", status=~\"$status\"}) by (compute_host))", + "seriesNameFormat": "Number of Hosts" + } + } + } + } + ] + } } }, "layouts": [ @@ -469,85 +970,197 @@ }, "items": [ { - "x": 2, + "x": 0, "y": 0, - "width": 11, + "width": 12, "height": 2, "content": { "$ref": "#/spec/panels/9a25fb3bcf30475b8b118e4d54abeeb2" } }, { - "x": 13, + "x": 12, "y": 0, - "width": 11, + "width": 12, "height": 2, "content": { "$ref": "#/spec/panels/ec913f5da9a24a468f0f147d112de6bb" } }, { - "x": 11, + "x": 0, "y": 2, - "width": 2, - "height": 6, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/1c635e5426614893a17cdb63fcf68abd" + } + }, + { + "x": 0, + "y": 12, + "width": 6, + "height": 3, "content": { "$ref": "#/spec/panels/7cd4fe639659454e935a59412c679758" } }, { - "x": 22, - "y": 2, - "width": 2, - "height": 6, + "x": 6, + "y": 12, + "width": 6, + "height": 3, "content": { - "$ref": "#/spec/panels/21facb9aac07491caf86f0b2d5cc8e88" + "$ref": "#/spec/panels/c61f619c77104964aa28667b95cbefb1" } }, { - "x": 2, + "x": 12, "y": 2, - "width": 9, - "height": 12, + "width": 12, + "height": 10, "content": { - "$ref": "#/spec/panels/1c635e5426614893a17cdb63fcf68abd" + "$ref": "#/spec/panels/637a56a9a10f4a01adc8fb093372e2d9" } }, { - "x": 11, - "y": 8, - "width": 2, - "height": 6, + "x": 12, + "y": 12, + "width": 6, + "height": 3, "content": { - "$ref": "#/spec/panels/c61f619c77104964aa28667b95cbefb1" + "$ref": "#/spec/panels/21facb9aac07491caf86f0b2d5cc8e88" } }, { - "x": 13, - "y": 2, - "width": 9, - "height": 12, + "x": 18, + "y": 12, + "width": 6, + "height": 3, "content": { - "$ref": "#/spec/panels/637a56a9a10f4a01adc8fb093372e2d9" + "$ref": "#/spec/panels/28db47ce8b2e4d24b9952d389a2e2b7d" } }, { - "x": 22, - "y": 8, - "width": 2, - "height": 6, + "x": 12, + "y": 15, + "width": 12, + "height": 8, "content": { - "$ref": "#/spec/panels/28db47ce8b2e4d24b9952d389a2e2b7d" + "$ref": "#/spec/panels/219f8a051cf244cbbfc35862b894c100" } }, + { + "x": 0, + "y": 15, + "width": 12, + "height": 8, + "content": { + "$ref": "#/spec/panels/b79f75c11fdc400eb90fdc153abd72ed" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Workload per Domain", + "collapse": { + "open": false + } + }, + "items": [ { "x": 0, "y": 0, - "width": 2, + "width": 20, "height": 14, + "content": { + "$ref": "#/spec/panels/ccf9476bdfc24a18a976b7f429dd69b4" + } + }, + { + "x": 20, + "y": 0, + "width": 4, + "height": 14, + "content": { + "$ref": "#/spec/panels/5d78ed91ffc341998c0ec76cf5667f6c" + } + }, + { + "x": 0, + "y": 14, + "width": 20, + "height": 14, + "content": { + "$ref": "#/spec/panels/8b6cd566a08141bd9c83d9e336752ad9" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Nodes", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 11, + "width": 17, + "height": 9, "content": { "$ref": "#/spec/panels/86ea3898e16b4dd6af2476179c18ebae" } + }, + { + "x": 17, + "y": 11, + "width": 7, + "height": 9, + "content": { + "$ref": "#/spec/panels/c5a2806556054e15b0acace0c7bf57c2" + } + }, + { + "x": 0, + "y": 0, + "width": 24, + "height": 11, + "content": { + "$ref": "#/spec/panels/bc51a08e10a04375833252f119c7c1f1" + } + } + ], + "repeatVariable": "" + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Flavor Capacity", + "collapse": { + "open": false + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 24, + "height": 9, + "content": { + "$ref": "#/spec/panels/45677dc08c73425cb3ca1422aec50f15" + } } ] } @@ -640,7 +1253,7 @@ "spec": { "labelName": "building_block", "matchers": [ - "cortex_kvm_host_capacity_total" + "cortex_kvm_host_capacity_total{availability_zone=~\"$availability_zone\"}" ] } }, @@ -663,7 +1276,7 @@ "spec": { "labelName": "compute_host", "matchers": [ - "cortex_kvm_host_capacity_total{building_block=~\"$building_block\"}" + "cortex_kvm_host_capacity_total{building_block=~\"$building_block\",availability_zone=~\"$availability_zone\"}" ] } }, @@ -761,9 +1374,37 @@ }, "name": "external_customer" } + }, + { + "kind": "ListVariable", + "spec": { + "name": "status", + "display": { + "name": "Status", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "customAllValue": ".*", + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "status", + "matchers": [ + "cortex_kvm_host_capacity_total{availability_zone=~\"$availability_zone\"}" + ] + } + } + } } ], - "duration": "6h", - "refreshInterval": "60s" + "annotations": [], + "duration": "7d", + "timezone": "local", + "refreshInterval": "60s", + "datasources": {}, + "links": [] } } \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-compute-vmware-details.json b/tools/perses/dashboards/cortex-compute-vmware-details.json new file mode 100644 index 000000000..74e0305d3 --- /dev/null +++ b/tools/perses/dashboards/cortex-compute-vmware-details.json @@ -0,0 +1,1502 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "cortex_compute_vmware_-_details", + "createdAt": "2026-09-22T07:54:42.713840787Z", + "updatedAt": "2026-10-12T14:58:37.601903427Z", + "version": 29, + "tags": [ + "compute", + "infrastructure", + "vmware" + ], + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Cortex Compute VMware - Details" + }, + "panels": { + "12d337818c5f486fb2e7e6b035902e02": { + "kind": "Panel", + "spec": { + "display": { + "name": "Decommissioned Workload | CPU" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)", + "seriesNameFormat": "General Purpose" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)", + "seriesNameFormat": "HANA | Sapphire Rapids" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)", + "seriesNameFormat": "HANA | Cascade Lake" + } + } + } + } + ] + } + }, + "1c9b9849254545beb9f97c228c024167": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 1, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running disk workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available disk if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\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=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "2fef784622c945de9cbb6c89c9987fa6": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "3110477868c3476a96e30e2c9d1a943d": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "# Important \nSince Cortex can't map the unused commitments to reservations for vmware infrastructure (this is only supported for KVM landscape), we can't map this usage to individual hosts in this dashboard. **There are no commitments** shown in the following section. Also the following section **does not show decommissioned workload** separately. \n\nKeep this in mind when looking at the `available capacity`. Check the `Other Usages` section above.\n\nYou can also check out the VMware Overview Dashboard that is including these numbers." + } + } + } + }, + "50fe00d8d78743f3863e6c675fae56c8": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n )\n )\n /\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "53b42eb14eb640afb6a69782ab3d1b18": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "5ebc3a077b8a4f308ebb73515b780748": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "columnSettings": [ + { + "align": "left", + "enableSorting": true, + "header": "Host", + "name": "compute_host", + "sort": "asc" + }, + { + "header": "Workload Type", + "name": "workload_type" + }, + { + "header": "Host Size", + "name": "physical_host_size" + }, + { + "header": "CPU Arch.", + "name": "cpu_architecture" + }, + { + "align": "center", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "true" + } + }, + "text": "✅" + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "false" + } + }, + "text": "❌" + } + ], + "header": "Enabled", + "name": "enabled" + }, + { + "align": "left", + "header": "Reason", + "name": "disabled_reason" + }, + { + "align": "center", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "false" + } + }, + "text": "❌" + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "true" + } + }, + "text": "✅" + } + ], + "header": "Decommissioned", + "name": "decommissioned" + }, + { + "align": "center", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "false" + } + }, + "text": "❌" + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "true" + } + }, + "text": "✅" + } + ], + "header": "Ext. Customer", + "headerDescription": "Capacity that is exclusive for external Customer", + "name": "external_customer" + }, + { + "align": "center", + "cellSettings": [ + { + "condition": { + "kind": "Value", + "spec": { + "value": "false" + } + }, + "text": "❌" + }, + { + "condition": { + "kind": "Value", + "spec": { + "value": "true" + } + }, + "text": "✅" + } + ], + "header": "📌 Projects", + "headerDescription": "Tells if the host is reserved for projects.", + "name": "pinned_projects" + }, + { + "header": "Available RAM (%)", + "name": "value #2", + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent-decimal" + }, + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "value": 0.3 + } + ] + } + } + } + }, + { + "align": "right", + "format": { + "unit": "bytes" + }, + "header": "Available RAM", + "name": "value #3" + }, + { + "align": "right", + "format": { + "unit": "bytes" + }, + "header": "Total RAM", + "name": "value #1" + } + ], + "defaultColumnHidden": true, + "density": "standard", + "enableFiltering": true, + "transforms": [ + { + "kind": "MergeSeries", + "spec": {} + }, + { + "kind": "JoinByColumnValue", + "spec": { + "columns": [ + "compute_host" + ] + } + } + ] + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n}" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\ncortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n} /\ncortex_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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n}\n)", + "seriesNameFormat": "Available RAM (%)" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n} - cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n}", + "seriesNameFormat": "Available RAM" + } + } + } + } + ] + } + }, + "5f488cc75cc24ec184fafca341163b9f": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "unit": "bytes" + }, + "groupBy": [ + "compute_host" + ], + "isStacked": true, + "mode": "value", + "orientation": "vertical", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max by (compute_host) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)", + "seriesNameFormat": "Usage" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "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=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)\n-\nmax by (compute_host) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "6104efaef8524342820b3b318791700b": { + "kind": "Panel", + "spec": { + "display": { + "name": "Unused Commitments | CPU" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Unused commitments for cpu\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_general_purpose{availability_zone=~\"$availability_zone\", resource=\"cpu\"})) or vector(0)", + "seriesNameFormat": "General Purpose" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"cpu\", cpu_architecture=\"sapphire-rapids\"})) or vector(0)", + "seriesNameFormat": "HANA | Sapphire Rapids" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"cpu\", cpu_architecture=\"cascade-lake\"})) or vector(0)", + "seriesNameFormat": "HANA | Cascade Lake" + } + } + } + } + ] + } + }, + "63e0ede83c64434697d0bad639b76225": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "shortValues": true, + "unit": "decimal" + }, + "groupBy": [ + "compute_host" + ], + "isStacked": true, + "mode": "value", + "orientation": "vertical", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max by (compute_host) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)", + "seriesNameFormat": "Usage" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "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=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)\n-\nmax by (compute_host) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "69842e08641d4b1c8b74f0fcc5bf20ba": { + "kind": "Panel", + "spec": { + "display": { + "name": "Unused Commitments | RAM" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Unused commitments for cpu\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_general_purpose{availability_zone=~\"$availability_zone\", resource=\"ram\"})) or vector(0)", + "seriesNameFormat": "General Purpose" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"ram\", cpu_architecture=\"sapphire-rapids\"})) or vector(0)", + "seriesNameFormat": "HANA | Sapphire Rapids" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"ram\", cpu_architecture=\"cascade-lake\"})) or vector(0)", + "seriesNameFormat": "HANA | Cascade Lake" + } + } + } + } + ] + } + }, + "6a776fb46c554ff68aca141c7b5e9c62": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n )\n )\n /\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "7c5dd01ec1ae43c8b486ab6cb699b569": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\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=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "81c5a9602880496684db13e8aa4a5833": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 1, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running cpu workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available cpus if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "9612b7e3b2344905bd32657fe775cec7": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "unit": "bytes" + }, + "groupBy": [ + "compute_host" + ], + "isStacked": true, + "mode": "value", + "orientation": "vertical", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max by (compute_host) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)\n", + "seriesNameFormat": "Usage" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "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=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)\n-\nmax by (compute_host) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n)\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "a30b83451c044741849d7b45aee52885": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 1, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running ram workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available ram if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "b82117d9e27a415d8b94abb5d0a624d9": { + "kind": "Panel", + "spec": { + "display": { + "name": "Decommissioned Workload | RAM" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)", + "seriesNameFormat": "General Purpose" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)", + "seriesNameFormat": "HANA | Sapphire Rapids" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)", + "seriesNameFormat": "HANA | Cascade Lake" + } + } + } + } + ] + } + }, + "fbcb2d83c1f34e57911a3796c2c3fe3b": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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 pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n )\n )\n /\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\",\n decommissioned=~\"$decommissioned\",\n external_customer=~\"$external_customer\",\n pinned_projects=~\"$pinned_projects\",\n physical_host_size=~\"$physical_host_size\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "Other Usage", + "collapse": { + "open": false + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/6104efaef8524342820b3b318791700b" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/69842e08641d4b1c8b74f0fcc5bf20ba" + } + }, + { + "x": 12, + "y": 7, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/b82117d9e27a415d8b94abb5d0a624d9" + } + }, + { + "x": 0, + "y": 7, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/12d337818c5f486fb2e7e6b035902e02" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Aggregation", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 4, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/81c5a9602880496684db13e8aa4a5833" + } + }, + { + "x": 8, + "y": 4, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/a30b83451c044741849d7b45aee52885" + } + }, + { + "x": 16, + "y": 4, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/1c9b9849254545beb9f97c228c024167" + } + }, + { + "x": 0, + "y": 0, + "width": 24, + "height": 4, + "content": { + "$ref": "#/spec/panels/3110477868c3476a96e30e2c9d1a943d" + } + }, + { + "x": 0, + "y": 14, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/2fef784622c945de9cbb6c89c9987fa6" + } + }, + { + "x": 4, + "y": 14, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/50fe00d8d78743f3863e6c675fae56c8" + } + }, + { + "x": 8, + "y": 14, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/53b42eb14eb640afb6a69782ab3d1b18" + } + }, + { + "x": 16, + "y": 14, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/7c5dd01ec1ae43c8b486ab6cb699b569" + } + }, + { + "x": 12, + "y": 14, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/fbcb2d83c1f34e57911a3796c2c3fe3b" + } + }, + { + "x": 20, + "y": 14, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/6a776fb46c554ff68aca141c7b5e9c62" + } + }, + { + "x": 0, + "y": 17, + "width": 8, + "height": 8, + "content": { + "$ref": "#/spec/panels/63e0ede83c64434697d0bad639b76225" + } + }, + { + "x": 8, + "y": 17, + "width": 8, + "height": 8, + "content": { + "$ref": "#/spec/panels/5f488cc75cc24ec184fafca341163b9f" + } + }, + { + "x": 16, + "y": 17, + "width": 8, + "height": 8, + "content": { + "$ref": "#/spec/panels/9612b7e3b2344905bd32657fe775cec7" + } + }, + { + "x": 0, + "y": 25, + "width": 24, + "height": 30, + "content": { + "$ref": "#/spec/panels/5ebc3a077b8a4f308ebb73515b780748" + } + } + ] + } + } + ], + "variables": [ + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Availability Zone", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "availability_zone", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "availability_zone" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Compute Host", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "compute_host", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "compute_host" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Host Size", + "description": "The size (RAM) of individual hosts inside a building block.", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "numerical-asc", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "physical_host_size", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "physical_host_size" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Workload Type", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "workload_type", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "workload_type" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "CPU Architecture", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "cpu_architecture", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "cpu_architecture" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Enabled", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": false, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "enabled", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "enabled" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "External Customer", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": false, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "external_customer", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "external_customer" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Decommissioned", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": false, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "decommissioned", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "decommissioned" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Pinned Projects", + "description": "Hosts that are exlusive to a defined list of hosts", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": false, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "pinned_projects", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "pinned_projects" + } + } + ], + "annotations": [], + "duration": "7d", + "timezone": "local", + "refreshInterval": "0s", + "links": [] + } +} \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-compute-vmware-overview.json b/tools/perses/dashboards/cortex-compute-vmware-overview.json new file mode 100644 index 000000000..617fd30c6 --- /dev/null +++ b/tools/perses/dashboards/cortex-compute-vmware-overview.json @@ -0,0 +1,4013 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "cortex_compute_vmware_-_overview", + "createdAt": "2026-05-13T13:31:47.680145771Z", + "updatedAt": "2026-10-05T09:32:56.363329722Z", + "version": 49, + "tags": [ + "compute", + "infrastructure", + "vmware" + ], + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Cortex Compute VMware - Overview" + }, + "panels": { + "144ba2d576994552b531fc5f51c799d3": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n 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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "1c9b9849254545beb9f97c228c024167": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running disk workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for disk\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_general_purpose{availability_zone=~\"$availability_zone\", resource=\"disk\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Disk workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available disk if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\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_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "2b01d42df6b5468696dc2dba29d71a8d": { + "kind": "Panel", + "spec": { + "display": { + "name": "#Hosts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom" + }, + "querySettings": [ + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#59CC8D", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 2 + } + ], + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Available" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Disabled" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\ncount(\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_projects=\"false\"\n }\n )\n) or on() vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned" + } + } + } + } + ] + } + }, + "2fd6197603aa4568b7477e55f4ca18db": { + "kind": "Panel", + "spec": { + "display": { + "name": "#Hosts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom" + }, + "querySettings": [ + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#59CC8D", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 2 + } + ], + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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 enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Available" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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 enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Disabled" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\ncount(\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 decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned" + } + } + } + } + ] + } + }, + "2fef784622c945de9cbb6c89c9987fa6": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_general_purpose{\n availability_zone=~\"$availability_zone\",\n resource=\"cpu\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "308d6c5bd6c146a4b6a4a9d0903e7086": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "34f5a3561070464cac7f5a27b0f9abe6": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "3847549707e54e7992672f1a4b73e02e": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone,project_id,resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\", \n resource=\"cpu\", \n cpu_architecture=\"cascade-lake\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "3e6249cb381d431db9b0d692829d87a1": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\",\n cpu_architecture=\"sapphire-rapids\",\n resource=\"disk\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "3f29c27124354afdb5c7baefcb7d70d3": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\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=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone,project_id,resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\", \n resource=\"disk\", \n cpu_architecture=\"sapphire-rapids\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "3f8f7d6763d24e30823f9315e4896d2b": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone,project_id,resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\", \n resource=\"ram\", \n cpu_architecture=\"cascade-lake\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "426a968d4d074702adde133b27b9ca92": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\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=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone,project_id,resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\", \n resource=\"disk\", \n cpu_architecture=\"cascade-lake\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "4fd322d0daf0452b9a655c648dbc1171": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone,project_id,resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\", \n resource=\"cpu\", \n cpu_architecture=\"sapphire-rapids\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "50fe00d8d78743f3863e6c675fae56c8": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_general_purpose{\n availability_zone=~\"$availability_zone\",\n resource=\"cpu\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "52c46c8ace68485e9fd8e51845b92757": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\",\n cpu_architecture=\"sapphire-rapids\",\n resource=\"ram\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "53b42eb14eb640afb6a69782ab3d1b18": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_general_purpose{\n availability_zone=~\"$availability_zone\",\n resource=\"ram\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "59e5ac07dd3946d4bb83f85c7245771e": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "5bffed9eb94f43d6b39ec8b29006336f": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\",\n cpu_architecture=\"sapphire-rapids\",\n resource=\"cpu\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "5fb406f76aa4475aaa15ed459e7ba2cd": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "636915c9abe142018237a71f6d27d729": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\",\n cpu_architecture=\"cascade-lake\",\n resource=\"disk\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "637da3333c8e4f24b83b29ca0e1bb3ad": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n 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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "66ff07678069488cadd8dd3f93f64af9": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n 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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "68efe66b20ff4d85ab79424539a9c056": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running cpu workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for cpu\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"cpu\", cpu_architecture=\"cascade-lake\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# CPU workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available cpus if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "74a5bedea2c44a01ac77e2020998c1c5": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n )\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n 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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "75aa95873923435584a146f2e41cc988": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running disk workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for disk\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"disk\", cpu_architecture=\"cascade-lake\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Disk workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available disk if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\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=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "75d6513d35784b988678e618a61fd4e9": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 2, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running cpu workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# CPU workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available cpus if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "7c5dd01ec1ae43c8b486ab6cb699b569": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_general_purpose{\n availability_zone=~\"$availability_zone\",\n resource=\"disk\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "7f0c14a6f6dc4b14beb38ae40e2d27ae": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "# VMware Capacity Dashboard\n\n## Categories\n\nThe dashboard organizes capacity into five categories:\n\n1. `General Purpose` - Capacity across all general-purpose hypervisors. CPU architecture is not differentiated here because commitments for general-purpose workloads cannot be mapped to specific hosts (this feature is only supported in Cortex KVM). Thats why we can't say which commitment is meant for which cpu architecture.\n2. `HANA — Sapphire Rapids` - Capacity of HANA hypervisors running on Sapphire Rapids CPUs.\n3. `HANA — Cascade Lake` - Capacity of HANA hypervisors running on Cascade Lake CPUs.\n4. `External Customer` - Capacity exclusively allocated for external customers, identified by the `CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE` trait.\n5. `Pinned Projects` - Compute hosts reserved for specific projects via Nova aggregates. These hosts are exclusive — only the pinned project can place VMs on them. The pinned project itself, however, is not restricted to these hosts and can still spawn VMs anywhere in the datacenter.\n\n---\n\n## Filters\n\n- `Availability Zone`: Filters all metrics by availability zone.\n- `Compute Host` ⚠️: Filters placement data by a specific compute host. **Use with caution:** commitments cannot be mapped to individual hosts, so the commitments query is unaffected by this filter. This can produce misleading results when filtering by host.\n- `Enabled` ⚠️: When enabled, shows only hosts marked as active in Nova. **Use with caution:** some queries have this value hardcoded (e.g. the count of hosts by state is not affected by this filter).\n\n---\n\n## How Capacity Is Calculated\n\nThe dashboard combines two data sources:\n\n- **Placement data (Cortex):** actual workload usage and the total capacity available across all active hosts.\n- **Limes data:** committed but currently unused capacity (unused commitments).\n\nHosts that are being decommissioned are **excluded** from total capacity, because their capacity can no longer be relied upon for planning. However, the workload still running on those hosts **is shown separately** — this represents VMs that need to be migrated in the near future.\n\n| Metric | Definition |\n|---|---|\n| **Total** | Maximum capacity across all non-decommissioned hosts (no workload) |\n| **Workload** | Capacity currently consumed by running VMs |\n| **Unused Commitments** | Capacity committed but not yet used |\n| **Decommissioned Workload** | Workload still running on hosts scheduled for decommission |\n| **Available** | `Total − Workload − Unused Commitments − Decommissioned Workload` |\n| **Available %** | `Available / Total` |\n\nThe stacked bar chart visualizes all components on top of each other. The green line marks the total available capacity (as if no workload were running). **The higher the bars, the fuller the datacenter.**\n" + } + } + } + }, + "8182a1469e324d8d82e03cd9576aeead": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_general_purpose{\n availability_zone=~\"$availability_zone\",\n resource=\"disk\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "81c5a9602880496684db13e8aa4a5833": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running cpu workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for cpu\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_general_purpose{availability_zone=~\"$availability_zone\", resource=\"cpu\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# CPU workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available cpus if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "85c93c276137423c8f5c46bbac509b29": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_general_purpose{\n availability_zone=~\"$availability_zone\",\n resource=\"ram\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "92dfaa152e9b4b4b8630f6d804dfe48c": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running ram workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"ram\", cpu_architecture=\"cascade-lake\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# RAM workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available ram if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "987667e0530747f294c44a93d63181c0": { + "kind": "Panel", + "spec": { + "display": { + "name": "#Hosts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom" + }, + "querySettings": [ + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#59CC8D", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 2 + } + ], + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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 enabled=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Available" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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 enabled=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Disabled" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\ncount(\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 decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n) or on() vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned" + } + } + } + } + ] + } + }, + "a30b83451c044741849d7b45aee52885": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running ram workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_general_purpose{availability_zone=~\"$availability_zone\", resource=\"ram\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# RAM workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available ram if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"general-purpose\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "a488ed2109d947b399cf6aa44f176620": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running disk workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for disk\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"disk\", cpu_architecture=\"sapphire-rapids\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Disk workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available disk if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\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=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "a62cff2808084bb4ae16182e639a4b98": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\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 enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "ae405f1ebcd648a2865a2b14dc3f170b": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running ram workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for ram\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"ram\", cpu_architecture=\"sapphire-rapids\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# RAM workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available ram if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "b7f439c5c7d54091804f108d1a6244a7": { + "kind": "Panel", + "spec": { + "display": { + "name": "#Hosts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom" + }, + "querySettings": [ + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#59CC8D", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 2 + } + ], + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Available" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Disabled" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\ncount(\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_projects=\"false\"\n }\n )\n) or on() vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned" + } + } + } + } + ] + } + }, + "ba1506697c4b46508742fe7d9e4024d9": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n )\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n 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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "bba4f9e8f91e4b56adadd721bed05ac2": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 2, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running ram workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# RAM workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available ram if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "cf8e5f8382d7489b8bb49a55d9141865": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n )\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n 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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "d820cb836a4e427bba3c74d29a0c25aa": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 2, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running disk workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Disk workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available disk if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "d85babde36ec407aaf2ab9f01d53ee2a": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 2, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running ram workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# RAM workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available ram if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "d9369e4d96a344f88840a70a5bd6e55b": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\",\n cpu_architecture=\"cascade-lake\",\n resource=\"cpu\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "d9dc7f2f5fc74a8988b2f6aaed7ea55f": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "percent-decimal" + }, + "legendMode": "on", + "mappings": [], + "thresholds": { + "defaultColor": "#EE6C6C", + "steps": [ + { + "value": 0.2 + }, + { + "color": "#59CC8D", + "value": 0.3 + } + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Workload\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n +\n # Unused commitments\n (\n sum(\n max by (availability_zone, project_id, resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\",\n cpu_architecture=\"cascade-lake\",\n resource=\"ram\"\n }\n )\n ) or vector(0)\n )\n* $show_unused_commitments\n +\n # Decommissioned Workload\n # (enabled label excluded — decommissioned hypervisors are usually disabled)\n (\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n )\n* $show_decommissioned\n )\n /\n # Total (excluding decommissioned capacity)\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)\n", + "seriesNameFormat": "Available %" + } + } + } + } + ] + } + }, + "e2e366449e994384a882a93d645c5628": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 2, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running cpu workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# CPU workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available cpus if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "e4cec5e629a6498e9c458e46da84fd71": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 3, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#004fff", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 2 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running cpu workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Unused commitments for cpu\n# Use max by availability_zone, project_id and resource (cpu, memory, disk) for deduplication.\nsum(max by (availability_zone,project_id,resource) (cortex_vmware_unused_commitments_hana_resources{availability_zone=~\"$availability_zone\", resource=\"cpu\", cpu_architecture=\"sapphire-rapids\"})) or vector(0)\n) * $show_unused_commitments\n", + "seriesNameFormat": "Unused Commitments" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# CPU workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available cpus if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_total{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "ee410bde2174454d96e49ddbdb7bb37b": { + "kind": "Panel", + "spec": { + "display": { + "name": "#Hosts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom" + }, + "querySettings": [ + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#59CC8D", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 2 + } + ], + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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=\"true\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Available" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(\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=\"false\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n) or on() vector(0)", + "seriesNameFormat": "Disabled" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\ncount(\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_projects=\"false\"\n }\n )\n) or on() vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned" + } + } + } + } + ] + } + }, + "f3768c8e87e5437aac53c5b8b9c370b5": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\nsum(\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 # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n)\n-\n# Unused commitments\n(\n sum(\n max by (availability_zone,project_id,resource) (\n cortex_vmware_unused_commitments_hana_resources{\n availability_zone=~\"$availability_zone\", \n resource=\"ram\", \n cpu_architecture=\"sapphire-rapids\"\n }\n )\n ) or vector(0)\n)\n* $show_unused_commitments\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\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_projects=\"false\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "f98ffbdcc84744d2b7aa230b564fbccf": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "last-number" + ] + }, + "querySettings": [ + { + "colorMode": "fixed", + "colorValue": "#59CC8D", + "lineStyle": "dotted", + "queryIndex": 2, + "stack": false + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#EE6C6C", + "queryIndex": 0 + }, + { + "areaOpacity": 1, + "colorMode": "fixed", + "colorValue": "#FFCC00", + "queryIndex": 1 + } + ], + "thresholds": {}, + "visual": { + "areaOpacity": 0.3, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75, + "stack": "all" + }, + "yAxis": { + "format": { + "unit": "bytes" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Running disk workload\n# Using max by compute_host and resource for deduplication if any other label changes\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "(\n# Disk workload that is running on decommissioned hosts (needs to be migrated in the near future, so we count it as used)\n# Using max by compute_host and resource for deduplication if any other label changes\n# If there are no decommissioned hosts we would get an NaN. That's why we fall back to vector(0)\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n # Remove enabled from decommissioned workload, since usually decommissioned hypervisors are disabled\n decommissioned=\"true\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n) or vector(0)\n) * $show_decommissioned\n", + "seriesNameFormat": "Decommissioned Workload" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total max available disk if no workload\n# Using max by compute_host and resource for deduplication if any other label changes\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 enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"true\",\n pinned_projects=\"false\"\n }\n )\n)", + "seriesNameFormat": "Total" + } + } + } + } + ] + } + }, + "fca1ef8aeacc44fabcf110ad4f3eb5d5": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "legendMode": "on" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "# Total\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 enabled=~\"$enabled\",\n # excluding decommissioned capacity\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)\n-\n# Workload\nsum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n enabled=~\"$enabled\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n)\n-\n# Decommissioned Workload\n# (enabled label excluded — decommissioned hypervisors are usually disabled)\n(\n sum(\n max by (compute_host, resource) (\n cortex_vmware_host_capacity_usage{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n compute_host=~\"$compute_host\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"true\"\n }\n )\n ) or vector(0)\n)\n* $show_decommissioned\n", + "seriesNameFormat": "Available" + } + } + } + } + ] + } + }, + "4f60ef5e5d814dc4a4df21511e5ce15e": { + "kind": "Panel", + "spec": { + "display": { + "name": "Placeable Flavors $availability_zone" + }, + "plugin": { + "kind": "Table", + "spec": { + "density": "standard", + "enableFiltering": true, + "columnSettings": [ + { + "name": "flavor", + "header": "Flavor" + }, + { + "name": "value", + "header": "Value" + } + ], + "defaultColumnHidden": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (availability_zone, domain_id, flavor) (wm_vmware_rebalancer_placeable_vms_per_az_for_domain{az=~\"$availability_zone\"})", + "seriesNameFormat": "{{flavor}}" + } + } + } + } + ] + } + }, + "593e011e5ca047088fd1a65a4e18ea05": { + "kind": "Panel", + "spec": { + "display": { + "name": "Placeable HANA Flavors $availability_zone" + }, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "unit": "decimal", + "shortValues": true + }, + "sort": "desc", + "mode": "value", + "orientation": "horizontal", + "groupBy": [], + "isStacked": false + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (availability_zone, domain_id, flavor) (wm_vmware_rebalancer_placeable_vms_per_az_for_domain{az=~\"$availability_zone\", flavor=~\".*hana.*\"})", + "seriesNameFormat": "{{flavor}}" + } + } + } + } + ] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "README", + "collapse": { + "open": false + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 24, + "height": 23, + "content": { + "$ref": "#/spec/panels/7f0c14a6f6dc4b14beb38ae40e2d27ae" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "General Purpose", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/81c5a9602880496684db13e8aa4a5833" + } + }, + { + "x": 7, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/a30b83451c044741849d7b45aee52885" + } + }, + { + "x": 14, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/1c9b9849254545beb9f97c228c024167" + } + }, + { + "x": 21, + "y": 0, + "width": 3, + "height": 13, + "content": { + "$ref": "#/spec/panels/b7f439c5c7d54091804f108d1a6244a7" + } + }, + { + "x": 0, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/2fef784622c945de9cbb6c89c9987fa6" + } + }, + { + "x": 3, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/50fe00d8d78743f3863e6c675fae56c8" + } + }, + { + "x": 7, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/53b42eb14eb640afb6a69782ab3d1b18" + } + }, + { + "x": 10, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/85c93c276137423c8f5c46bbac509b29" + } + }, + { + "x": 14, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/7c5dd01ec1ae43c8b486ab6cb699b569" + } + }, + { + "x": 17, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/8182a1469e324d8d82e03cd9576aeead" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "HANA | Sapphire Rapids", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/e4cec5e629a6498e9c458e46da84fd71" + } + }, + { + "x": 0, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/4fd322d0daf0452b9a655c648dbc1171" + } + }, + { + "x": 7, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/ae405f1ebcd648a2865a2b14dc3f170b" + } + }, + { + "x": 17, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/3e6249cb381d431db9b0d692829d87a1" + } + }, + { + "x": 21, + "y": 0, + "width": 3, + "height": 13, + "content": { + "$ref": "#/spec/panels/ee410bde2174454d96e49ddbdb7bb37b" + } + }, + { + "x": 3, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/5bffed9eb94f43d6b39ec8b29006336f" + } + }, + { + "x": 7, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/f3768c8e87e5437aac53c5b8b9c370b5" + } + }, + { + "x": 10, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/52c46c8ace68485e9fd8e51845b92757" + } + }, + { + "x": 14, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/3f29c27124354afdb5c7baefcb7d70d3" + } + }, + { + "x": 14, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/a488ed2109d947b399cf6aa44f176620" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "HANA | Cascade Lake", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/68efe66b20ff4d85ab79424539a9c056" + } + }, + { + "x": 7, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/92dfaa152e9b4b4b8630f6d804dfe48c" + } + }, + { + "x": 0, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/3847549707e54e7992672f1a4b73e02e" + } + }, + { + "x": 3, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/d9369e4d96a344f88840a70a5bd6e55b" + } + }, + { + "x": 7, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/3f8f7d6763d24e30823f9315e4896d2b" + } + }, + { + "x": 10, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/d9dc7f2f5fc74a8988b2f6aaed7ea55f" + } + }, + { + "x": 14, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/426a968d4d074702adde133b27b9ca92" + } + }, + { + "x": 17, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/636915c9abe142018237a71f6d27d729" + } + }, + { + "x": 21, + "y": 0, + "width": 3, + "height": 13, + "content": { + "$ref": "#/spec/panels/2b01d42df6b5468696dc2dba29d71a8d" + } + }, + { + "x": 14, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/75aa95873923435584a146f2e41cc988" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "External Customer", + "collapse": { + "open": false + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/e2e366449e994384a882a93d645c5628" + } + }, + { + "x": 7, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/d85babde36ec407aaf2ab9f01d53ee2a" + } + }, + { + "x": 14, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/f98ffbdcc84744d2b7aa230b564fbccf" + } + }, + { + "x": 0, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/34f5a3561070464cac7f5a27b0f9abe6" + } + }, + { + "x": 3, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/66ff07678069488cadd8dd3f93f64af9" + } + }, + { + "x": 7, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/308d6c5bd6c146a4b6a4a9d0903e7086" + } + }, + { + "x": 10, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/144ba2d576994552b531fc5f51c799d3" + } + }, + { + "x": 14, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/a62cff2808084bb4ae16182e639a4b98" + } + }, + { + "x": 17, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/637da3333c8e4f24b83b29ca0e1bb3ad" + } + }, + { + "x": 21, + "y": 0, + "width": 3, + "height": 13, + "content": { + "$ref": "#/spec/panels/2fd6197603aa4568b7477e55f4ca18db" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Pinned Projects", + "collapse": { + "open": false + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/75d6513d35784b988678e618a61fd4e9" + } + }, + { + "x": 7, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/bba4f9e8f91e4b56adadd721bed05ac2" + } + }, + { + "x": 14, + "y": 0, + "width": 7, + "height": 10, + "content": { + "$ref": "#/spec/panels/d820cb836a4e427bba3c74d29a0c25aa" + } + }, + { + "x": 21, + "y": 0, + "width": 3, + "height": 13, + "content": { + "$ref": "#/spec/panels/987667e0530747f294c44a93d63181c0" + } + }, + { + "x": 0, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/59e5ac07dd3946d4bb83f85c7245771e" + } + }, + { + "x": 3, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/cf8e5f8382d7489b8bb49a55d9141865" + } + }, + { + "x": 7, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/5fb406f76aa4475aaa15ed459e7ba2cd" + } + }, + { + "x": 10, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/ba1506697c4b46508742fe7d9e4024d9" + } + }, + { + "x": 14, + "y": 10, + "width": 3, + "height": 3, + "content": { + "$ref": "#/spec/panels/fca1ef8aeacc44fabcf110ad4f3eb5d5" + } + }, + { + "x": 17, + "y": 10, + "width": 4, + "height": 3, + "content": { + "$ref": "#/spec/panels/74a5bedea2c44a01ac77e2020998c1c5" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Placeable Flavors ", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 13, + "content": { + "$ref": "#/spec/panels/4f60ef5e5d814dc4a4df21511e5ce15e" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 13, + "content": { + "$ref": "#/spec/panels/593e011e5ca047088fd1a65a4e18ea05" + } + } + ], + "repeatVariable": "" + } + } + ], + "variables": [ + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Availability Zone", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "availability_zone", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "availability_zone" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Compute Host", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "compute_host", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "compute_host" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Enabled", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "enabled", + "matchers": [ + "cortex_vmware_host_capacity_total" + ] + } + }, + "name": "enabled" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Decommissioned Workload", + "hidden": false + }, + "defaultValue": "1", + "allowAllValue": false, + "allowMultiple": false, + "sort": "none", + "plugin": { + "kind": "StaticListVariable", + "spec": { + "values": [ + { + "label": "Exclude", + "value": "0" + }, + { + "label": "Include", + "value": "1" + } + ] + } + }, + "name": "show_decommissioned" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Unused Commitments", + "hidden": false + }, + "defaultValue": "1", + "allowAllValue": false, + "allowMultiple": false, + "sort": "none", + "plugin": { + "kind": "StaticListVariable", + "spec": { + "values": [ + { + "label": "Exclude", + "value": "0" + }, + { + "label": "Include", + "value": "1" + } + ] + } + }, + "name": "show_unused_commitments" + } + } + ], + "annotations": [], + "duration": "7d", + "timezone": "local", + "refreshInterval": "0s", + "links": [] + } +} \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-global-compute-capacity.json b/tools/perses/dashboards/cortex-global-compute-capacity.json new file mode 100644 index 000000000..0dabb7f6d --- /dev/null +++ b/tools/perses/dashboards/cortex-global-compute-capacity.json @@ -0,0 +1,352 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "cortex_global_compute_capacity", + "createdAt": "2026-10-12T12:17:28.263413542Z", + "updatedAt": "2026-10-13T11:35:08.063290394Z", + "version": 9, + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Cortex Global Compute Capacity" + }, + "panels": { + "efc0427f31fc448ebbaae150d149f238": { + "kind": "Panel", + "spec": { + "display": { + "name": "", + "description": "Shows the available RAM capacity in the availability zone. They are split by cpu architecture and workload type. Only categories that actually have capacity are displayed here." + }, + "plugin": { + "kind": "Table", + "spec": { + "cellSettings": [ + { + "backgroundColor": "#ff0000", + "condition": { + "kind": "Range", + "spec": { + "max": 0.05, + "min": -100000000000 + } + }, + "text": "", + "suffix": "%" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Range", + "spec": { + "max": 0.2, + "min": 0.05 + } + }, + "suffix": "%" + }, + { + "backgroundColor": "#FFCC00", + "condition": { + "kind": "Range", + "spec": { + "max": 0.3, + "min": 0.2 + } + }, + "suffix": "%" + }, + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Range", + "spec": { + "max": 100000000000000000, + "min": 0.3 + } + }, + "suffix": "%" + } + ], + "columnSettings": [ + { + "enableSorting": true, + "header": "Availability Zone", + "name": "availability_zone", + "sort": "asc" + }, + { + "align": "left", + "format": { + "unit": "percent-decimal" + }, + "header": "VMware - GP", + "headerDescription": "VMware - General Purpose", + "name": "value #1", + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent-decimal" + }, + "thresholds": { + "steps": [ + { + "value": 0.8 + }, + { + "value": 0.9 + } + ] + } + } + }, + "dataLink": { + "url": "https://perses.${__data.fields[\"region\"]}.cloud.sap/projects/workload-management/dashboards/cortex_compute_vmware_-_overview?var-availability_zone=${__data.fields[\"availability_zone\"]}&var-compute_host=%24__all&var-enabled=%24__all&var-show_decommissioned=1&var-show_unused_commitments=1&var-physical_size=%24__all&start=7d&refresh=0s", + "openNewTab": true, + "title": "" + } + }, + { + "format": { + "unit": "percent-decimal" + }, + "header": "VMware - HANA - CL", + "headerDescription": "VMware - HANA - Cascade Lake", + "name": "value #2", + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent-decimal" + }, + "thresholds": { + "steps": [ + { + "value": 0.8 + }, + { + "value": 0.9 + } + ] + } + } + }, + "dataLink": { + "url": "https://perses.${__data.fields[\"region\"]}.cloud.sap/projects/workload-management/dashboards/cortex_compute_vmware_-_overview?var-availability_zone=${__data.fields[\"availability_zone\"]}&var-compute_host=%24__all&var-enabled=%24__all&var-show_decommissioned=1&var-show_unused_commitments=1&var-physical_size=%24__all&start=7d&refresh=0s", + "openNewTab": true, + "title": "" + } + }, + { + "format": { + "unit": "percent-decimal" + }, + "header": "VMware - HANA - SR", + "headerDescription": "VMware - HANA - Sapphire Rapids", + "name": "value #3", + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent-decimal" + }, + "thresholds": { + "steps": [ + { + "value": 0.8 + }, + { + "value": 0.9 + } + ] + } + } + }, + "dataLink": { + "url": "https://perses.${__data.fields[\"region\"]}.cloud.sap/projects/workload-management/dashboards/cortex_compute_vmware_-_overview?var-availability_zone=${__data.fields[\"availability_zone\"]}&var-compute_host=%24__all&var-enabled=%24__all&var-show_decommissioned=1&var-show_unused_commitments=1&var-physical_size=%24__all&start=7d&refresh=0s", + "openNewTab": true, + "title": "" + } + }, + { + "header": " ", + "name": "column_space", + "width": 10 + }, + { + "format": { + "unit": "percent-decimal" + }, + "header": "KVM - GP", + "headerDescription": "KVM - General Purpose", + "name": "value #4", + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent-decimal" + }, + "thresholds": { + "steps": [ + { + "value": 0.8 + }, + { + "value": 0.9 + } + ] + } + } + }, + "dataLink": { + "url": "https://perses.${__data.fields[\"region\"]}.cloud.sap/projects/workload-management/dashboards/cortex_compute_kvm_-_overview?var-availability_zone=${__data.fields[\"availability_zone\"]}&var-workload_type=general-purpose&var-cpu_architecture=%24__all&var-building_block=%24__all&var-compute_host=%24__all&var-enabled=%24__all&var-maintenance=%24__all&var-decommissioned=%24__all&var-external_customer=%24__all&var-status=%24__all&start=7d&refresh=60s", + "openNewTab": true, + "title": "" + } + }, + { + "format": { + "unit": "percent-decimal" + }, + "header": "KVM - HANA", + "name": "value #5", + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent-decimal" + }, + "thresholds": { + "steps": [ + { + "value": 0.8 + }, + { + "value": 0.9 + } + ] + } + } + }, + "dataLink": { + "url": "https://perses.${__data.fields[\"region\"]}.cloud.sap/projects/workload-management/dashboards/cortex_compute_kvm_-_overview?var-availability_zone=${__data.fields[\"availability_zone\"]}&var-workload_type=hana&var-cpu_architecture=%24__all&var-building_block=%24__all&var-compute_host=%24__all&var-enabled=%24__all&var-maintenance=%24__all&var-decommissioned=%24__all&var-external_customer=%24__all&var-status=%24__all&start=7d&refresh=60s", + "openNewTab": true, + "title": "" + } + } + ], + "defaultColumnHidden": true, + "density": "standard", + "enableFiltering": true, + "transforms": [ + { + "kind": "MergeSeries", + "spec": {} + } + ] + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Running workload (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n\n +\n\n # Decommissioned workload (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n\n +\n\n # Unused commitments (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (availability_zone, project_id, resource, region) (\n cortex_vmware_unused_commitments_general_purpose{\n resource=\"ram\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n )\n\n /\n\n # Total available RAM\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)", + "seriesNameFormat": "General Purpose" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Running workload (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n\n +\n\n # Decommissioned workload (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n\n +\n\n # Unused commitments (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (availability_zone, project_id, resource, region) (\n cortex_vmware_unused_commitments_hana_resources{\n resource=\"ram\",\n cpu_architecture=\"cascade-lake\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n )\n\n /\n\n # Total available RAM\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"cascade-lake\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)", + "seriesNameFormat": "HANA / Cascade Lake" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "1 - (\n (\n # Running workload (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n\n +\n\n # Decommissioned workload (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_usage{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"true\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n\n +\n\n # Unused commitments (0 for AZs with none)\n (\n sum by (availability_zone, region) (\n max by (availability_zone, project_id, resource, region) (\n cortex_vmware_unused_commitments_hana_resources{\n resource=\"ram\",\n cpu_architecture=\"sapphire-rapids\"\n }\n )\n )\n or\n (0 * sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n ))\n )\n )\n\n /\n\n # Total available RAM\n sum by (availability_zone, region) (\n max by (compute_host, resource, availability_zone, region) (\n cortex_vmware_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n cpu_architecture=\"sapphire-rapids\",\n decommissioned=\"false\",\n external_customer=\"false\",\n pinned_projects=\"false\"\n }\n )\n )\n)", + "seriesNameFormat": "HANA / Sapphire Rapids" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (availability_zone, region) (\n max by (compute_host, availability_zone, region) (\n cortex_kvm_host_capacity_usage{\n resource=\"ram\",\n type=\"available\",\n workload_type=\"general-purpose\"\n }\n )\n)\n/\nsum by (availability_zone, region) (\n max by (compute_host, availability_zone, region) (\n cortex_kvm_host_capacity_total{\n resource=\"ram\",\n workload_type=\"general-purpose\",\n decommissioned=\"false\"\n }\n )\n)", + "seriesNameFormat": "KVM General Purpose" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (availability_zone, region) (\n max by (compute_host, availability_zone, region) (\n cortex_kvm_host_capacity_usage{\n resource=\"ram\",\n type=\"available\",\n workload_type=\"hana\"\n }\n )\n)\n/\nsum by (availability_zone, region) (\n max by (compute_host, availability_zone, region) (\n cortex_kvm_host_capacity_total{\n resource=\"ram\",\n workload_type=\"hana\",\n decommissioned=\"false\"\n }\n )\n)", + "seriesNameFormat": "KVM HANA" + } + } + } + } + ], + "links": [] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "Global Compute Capacity", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 24, + "height": 34, + "content": { + "$ref": "#/spec/panels/efc0427f31fc448ebbaae150d149f238" + } + } + ] + } + } + ], + "variables": [], + "annotations": [], + "duration": "5m", + "refreshInterval": "0s", + "links": [] + } +} \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-placement-shim-status.json b/tools/perses/dashboards/cortex-placement-shim-status.json new file mode 100644 index 000000000..3d072df8d --- /dev/null +++ b/tools/perses/dashboards/cortex-placement-shim-status.json @@ -0,0 +1,629 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "cortex-placement-shim-status", + "createdAt": "2026-10-14T08:17:20.801224344Z", + "updatedAt": "2026-10-14T08:17:20.801224344Z", + "version": 0, + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Cortex Placement Shim Status" + }, + "panels": { + "0_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Downstream successful request rate" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "decimal" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "sum(rate(cortex_placement_shim_downstream_request_duration_seconds_count{responsecode=~\"2..\"}[2m])) by (method, pattern, responsecode)", + "seriesNameFormat": "{{method}} {{pattern}} {{responsecode}}" + } + } + } + } + ] + } + }, + "0_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Downstream error request rate" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "decimal" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "sum(rate(cortex_placement_shim_downstream_request_duration_seconds_count{responsecode=~\"4..|5..\"}[2m])) by (method, pattern, responsecode)", + "seriesNameFormat": "{{method}} {{pattern}} {{responsecode}}" + } + } + } + } + ] + } + }, + "0_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Downstream p95 latency (successful)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_downstream_request_duration_seconds_bucket{responsecode=~\"2..\"}[2m])) by (le, method, pattern))", + "seriesNameFormat": "{{method}} {{pattern}}" + } + } + } + } + ] + } + }, + "0_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Downstream p95 latency (errors)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_downstream_request_duration_seconds_bucket{responsecode=~\"4..|5..\"}[2m])) by (le, method, pattern))", + "seriesNameFormat": "{{method}} {{pattern}}" + } + } + } + } + ] + } + }, + "1_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Upstream successful request rate" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "decimal" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "sum(rate(cortex_placement_shim_upstream_request_duration_seconds_count{responsecode=~\"2..\"}[2m])) by (method, pattern, responsecode)", + "seriesNameFormat": "{{method}} {{pattern}} {{responsecode}}" + } + } + } + } + ] + } + }, + "1_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Upstream error request rate" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "decimal" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "sum(rate(cortex_placement_shim_upstream_request_duration_seconds_count{responsecode=~\"4..|5..\"}[2m])) by (method, pattern, responsecode)", + "seriesNameFormat": "{{method}} {{pattern}} {{responsecode}}" + } + } + } + } + ] + } + }, + "1_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Upstream p95 latency (successful)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_upstream_request_duration_seconds_bucket{responsecode=~\"2..\"}[2m])) by (le, method, pattern))", + "seriesNameFormat": "{{method}} {{pattern}}" + } + } + } + } + ] + } + }, + "1_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Upstream p95 latency (errors)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "mean", + "max", + "min" + ] + }, + "visual": { + "areaOpacity": 0.1, + "connectNulls": false, + "display": "line", + "lineWidth": 1 + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "min": 0 + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_upstream_request_duration_seconds_bucket{responsecode=~\"4..|5..\"}[2m])) by (le, method, pattern))", + "seriesNameFormat": "{{method}} {{pattern}}" + } + } + } + } + ] + } + }, + "2_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory usage (MiB)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": {} + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "go_memstats_alloc_bytes{pod=~\"cortex-placement-shim-.*\"} / 1_000_000", + "seriesNameFormat": "{{pod}}" + } + } + } + } + ] + } + }, + "2_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU usage (cores)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": {} + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource" + }, + "minStep": "", + "query": "rate(process_cpu_seconds_total{pod=~\"cortex-placement-shim-.*\"}[2m])", + "seriesNameFormat": "{{pod}}" + } + } + } + } + ] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "Downstream Requests (Client → Shim)", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/0_0" + } + }, + { + "x": 6, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/0_1" + } + }, + { + "x": 12, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/0_2" + } + }, + { + "x": 18, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/0_3" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Upstream Requests (Shim → Placement API)", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/1_0" + } + }, + { + "x": 6, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/1_1" + } + }, + { + "x": 12, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/1_2" + } + }, + { + "x": 18, + "y": 0, + "width": 6, + "height": 11, + "content": { + "$ref": "#/spec/panels/1_3" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Kubernetes Pods", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/2_0" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/2_1" + } + } + ] + } + } + ], + "variables": [], + "annotations": [], + "duration": "1h", + "refreshInterval": "0s", + "links": [] + } +} \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-project-flavor-usage.json b/tools/perses/dashboards/cortex-project-flavor-usage.json new file mode 100644 index 000000000..d91a6a7ff --- /dev/null +++ b/tools/perses/dashboards/cortex-project-flavor-usage.json @@ -0,0 +1,384 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "project_flavor_usage", + "createdAt": "2026-05-21T12:34:49.956070473Z", + "updatedAt": "2026-06-01T12:05:28.149975405Z", + "version": 3, + "tags": [ + "flavor", + "kvm", + "vmware" + ], + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Project Flavor Usage" + }, + "panels": { + "0255b3b37dae4998abcbdb9ccad9e76f": { + "kind": "Panel", + "spec": { + "display": { + "name": "VMware Flavor Usage per Project" + }, + "plugin": { + "kind": "Table", + "spec": { + "columnSettings": [ + { + "header": "Domain", + "name": "domain_name" + }, + { + "enableSorting": true, + "header": "Project", + "name": "project_name" + }, + { + "enableSorting": true, + "header": "Flavor", + "name": "flavor_name" + }, + { + "enableSorting": false, + "hide": true, + "name": "timestamp" + }, + { + "enableSorting": true, + "header": "Amount", + "name": "value", + "sort": "desc" + }, + { + "hide": true, + "name": "domain_id" + }, + { + "hide": true, + "name": "project_id" + } + ], + "density": "standard", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (domain_name, domain_id, project_id, project_name, flavor_name) (cortex_vmware_project_instances{flavor_name=~\"$flavor_name\",project_name=~\"$project_name\",domain_name=~\"$domain_name\",availability_zone=~\"$availability_zone\"})" + } + } + } + } + ] + } + }, + "166b50060eb440499cc765a7f0a6f942": { + "kind": "Panel", + "spec": { + "display": { + "name": "Total KVM Flavor Usage" + }, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "shortValues": true, + "unit": "decimal" + }, + "mode": "value", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "topk(30,sort_desc(sum by (flavor_name) (cortex_kvm_project_instances{flavor_name=~\"$flavor_name\",domain_name=~\"$domain_name\",project_name=~\"$project_name\",availability_zone=~\"$availability_zone\"})))", + "seriesNameFormat": "{{flavor_name}}" + } + } + } + } + ] + } + }, + "213df60fb32749c3ba908dc9cfb49f24": { + "kind": "Panel", + "spec": { + "display": { + "name": "KVM Flavor Usage per Project" + }, + "plugin": { + "kind": "Table", + "spec": { + "columnSettings": [ + { + "header": "Domain", + "name": "domain_name" + }, + { + "enableSorting": true, + "header": "Project", + "name": "project_name" + }, + { + "enableSorting": true, + "header": "Flavor", + "name": "flavor_name" + }, + { + "enableSorting": false, + "hide": true, + "name": "timestamp" + }, + { + "enableSorting": true, + "header": "Amount", + "name": "value", + "sort": "desc" + }, + { + "hide": true, + "name": "domain_id" + }, + { + "hide": true, + "name": "project_id" + } + ], + "density": "standard", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (domain_name, domain_id, project_id, project_name, flavor_name) (cortex_kvm_project_instances{flavor_name=~\"$flavor_name\",project_name=~\"$project_name\",domain_name=~\"$domain_name\",availability_zone=~\"$availability_zone\"})" + } + } + } + } + ] + } + }, + "e18c30a653c44ce79dcee45d2f8c2e47": { + "kind": "Panel", + "spec": { + "display": { + "name": "Total VMware Flavor Usage" + }, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "shortValues": true, + "unit": "decimal" + }, + "mode": "value", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "topk(30,sort_desc(sum by (flavor_name) (cortex_vmware_project_instances{flavor_name=~\"$flavor_name\",domain_name=~\"$domain_name\",project_name=~\"$project_name\",availability_zone=~\"$availability_zone\"})))", + "seriesNameFormat": "{{flavor_name}}" + } + } + } + } + ] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "VMware", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/0255b3b37dae4998abcbdb9ccad9e76f" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/e18c30a653c44ce79dcee45d2f8c2e47" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "KVM", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/213df60fb32749c3ba908dc9cfb49f24" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/166b50060eb440499cc765a7f0a6f942" + } + } + ] + } + } + ], + "variables": [ + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Domain", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "customAllValue": ".*", + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "domain_name", + "matchers": [ + "cortex_kvm_project_instances", + "cortex_vmware_project_instances" + ] + } + }, + "name": "domain_name" + } + }, + { + "kind": "ListVariable", + "spec": { + "name": "project_name", + "display": { + "name": "Project", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "customAllValue": ".*", + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "project_name", + "matchers": [ + "cortex_kvm_project_instances", + "cortex_vmware_project_instances" + ] + } + } + } + }, + { + "kind": "ListVariable", + "spec": { + "name": "availability_zone", + "display": { + "name": "Availability Zone", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "customAllValue": ".*", + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "availability_zone", + "matchers": [ + "cortex_vmware_project_instances", + "cortex_kvm_project_instances" + ] + } + } + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Flavor", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "customAllValue": ".*", + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "flavor_name", + "matchers": [ + "cortex_vmware_project_instances", + "cortex_kvm_project_instances" + ] + } + }, + "name": "flavor_name" + } + } + ], + "duration": "1h", + "refreshInterval": "0s" + } +} \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-status-global.json b/tools/perses/dashboards/cortex-status-global.json new file mode 100644 index 000000000..699f03077 --- /dev/null +++ b/tools/perses/dashboards/cortex-status-global.json @@ -0,0 +1,547 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "cortex_status_-_global", + "createdAt": "2026-10-13T14:03:17.052403685Z", + "updatedAt": "2026-10-13T14:57:24.392681792Z", + "version": 20, + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Cortex Status Global" + }, + "panels": { + "2cc67a00b7b04e2193aea3d819c78ecf": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "thresholds": { + "mode": "percent", + "steps": [ + { + "value": 60 + }, + { + "color": "#EE6C6C", + "value": 80 + } + ] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + }, + "label": "", + "max": 1, + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "process_resident_memory_bytes{service=~\"$service\", pod=~\"cortex-.*\", region=~\"$region\"} / on (pod) group_left ()\nkube_pod_container_resource_limits{resource=\"memory\", container=\"manager\", pod=~\"cortex-.*\", region=~\"$region\"}\n", + "seriesNameFormat": "{{region}} | {{pod}} " + } + } + } + } + ] + } + }, + "57975062356b4bc6b403c6da7d0fbf40": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "shortValues": true, + "unit": "decimal" + }, + "groupBy": [], + "isStacked": false, + "mode": "value", + "orientation": "horizontal", + "sort": "desc" + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (region, kind) (cortex_multicluster_object_count{service=~\"$service\", region=~\"$region\"})", + "seriesNameFormat": "{{region}} | {{kind}} " + } + } + } + } + ] + } + }, + "99ebeb12b9704329bd2cc0639e8e21da": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "cellSettings": [], + "columnSettings": [ + { + "align": "left", + "dataLink": { + "openNewTab": true, + "title": "", + "url": "https://perses.${__data.fields[\"region\"]}.cloud.sap/projects/workload-management/dashboards/cortex_status?var-service=${__data.fields[\"service\"]}&start=6h&refresh=0s" + }, + "header": "Region", + "name": "region" + }, + { + "cellSettings": [ + { + "backgroundColor": "#00d3ff", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*-nova-.*" + } + }, + "text": "nova", + "textColor": "#000" + }, + { + "backgroundColor": "#9094ff", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*-manila-.*" + } + }, + "text": "manila", + "textColor": "#000" + } + ], + "header": "Service", + "name": "service" + }, + { + "align": "center", + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "1" + } + }, + "text": "Up", + "textColor": "#000" + }, + { + "backgroundColor": "#ff0000", + "condition": { + "kind": "Value", + "spec": { + "value": "0" + } + }, + "text": "Down", + "textColor": "#000" + } + ], + "header": "Scheduling Service", + "name": "value #1" + }, + { + "format": { + "unit": "percent-decimal" + }, + "header": "Mem. Scheduling", + "name": "value #7" + }, + { + "align": "center", + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "1" + } + }, + "text": "Up", + "textColor": "#000" + }, + { + "backgroundColor": "#ff0000", + "condition": { + "kind": "Value", + "spec": { + "value": "0" + } + }, + "text": "Down", + "textColor": "#000" + } + ], + "header": "Knowledge Service", + "name": "value #2" + }, + { + "format": { + "unit": "percent-decimal" + }, + "header": "Mem. Knowledge", + "name": "value #8" + }, + { + "align": "center", + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "1" + } + }, + "text": "Ready", + "textColor": "#000" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + }, + "text": "Issue", + "textColor": "#000" + } + ], + "header": "Pipeline", + "name": "value #3" + }, + { + "align": "center", + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "1" + } + }, + "text": "Ready", + "textColor": "#000" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + }, + "text": "Issue", + "textColor": "#000" + } + ], + "header": "Knowledge", + "name": "value #4" + }, + { + "align": "center", + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "1" + } + }, + "text": "Ready", + "textColor": "#000" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + }, + "text": "Issue", + "textColor": "#000" + } + ], + "header": "Datasource", + "name": "value #5" + }, + { + "align": "center", + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "1" + } + }, + "text": "Ready", + "textColor": "#000" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + }, + "text": "Issue", + "textColor": "#000" + } + ], + "header": "KPI", + "name": "value #6" + } + ], + "defaultColumnHidden": true, + "density": "compact", + "enableFiltering": true, + "transforms": [ + { + "kind": "MergeSeries", + "spec": {} + } + ] + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "min by (region, service) (up{pod=~\"cortex-.*-scheduling-.*\",service=~\"$service\",region=~\"$region\"})", + "seriesNameFormat": "Scheduling Up" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "min by (region, service) (up{pod=~\"cortex-.*-knowledge-.*\", service=~\"$service\",region=~\"$region\"})", + "seriesNameFormat": "Knowledge Up" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(cortex_pipeline_state{state=\"ready\",service=~\"$service\",region=~\"$region\"}) by (region, service) / count(cortex_pipeline_state{service=~\"$service\",region=~\"$region\"}) by (region, service) and count(cortex_pipeline_state{service=~\"$service\",region=~\"$region\"}) by (region, service) > 0", + "seriesNameFormat": "Pipeline" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(cortex_knowledge_state{state=\"ready\",service=~\"$service\",region=~\"$region\"}) by (region, service) / count(cortex_knowledge_state{service=~\"$service\",region=~\"$region\"}) by (region, service) and count(cortex_knowledge_state{service=~\"$service\",region=~\"$region\"}) by (region, service) > 0", + "seriesNameFormat": "Knowledge" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count(cortex_datasource_state{state=\"ready\",service=~\"$service\",region=~\"$region\"}) by (region, service) / count(cortex_datasource_state{service=~\"$service\",region=~\"$region\"}) by (region, service) and count(cortex_datasource_state{service=~\"$service\",region=~\"$region\"}) by (region, service) > 0", + "seriesNameFormat": "Datasource" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "count by (region, service) (cortex_kpi_state{state=\"ready\", service=~\"$service\",region=~\"$region\"}) / count by (region, service) (cortex_kpi_state{service=~\"$service\",region=~\"$region\"}) and count(cortex_kpi_state{service=~\"$service\",region=~\"$region\"}) by (region, service) > 0", + "seriesNameFormat": "KPI" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (region, service) (\n process_resident_memory_bytes{service=~\"$service\", pod=~\"cortex-.*-scheduling-.*\",region=~\"$region\"}\n / on (pod) group_left ()\n kube_pod_container_resource_limits{resource=\"memory\", container=\"manager\", pod=~\"cortex-.*-scheduling-.*\",region=~\"$region\"}\n)" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (region, service) (\n process_resident_memory_bytes{service=~\"$service\", pod=~\"cortex-.*-knowledge-.*\",region=~\"$region\"}\n / on (pod) group_left ()\n kube_pod_container_resource_limits{resource=\"memory\", container=\"manager\", pod=~\"cortex-.*-knowledge-.*\",region=~\"$region\"}\n)", + "seriesNameFormat": "Mem. Knowledge" + } + } + } + } + ] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "Overview", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/2cc67a00b7b04e2193aea3d819c78ecf" + } + }, + { + "x": 0, + "y": 11, + "width": 24, + "height": 26, + "content": { + "$ref": "#/spec/panels/99ebeb12b9704329bd2cc0639e8e21da" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 11, + "content": { + "$ref": "#/spec/panels/57975062356b4bc6b403c6da7d0fbf40" + } + } + ] + } + } + ], + "variables": [ + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Service", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "StaticListVariable", + "spec": { + "values": [ + { + "label": "nova", + "value": "cortex-nova-metrics" + }, + { + "label": "manila", + "value": "cortex-manila-metrics" + } + ] + } + }, + "name": "service" + } + }, + { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Region", + "hidden": false + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "region", + "matchers": [ + "up{pod=~\"cortex-.*\"}" + ] + } + }, + "name": "region" + } + } + ], + "annotations": [], + "duration": "6h", + "timezone": "local", + "refreshInterval": "0s", + "links": [] + } +} \ No newline at end of file diff --git a/tools/perses/dashboards/cortex-status.json b/tools/perses/dashboards/cortex-status.json new file mode 100644 index 000000000..8a54e00d9 --- /dev/null +++ b/tools/perses/dashboards/cortex-status.json @@ -0,0 +1,1333 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "cortex_status", + "createdAt": "2026-05-19T06:01:13.720405Z", + "updatedAt": "2026-10-13T12:47:08.406940647Z", + "version": 15, + "tags": [ + "cortex", + "ops" + ], + "project": "workload-management" + }, + "spec": { + "display": { + "name": "Cortex Status" + }, + "panels": { + "06450de87a3b42189edaeaf13a7a08b4": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "actions": {}, + "columnSettings": [ + { + "header": "Datasource", + "name": "datasource" + }, + { + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "ready" + } + }, + "text": "" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + } + } + ], + "header": "State", + "name": "state" + } + ], + "defaultColumnHidden": true, + "density": "compact", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "cortex_datasource_state{service=~\"$service\"}" + } + } + } + } + ] + } + }, + "1238e3de28d9458bb1421b505bbad491": { + "kind": "Panel", + "spec": { + "display": { + "name": "All Pods Up?" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "colorMode": "background_solid", + "format": { + "unit": "decimal" + }, + "legendMode": "on", + "mappings": [ + { + "kind": "Value", + "spec": { + "result": { + "color": "#EE6C6C", + "value": " Down" + }, + "value": "0" + } + }, + { + "kind": "Value", + "spec": { + "result": { + "color": "#59CC8D", + "value": " " + }, + "value": "1" + } + } + ] + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "thanos-regional-query" + }, + "query": "up{pod=~\"cortex-nova-scheduling-controller-manager.*\", service=~\"$service\"}", + "seriesNameFormat": "Cortex Nova Scheduling" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "up{pod=~\"cortex-nova-knowledge-controller-manager.*\", service=~\"$service\"}", + "seriesNameFormat": "Cortex Nova Knowledge" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "up{pod=~\"cortex-manila-scheduling-controller-manager.*\", service=~\"$service\"}", + "seriesNameFormat": "Cortex Manila Scheduling" + } + } + } + }, + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "up{pod=~\"cortex-manila-knowledge-controller-manager.*\", service=~\"$service\"}", + "seriesNameFormat": "Cortex Manila Knowledge" + } + } + } + } + ] + } + }, + "125fee8683ae4f42a38811df95ca13bc": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "actions": {}, + "columnSettings": [ + { + "header": "Pipeline", + "name": "pipeline" + }, + { + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "ready" + } + }, + "text": "" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + } + } + ], + "header": "State", + "name": "state" + } + ], + "defaultColumnHidden": true, + "density": "compact", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "cortex_pipeline_state{service=~\"$service\"}" + } + } + } + } + ] + } + }, + "39fd1bbdff9948e09145ebd8e4c073c8": { + "kind": "Panel", + "spec": { + "display": { + "name": "95th percentile response time (success)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "min", + "max", + "mean" + ] + }, + "thresholds": { + "steps": [ + { + "color": "#EE6C6C", + "value": 5 + } + ] + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "label": "", + "max": 6.5, + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "histogram_quantile(0.95, sum(rate(cortex_scheduler_api_request_duration_seconds_bucket{status=~\"2.+\", service=~\"$service\"}[2m])) by (le, method, path, status, error))", + "seriesNameFormat": "{{method}} {{path}} {{status}} {{error}}" + } + } + } + } + ] + } + }, + "3c1149b9a1274198a31300d6ec9f12ae": { + "kind": "Panel", + "spec": { + "display": { + "name": "Average response time (error)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "min", + "max", + "mean" + ] + }, + "thresholds": { + "steps": [ + { + "color": "#EE6C6C", + "value": 5 + } + ] + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "label": "", + "max": 6.5, + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "histogram_quantile(0.95, sum(rate(cortex_scheduler_api_request_duration_seconds_bucket{status=~\"4.+|5.+\",service=~\"$service\"}[2m])) by (le, method, path, status, error))", + "seriesNameFormat": "{{method}} {{path}} {{status}} {{error}}" + } + } + } + } + ] + } + }, + "43a4008fc0ed4475bbb89809d6f438f2": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "max", + "mean", + "min" + ] + }, + "thresholds": { + "mode": "percent", + "steps": [ + { + "value": 60 + }, + { + "color": "#EE6C6C", + "value": 80 + } + ] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + }, + "label": "", + "max": 1, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "rate(process_cpu_seconds_total{service=~\"$service\"}[2m])\n / on(pod) group_left\nkube_pod_container_resource_limits{pod=~\"cortex-.*\", container=\"manager\", resource=\"cpu\"}", + "seriesNameFormat": "{{pod}}" + } + } + } + } + ] + } + }, + "4a5b90625fb345e8bc83e22a71ddc018": { + "kind": "Panel", + "spec": { + "display": { + "name": "Triggered migrations" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "position": "bottom" + }, + "querySettings": [ + { + "queryIndex": 0 + } + ], + "visual": { + "areaOpacity": 0, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75 + }, + "yAxis": { + "format": { + "unit": "decimal" + }, + "label": "", + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by (error) (increase(cortex_detector_pipeline_run_duration_seconds_count{service=~\"$service\"}[2m]))", + "seriesNameFormat": "Error: {{error}}" + } + } + } + } + ] + } + }, + "5d8c6135f7ab417c92a3170a6409e70c": { + "kind": "Panel", + "spec": { + "display": { + "name": "Deschedulings (rate over 2min)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "min", + "max", + "sum", + "mean" + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by(error) (rate(cortex_detector_pipeline_run_duration_seconds_count{service=~\"$service\"}[2m]))", + "seriesNameFormat": "Error: {{error}}" + } + } + } + } + ] + } + }, + "5dd5c24ff08542979ba2fa5eefcedf87": { + "kind": "Panel", + "spec": { + "display": { + "name": "Error request rate" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "min", + "max", + "mean" + ] + }, + "thresholds": { + "steps": [ + { + "color": "#EE6C6C", + "value": 0.1 + } + ] + }, + "yAxis": { + "format": { + "shortValues": true, + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(rate(cortex_scheduler_api_request_duration_seconds_count{status=~\"4.+|5.+\", service=~\"$service\"}[2m])) by (method, path, status, error)", + "seriesNameFormat": "{{method}} {{path}} {{status}} {{error}}" + } + } + } + } + ] + } + }, + "73728d521c414875a95930f15a6aebc6": { + "kind": "Panel", + "spec": { + "display": { + "name": "New objects synced" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "max" + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max by(datasource) (increase(cortex_sync_objects{service=~\"$service\"}[2m]))", + "seriesNameFormat": "{{ datasource }}" + } + } + } + } + ] + } + }, + "75e7e8c8a40c44feb58e0f82accd9ae0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time needed to deschedule VM" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "max", + "min", + "mean" + ] + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "label": "", + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "histogram_quantile(0.95, sum(rate(cortex_descheduler_pipeline_vm_descheduling_duration_seconds_bucket{service=~\"$service\"}[2m])) by (le, error, skipped))", + "seriesNameFormat": "Error: {{error}}, Skipped: {{skipped}}" + } + } + } + } + ] + } + }, + "8a04aa0097244b789050ec713c575329": { + "kind": "Panel", + "spec": { + "display": { + "name": "Requests by type (rate over 2min)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "max", + "min", + "mean", + "sum" + ] + }, + "thresholds": { + "steps": [] + }, + "yAxis": { + "format": { + "unit": "decimal" + }, + "label": "", + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum by(pipeline) (rate(cortex_filter_weigher_pipeline_requests_total{service=~\"$service\"}[2m]))", + "seriesNameFormat": "Pipeline: {{pipeline}}" + } + } + } + } + ] + } + }, + "8c619223b4cb407da45e0fae4be27f27": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time needed to run descheduler steps" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "max", + "min", + "mean" + ] + }, + "querySettings": [ + { + "queryIndex": 0 + } + ], + "visual": { + "areaOpacity": 0, + "connectNulls": false, + "display": "line", + "lineStyle": "solid", + "lineWidth": 1.25, + "pointRadius": 2.75 + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "label": "", + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "histogram_quantile(0.95, sum(rate(cortex_detector_pipeline_step_run_duration_seconds_bucket{service=~\"$service\"}[2m])) by (le, step))", + "seriesNameFormat": "{{step}}" + } + } + } + } + ] + } + }, + "8f900e63515649c296aafb249221c825": { + "kind": "Panel", + "spec": { + "display": { + "name": "Successful request rate" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": [ + "min", + "max", + "mean" + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "sum(rate(cortex_scheduler_api_request_duration_seconds_count{status=~\"2.+\",service=~\"$service\"}[2m])) by (method, path, status, error)", + "seriesNameFormat": "{{method}} {{path}} {{status}} {{error}}" + } + } + } + } + ] + } + }, + "b444ff27c15640a185d33d0b3c4cd752": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "actions": {}, + "columnSettings": [ + { + "header": "Knowledge", + "name": "knowledge" + }, + { + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "ready" + } + }, + "text": "" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + } + } + ], + "header": "State", + "name": "state" + } + ], + "defaultColumnHidden": true, + "density": "compact", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "cortex_knowledge_state{service=~\"$service\"}" + } + } + } + } + ] + } + }, + "c3f536445fca4f54a72b339b2bd12035": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "max", + "mean" + ] + }, + "thresholds": { + "steps": [ + { + "value": 0.6 + }, + { + "color": "#EE6C6C", + "value": 0.8 + } + ] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + }, + "label": "", + "max": 1, + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "process_resident_memory_bytes{service=~\"$service\"}\n / on (pod) group_left ()\n (kube_pod_container_resource_limits{resource=\"memory\", container=\"manager\", pod=~\"cortex-.*\"})", + "seriesNameFormat": "{{pod}}" + } + } + } + } + ] + } + }, + "daa10c8ae42d4edc964a282042fcbf02": { + "kind": "Panel", + "spec": { + "display": {}, + "plugin": { + "kind": "Table", + "spec": { + "actions": {}, + "columnSettings": [ + { + "header": "KPI", + "name": "kpi" + }, + { + "cellSettings": [ + { + "backgroundColor": "#59CC8D", + "condition": { + "kind": "Value", + "spec": { + "value": "ready" + } + }, + "text": "" + }, + { + "backgroundColor": "#EE6C6C", + "condition": { + "kind": "Regex", + "spec": { + "expr": ".*" + } + } + } + ], + "header": "State", + "name": "state" + } + ], + "defaultColumnHidden": true, + "density": "compact", + "enableFiltering": true + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "cortex_kpi_state{service=~\"$service\"}" + } + } + } + } + ] + } + }, + "e6191f23d56f4c18adff36a5987de684": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time needed to run scheduler steps" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "max", + "min", + "mean" + ] + }, + "thresholds": { + "steps": [ + { + "color": "#EE6C6C", + "value": 5 + } + ] + }, + "yAxis": { + "format": { + "unit": "seconds" + }, + "label": "", + "max": 6.5, + "min": 0, + "show": true + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "histogram_quantile(0.95, sum(rate(cortex_filter_weigher_pipeline_step_run_duration_seconds_bucket{service=~\"$service\"}[2m])) by (le, step, alias, pipeline))", + "seriesNameFormat": "{{pipeline}} {{step}}" + } + } + } + } + ] + } + }, + "f4df3ab941dc41418b793bab9bcd2328": { + "kind": "Panel", + "spec": { + "display": { + "name": "Times synced" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "right", + "values": [ + "sum" + ] + } + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "max by(datasource) (increase(cortex_sync_request_processed_total{service=~\"$service\"}[2m]))", + "seriesNameFormat": "{{ datasource }}" + } + } + } + } + ] + } + }, + "68ba7ec1566047369857a1f18733425b": { + "kind": "Panel", + "spec": { + "display": { + "name": "" + }, + "plugin": { + "kind": "BarChart", + "spec": { + "calculation": "last", + "format": { + "unit": "decimal", + "shortValues": true + }, + "sort": "desc", + "mode": "value", + "orientation": "horizontal", + "groupBy": [], + "isStacked": false + } + }, + "queries": [ + { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "cortex_multicluster_object_count{service=~\"$service\"}", + "seriesNameFormat": "{{kind}} / {{availability_zone}}" + } + } + } + } + ] + } + } + }, + "layouts": [ + { + "kind": "Grid", + "spec": { + "display": { + "title": "Kubernetes Pods", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 8, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/c3f536445fca4f54a72b339b2bd12035" + } + }, + { + "x": 12, + "y": 8, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/43a4008fc0ed4475bbb89809d6f438f2" + } + }, + { + "x": 0, + "y": 0, + "width": 24, + "height": 8, + "content": { + "$ref": "#/spec/panels/1238e3de28d9458bb1421b505bbad491" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Custom Resources", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 5, + "height": 15, + "content": { + "$ref": "#/spec/panels/06450de87a3b42189edaeaf13a7a08b4" + } + }, + { + "x": 5, + "y": 0, + "width": 5, + "height": 15, + "content": { + "$ref": "#/spec/panels/b444ff27c15640a185d33d0b3c4cd752" + } + }, + { + "x": 10, + "y": 0, + "width": 5, + "height": 15, + "content": { + "$ref": "#/spec/panels/125fee8683ae4f42a38811df95ca13bc" + } + }, + { + "x": 15, + "y": 0, + "width": 5, + "height": 15, + "content": { + "$ref": "#/spec/panels/daa10c8ae42d4edc964a282042fcbf02" + } + }, + { + "x": 20, + "y": 0, + "width": 4, + "height": 15, + "content": { + "$ref": "#/spec/panels/68ba7ec1566047369857a1f18733425b" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Scheduling Activity", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 6, + "height": 10, + "content": { + "$ref": "#/spec/panels/8f900e63515649c296aafb249221c825" + } + }, + { + "x": 6, + "y": 0, + "width": 6, + "height": 10, + "content": { + "$ref": "#/spec/panels/5dd5c24ff08542979ba2fa5eefcedf87" + } + }, + { + "x": 12, + "y": 0, + "width": 6, + "height": 10, + "content": { + "$ref": "#/spec/panels/39fd1bbdff9948e09145ebd8e4c073c8" + } + }, + { + "x": 18, + "y": 0, + "width": 6, + "height": 10, + "content": { + "$ref": "#/spec/panels/3c1149b9a1274198a31300d6ec9f12ae" + } + }, + { + "x": 0, + "y": 10, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/e6191f23d56f4c18adff36a5987de684" + } + }, + { + "x": 12, + "y": 10, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/8a04aa0097244b789050ec713c575329" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Datasources", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/73728d521c414875a95930f15a6aebc6" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/f4df3ab941dc41418b793bab9bcd2328" + } + } + ] + } + }, + { + "kind": "Grid", + "spec": { + "display": { + "title": "Descheduling Activity", + "collapse": { + "open": true + } + }, + "items": [ + { + "x": 0, + "y": 0, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/75e7e8c8a40c44feb58e0f82accd9ae0" + } + }, + { + "x": 12, + "y": 0, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/5d8c6135f7ab417c92a3170a6409e70c" + } + }, + { + "x": 0, + "y": 10, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/8c619223b4cb407da45e0fae4be27f27" + } + }, + { + "x": 12, + "y": 10, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/4a5b90625fb345e8bc83e22a71ddc018" + } + } + ] + } + } + ], + "variables": [ + { + "kind": "ListVariable", + "spec": { + "name": "service", + "display": { + "name": "Service" + }, + "defaultValue": "$__all", + "allowAllValue": true, + "allowMultiple": true, + "sort": "none", + "plugin": { + "kind": "StaticListVariable", + "spec": { + "values": [ + { + "label": "nova", + "value": "cortex-nova-metrics" + }, + { + "label": "manila", + "value": "cortex-manila-metrics" + } + ] + } + } + } + } + ], + "annotations": [], + "duration": "6h", + "timezone": "local", + "refreshInterval": "0s", + "datasources": {}, + "links": [] + } +} \ No newline at end of file diff --git a/tools/plutono/Dockerfile b/tools/plutono/Dockerfile deleted file mode 100644 index e70bd697d..000000000 --- a/tools/plutono/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 - -# Plutono is a fork of Grafana 7.5.17 under the Apache 2.0 License. -FROM ghcr.io/credativ/plutono:v7.5.52 -COPY provisioning /etc/plutono/provisioning -COPY plutono.ini /etc/plutono/plutono.ini \ No newline at end of file diff --git a/tools/plutono/app.yaml b/tools/plutono/app.yaml deleted file mode 100644 index cffd273b6..000000000 --- a/tools/plutono/app.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 - -apiVersion: apps/v1 -kind: Deployment -metadata: - name: cortex-plutono - labels: - app: cortex-plutono -spec: - replicas: 1 - selector: - matchLabels: - app: cortex-plutono - template: - metadata: - labels: - app: cortex-plutono - spec: - containers: - - name: cortex-plutono # from local tilt build - image: cortex-plutono - ports: - - containerPort: 3000 \ No newline at end of file diff --git a/tools/plutono/plutono.ini b/tools/plutono/plutono.ini deleted file mode 100644 index 89e75feda..000000000 --- a/tools/plutono/plutono.ini +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 - -# When we use plutono in the Tilt setup, we don't want to login all the time. -[auth.anonymous] -enabled = true -org_role = Admin -[auth] -disable_login_form = true diff --git a/tools/plutono/provisioning/dashboards/compute/flavors.json b/tools/plutono/provisioning/dashboards/compute/flavors.json deleted file mode 100644 index 37240d9d7..000000000 --- a/tools/plutono/provisioning/dashboards/compute/flavors.json +++ /dev/null @@ -1,547 +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, - "id": 8, - "iteration": 1776069882965, - "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\", hypervisor_family=~\"$hypervisor_family\"}) by (project_name, flavor_name, hypervisor_family))", - "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", - "hypervisor_family": "Hypervisor Family" - } - } - } - ], - "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\", hypervisor_family=~\"$hypervisor_family\"}) 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", - "targets": [ - { - "exemplar": true, - "expr": "sort_desc(cortex_flavor_running_vms{availability_zone=\"$availability_zone\", project_name=~\"$project_name\", flavor_name=~\"$flavor_name\", hypervisor_family=~\"$hypervisor_family\"})", - "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", - "hypervisor_family": "Hypervisor Family" - } - } - } - ], - "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", - "targets": [ - { - "exemplar": true, - "expr": "topk(20, sum(cortex_flavor_running_vms{availability_zone=\"$availability_zone\", flavor_name=~\"$flavor_name\", project_name=~\"$project_name\", hypervisor_family=~\"$hypervisor_family\"}) 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, - "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, - "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 - }, - { - "allValue": null, - "current": { - "selected": true, - "tags": [], - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_flavor_running_vms, hypervisor_family)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Hypervisor Family", - "multi": true, - "name": "hypervisor_family", - "options": [], - "query": { - "query": "label_values(cortex_flavor_running_vms, hypervisor_family)", - "refId": "prometheus-openstack-hypervisor_family-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 Flavor Usage", - "uid": "cortex-compute-flavors", - "version": 2 -} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/flavors.json.license b/tools/plutono/provisioning/dashboards/compute/flavors.json.license deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/compute/flavors.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/global.json b/tools/plutono/provisioning/dashboards/compute/global.json deleted file mode 100644 index 99e7c40c5..000000000 --- a/tools/plutono/provisioning/dashboards/compute/global.json +++ /dev/null @@ -1,470 +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": 1762778172153, - "links": [], - "panels": [ - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 34, - "options": { - "content": "# COMMITMENTS ARE NOT YET DISPLAYED HERE!\n\nIn these charts you can see the current available capacity per resource (vCPU, RAM, Disk). \n\nCurrent formula: total - failover capacity - used", - "mode": "markdown" - }, - "pluginVersion": "7.5.43", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "README", - "type": "text" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "metrics-global", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 6, - "x": 6, - "y": 13 - }, - "hiddenSeries": false, - "id": 2, - "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.43", - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeat": "availability_zone", - "scopedVars": {}, - "seriesOverrides": [ - { - "$$hashKey": "object:252", - "alias": "Available vCPU (%)", - "fill": 0 - }, - { - "$$hashKey": "object:259", - "alias": "Available RAM (%)", - "fill": 0 - }, - { - "$$hashKey": "object:266", - "alias": "Available Disk (%)", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_available_capacity_per_host{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\"\n }\n )\n)\n", - "interval": "", - "legendFormat": "Available CPU", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_total_allocatable_capacity_per_host{\n resource=\"cpu\",\n availability_zone=~\"$availability_zone\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total CPU", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_available_capacity_per_host{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_total_allocatable_capacity_per_host{\n resource=\"ram\",\n availability_zone=~\"$availability_zone\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host, resource) (\n cortex_available_capacity_per_host{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "E" - }, - { - "exemplar": true, - "expr": "sum(\n max by (compute_host) (\n cortex_total_allocatable_capacity_per_host{\n resource=\"disk\",\n availability_zone=~\"$availability_zone\",\n hypervisor_family=~\"$hypervisor_family\",\n workload_type=~\"$workload_type\",\n cpu_architecture=~\"$cpu_architecture\",\n enabled=~\"$enabled\"\n }\n )\n)", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "F" - } - ], - "thresholds": [ - { - "$$hashKey": "object:244", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "$availability_zone", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available vCPU (%)", - "binary": { - "left": "Available CPU", - "operator": "/", - "reducer": "sum", - "right": "Total CPU" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available RAM (%)", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available Disk (%)", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available CPU": true, - "Available Disk": true, - "Available RAM": true, - "Total CPU": true, - "Total Disk": true, - "Total RAM": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:45", - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:46", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": false, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "metrics-global", - "definition": "label_values(cortex_available_capacity_per_host, availability_zone)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Availability Zone", - "multi": true, - "name": "availability_zone", - "options": [], - "query": { - "query": "label_values(cortex_available_capacity_per_host, availability_zone)", - "refId": "metrics-global-availability_zone-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": false, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "metrics-global", - "definition": "label_values(cortex_available_capacity_per_host, hypervisor_family)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Hypervisor Family", - "multi": true, - "name": "hypervisor_family", - "options": [], - "query": { - "query": "label_values(cortex_available_capacity_per_host, hypervisor_family)", - "refId": "metrics-global-hypervisor_family-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": "metrics-global", - "definition": "label_values(cortex_available_capacity_per_host, enabled)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Enabled", - "multi": false, - "name": "enabled", - "options": [], - "query": { - "query": "label_values(cortex_available_capacity_per_host, enabled)", - "refId": "metrics-global-enabled-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": false, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "metrics-global", - "definition": "label_values(cortex_available_capacity_per_host, workload_type)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Workload Type", - "multi": true, - "name": "workload_type", - "options": [], - "query": { - "query": "label_values(cortex_available_capacity_per_host, workload_type)", - "refId": "metrics-global-workload_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": { - "selected": false, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "metrics-global", - "definition": "label_values(cortex_available_capacity_per_host, cpu_architecture)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "CPU Architecture", - "multi": true, - "name": "cpu_architecture", - "options": [], - "query": { - "query": "label_values(cortex_available_capacity_per_host, cpu_architecture)", - "refId": "metrics-global-cpu_architecture-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": "Global Cortex Infrastructure Dashboard - Compute", - "uid": "global-cortex-infrastructure", - "version": 7 -} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/global.json.license b/tools/plutono/provisioning/dashboards/compute/global.json.license deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/compute/global.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/kvm-details.json b/tools/plutono/provisioning/dashboards/compute/kvm-details.json deleted file mode 100644 index d04de1ed5..000000000 --- a/tools/plutono/provisioning/dashboards/compute/kvm-details.json +++ /dev/null @@ -1,2429 +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": 1767868544196, - "links": [], - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "hiddenSeries": false, - "id": 308, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Available CPU", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total CPU", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "E" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "F" - } - ], - "thresholds": [ - { - "$$hashKey": "object:3290", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available CPU (%)", - "binary": { - "left": "Available CPU", - "operator": "/", - "reducer": "sum", - "right": "Total CPU" - }, - "mode": "binary", - "reduce": { - "include": [ - "cortex_kvm_host_capacity_payg{availability_zone=\"qa-de-1b\", building_block=\"bb086\", component=\"nova-knowledge\", compute_host=\"node006-bb086\", container=\"manager\", cpu_architecture=\"sapphire-rapids\", decommissioned=\"false\", enabled=\"false\", endpoint=\"metrics\", external_customer=\"false\", github_org=\"cobaltcore-dev\", github_repo=\"cortex\", instance=\"10.1.51.29:2112\", job=\"cortex-nova-metrics\", namespace=\"default\", pod=\"cortex-nova-knowledge-controller-manager-686b8b5cd9-4g2hf\", resource=\"cpu\", service=\"cortex-nova-metrics\", workload_type=\"hana\"}" - ], - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available RAM (%)", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available Disk (%)", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available CPU": true, - "Available Disk": true, - "Available RAM": true, - "Total CPU": true, - "Total Disk": true, - "Total RAM": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:3187", - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:3188", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 0, - "y": 12 - }, - "id": 294, - "options": { - "content": "

CPU

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 8, - "y": 12 - }, - "id": 295, - "options": { - "content": "

RAM

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 16, - "y": 12 - }, - "id": 293, - "options": { - "content": "

Disk

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "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": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 14 - }, - "id": 302, - "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(max(cortex_kvm_host_capacity_utilized{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_failover{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_reserved{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "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": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 14 - }, - "id": 309, - "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(max(cortex_kvm_host_capacity_utilized{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_failover{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_reserved{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "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": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 14 - }, - "id": 310, - "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(max(cortex_kvm_host_capacity_utilized{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_failover{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_reserved{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "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": 281, - "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:1091", - "alias": "/.*/", - "color": "#73BF69" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max(cortex_kvm_host_capacity_payg{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available per Host", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:636", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:637", - "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": "mbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 22 - }, - "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:1091", - "alias": "/.*/", - "color": "#73BF69" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max(cortex_kvm_host_capacity_payg{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [ - { - "$$hashKey": "object:83", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#8AB8FF", - "op": "lt", - "value": 2097152, - "yaxis": "left" - }, - { - "$$hashKey": "object:91", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#3274D9", - "op": "lt", - "value": 3145728, - "yaxis": "left" - }, - { - "$$hashKey": "object:98", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#C0D8FF", - "op": "lt", - "value": 1048576, - "yaxis": "left" - }, - { - "$$hashKey": "object:106", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "rgba(31, 96, 196, 0.6)", - "op": "lt", - "value": 4194304, - "yaxis": "left" - }, - { - "$$hashKey": "object:201", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#E02F44", - "op": "lt", - "value": 6291456, - "yaxis": "left" - }, - { - "$$hashKey": "object:212", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#C4162A", - "op": "lt", - "value": 8388608, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available per Host", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:636", - "format": "mbytes", - "label": null, - "logBase": 1, - "max": "12582912", - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:637", - "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", - "description": "", - "fieldConfig": { - "defaults": { - "unit": "gbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 22 - }, - "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:1091", - "alias": "/.*/", - "color": "#73BF69" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max(cortex_kvm_host_capacity_payg{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available per Host", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:636", - "format": "gbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:637", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 30 - }, - "id": 291, - "panels": [], - "repeat": "nodes", - "title": "$nodes", - "type": "row" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 0, - "y": 31 - }, - "id": 289, - "options": { - "content": "

CPU

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 8, - "y": 31 - }, - "id": 292, - "options": { - "content": "

RAM

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 16, - "y": 31 - }, - "id": 296, - "options": { - "content": "

Disk

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 0, - "y": 33 - }, - "hiddenSeries": false, - "id": 2, - "interval": "5m", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:172", - "alias": "PAYG", - "color": "rgba(115, 191, 105, 0.46)" - }, - { - "$$hashKey": "object:305", - "alias": "Workload", - "color": "#8F3BB8" - }, - { - "$$hashKey": "object:313", - "alias": "Failover", - "color": "#FF7383" - }, - { - "$$hashKey": "object:321", - "alias": "Reservations", - "color": "#5794F2" - }, - { - "$$hashKey": "object:355", - "alias": "Total", - "dashes": true, - "fill": 0, - "lines": true, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_utilized{resource=\"cpu\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reservations", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "PAYG", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": false, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:83", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:84", - "format": "short", - "label": null, - "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(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": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 4, - "y": 33 - }, - "id": 287, - "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(cortex_kvm_host_capacity_utilized{resource=\"cpu\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "mbytes" - }, - "overrides": [] - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 8, - "y": 33 - }, - "hiddenSeries": false, - "id": 298, - "interval": "5m", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:172", - "alias": "PAYG", - "color": "rgba(115, 191, 105, 0.46)" - }, - { - "$$hashKey": "object:305", - "alias": "Workload", - "color": "#8F3BB8" - }, - { - "$$hashKey": "object:313", - "alias": "Failover", - "color": "#FF7383" - }, - { - "$$hashKey": "object:321", - "alias": "Reservations", - "color": "#5794F2" - }, - { - "$$hashKey": "object:355", - "alias": "Total", - "dashes": true, - "fill": 0, - "lines": true, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_utilized{resource=\"ram\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reservations", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "PAYG", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": false, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:83", - "format": "mbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:84", - "format": "short", - "label": null, - "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(115, 191, 105, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 12, - "y": 33 - }, - "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(cortex_kvm_host_capacity_utilized{resource=\"ram\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "gbytes" - }, - "overrides": [] - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 16, - "y": 33 - }, - "hiddenSeries": false, - "id": 300, - "interval": "5m", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:172", - "alias": "PAYG", - "color": "rgba(115, 191, 105, 0.46)" - }, - { - "$$hashKey": "object:305", - "alias": "Workload", - "color": "#8F3BB8" - }, - { - "$$hashKey": "object:313", - "alias": "Failover", - "color": "#FF7383" - }, - { - "$$hashKey": "object:321", - "alias": "Reservations", - "color": "#5794F2" - }, - { - "$$hashKey": "object:355", - "alias": "Total", - "dashes": true, - "fill": 0, - "lines": true, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_utilized{resource=\"disk\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reservations", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "PAYG", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": false, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:83", - "format": "gbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:84", - "format": "short", - "label": null, - "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(115, 191, 105, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 20, - "y": 33 - }, - "id": 299, - "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(cortex_kvm_host_capacity_utilized{resource=\"disk\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_kvm_host_capacity_utilized, availability_zone)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Availability Zone", - "multi": true, - "name": "availability_zone", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized, 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_kvm_host_capacity_utilized, building_block)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Building Block", - "multi": true, - "name": "building_block", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized, building_block)", - "refId": "prometheus-openstack-building_block-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_kvm_host_capacity_utilized, enabled)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Enabled", - "multi": false, - "name": "enabled", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized, 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_kvm_host_capacity_utilized, compute_host)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Nodes", - "multi": true, - "name": "nodes", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized{building_block=~\"$building_block\",enabled=~\"$enabled\"}, compute_host)", - "refId": "prometheus-openstack-nodes-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-14d", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Cortex KVM Compute Infrastructure - Details", - "uid": "cortex-compute-kvm-details", - "version": 1 -} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/kvm-details.json.license b/tools/plutono/provisioning/dashboards/compute/kvm-details.json.license deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/compute/kvm-details.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/compute/kvm-overview.json b/tools/plutono/provisioning/dashboards/compute/kvm-overview.json deleted file mode 100644 index 6be2acbd3..000000000 --- a/tools/plutono/provisioning/dashboards/compute/kvm-overview.json +++ /dev/null @@ -1,2429 +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": 1767868544196, - "links": [], - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "percentunit" - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "hiddenSeries": false, - "id": 308, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Available CPU", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available RAM", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available Disk", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total CPU", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total RAM", - "refId": "E" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total Disk", - "refId": "F" - } - ], - "thresholds": [ - { - "$$hashKey": "object:3290", - "colorMode": "critical", - "fill": true, - "line": true, - "op": "lt", - "value": 0.2, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Capacity over time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available CPU (%)", - "binary": { - "left": "Available CPU", - "operator": "/", - "reducer": "sum", - "right": "Total CPU" - }, - "mode": "binary", - "reduce": { - "include": [ - "cortex_kvm_host_capacity_payg{availability_zone=\"qa-de-1b\", building_block=\"bb086\", component=\"nova-knowledge\", compute_host=\"node006-bb086\", container=\"manager\", cpu_architecture=\"sapphire-rapids\", decommissioned=\"false\", enabled=\"false\", endpoint=\"metrics\", external_customer=\"false\", github_org=\"cobaltcore-dev\", github_repo=\"cortex\", instance=\"10.1.51.29:2112\", job=\"cortex-nova-metrics\", namespace=\"default\", pod=\"cortex-nova-knowledge-controller-manager-686b8b5cd9-4g2hf\", resource=\"cpu\", service=\"cortex-nova-metrics\", workload_type=\"hana\"}" - ], - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available RAM (%)", - "binary": { - "left": "Available RAM", - "operator": "/", - "reducer": "sum", - "right": "Total RAM" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "calculateField", - "options": { - "alias": "Available Disk (%)", - "binary": { - "left": "Available Disk", - "operator": "/", - "reducer": "sum", - "right": "Total Disk" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Available CPU": true, - "Available Disk": true, - "Available RAM": true, - "Total CPU": true, - "Total Disk": true, - "Total RAM": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:3187", - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:3188", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 0, - "y": 12 - }, - "id": 294, - "options": { - "content": "

CPU

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 8, - "y": 12 - }, - "id": 295, - "options": { - "content": "

RAM

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 16, - "y": 12 - }, - "id": 293, - "options": { - "content": "

Disk

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "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": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 14 - }, - "id": 302, - "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(max(cortex_kvm_host_capacity_utilized{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_failover{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_reserved{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "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": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 14 - }, - "id": 309, - "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(max(cortex_kvm_host_capacity_utilized{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_failover{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_reserved{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "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": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 14 - }, - "id": 310, - "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(max(cortex_kvm_host_capacity_utilized{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_failover{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_payg{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_total{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(max(cortex_kvm_host_capacity_reserved{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host))", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "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": 281, - "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:1091", - "alias": "/.*/", - "color": "#73BF69" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max(cortex_kvm_host_capacity_payg{resource=\"cpu\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available per Host", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:636", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:637", - "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": "mbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 22 - }, - "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:1091", - "alias": "/.*/", - "color": "#73BF69" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max(cortex_kvm_host_capacity_payg{resource=\"ram\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [ - { - "$$hashKey": "object:83", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#8AB8FF", - "op": "lt", - "value": 2097152, - "yaxis": "left" - }, - { - "$$hashKey": "object:91", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#3274D9", - "op": "lt", - "value": 3145728, - "yaxis": "left" - }, - { - "$$hashKey": "object:98", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#C0D8FF", - "op": "lt", - "value": 1048576, - "yaxis": "left" - }, - { - "$$hashKey": "object:106", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "rgba(31, 96, 196, 0.6)", - "op": "lt", - "value": 4194304, - "yaxis": "left" - }, - { - "$$hashKey": "object:201", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#E02F44", - "op": "lt", - "value": 6291456, - "yaxis": "left" - }, - { - "$$hashKey": "object:212", - "colorMode": "custom", - "fill": false, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": true, - "lineColor": "#C4162A", - "op": "lt", - "value": 8388608, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available per Host", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:636", - "format": "mbytes", - "label": null, - "logBase": 1, - "max": "12582912", - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:637", - "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", - "description": "", - "fieldConfig": { - "defaults": { - "unit": "gbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 22 - }, - "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:1091", - "alias": "/.*/", - "color": "#73BF69" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max(cortex_kvm_host_capacity_payg{resource=\"disk\",building_block=~\"$building_block\",enabled=~\"$enabled\",compute_host=~\"$nodes\"}) by (compute_host)", - "instant": true, - "interval": "", - "legendFormat": "{{compute_host}}", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Available per Host", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "series", - "name": null, - "show": false, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "$$hashKey": "object:636", - "format": "gbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "-10", - "show": true - }, - { - "$$hashKey": "object:637", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 30 - }, - "id": 291, - "panels": [], - "repeat": null, - "title": "$nodes", - "type": "row" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 0, - "y": 31 - }, - "id": 289, - "options": { - "content": "

CPU

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 8, - "y": 31 - }, - "id": 292, - "options": { - "content": "

RAM

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 16, - "y": 31 - }, - "id": 296, - "options": { - "content": "

Disk

", - "mode": "markdown" - }, - "pluginVersion": "7.5.45", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "type": "text" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 0, - "y": 33 - }, - "hiddenSeries": false, - "id": 2, - "interval": "5m", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:172", - "alias": "PAYG", - "color": "rgba(115, 191, 105, 0.46)" - }, - { - "$$hashKey": "object:305", - "alias": "Workload", - "color": "#8F3BB8" - }, - { - "$$hashKey": "object:313", - "alias": "Failover", - "color": "#FF7383" - }, - { - "$$hashKey": "object:321", - "alias": "Reservations", - "color": "#5794F2" - }, - { - "$$hashKey": "object:355", - "alias": "Total", - "dashes": true, - "fill": 0, - "lines": true, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_utilized{resource=\"cpu\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reservations", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "PAYG", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": false, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:83", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:84", - "format": "short", - "label": null, - "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(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": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 4, - "y": 33 - }, - "id": 287, - "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(cortex_kvm_host_capacity_utilized{resource=\"cpu\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"cpu\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "mbytes" - }, - "overrides": [] - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 8, - "y": 33 - }, - "hiddenSeries": false, - "id": 298, - "interval": "5m", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:172", - "alias": "PAYG", - "color": "rgba(115, 191, 105, 0.46)" - }, - { - "$$hashKey": "object:305", - "alias": "Workload", - "color": "#8F3BB8" - }, - { - "$$hashKey": "object:313", - "alias": "Failover", - "color": "#FF7383" - }, - { - "$$hashKey": "object:321", - "alias": "Reservations", - "color": "#5794F2" - }, - { - "$$hashKey": "object:355", - "alias": "Total", - "dashes": true, - "fill": 0, - "lines": true, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_utilized{resource=\"ram\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reservations", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "PAYG", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": false, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:83", - "format": "mbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:84", - "format": "short", - "label": null, - "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(115, 191, 105, 0)", - "value": null - } - ] - }, - "unit": "mbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 12, - "y": 33 - }, - "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(cortex_kvm_host_capacity_utilized{resource=\"ram\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"ram\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "gbytes" - }, - "overrides": [] - }, - "fill": 10, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 16, - "y": 33 - }, - "hiddenSeries": false, - "id": 300, - "interval": "5m", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.45", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:172", - "alias": "PAYG", - "color": "rgba(115, 191, 105, 0.46)" - }, - { - "$$hashKey": "object:305", - "alias": "Workload", - "color": "#8F3BB8" - }, - { - "$$hashKey": "object:313", - "alias": "Failover", - "color": "#FF7383" - }, - { - "$$hashKey": "object:321", - "alias": "Reservations", - "color": "#5794F2" - }, - { - "$$hashKey": "object:355", - "alias": "Total", - "dashes": true, - "fill": 0, - "lines": true, - "linewidth": 3, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_utilized{resource=\"disk\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reservations", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "PAYG", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": false, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:83", - "format": "gbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:84", - "format": "short", - "label": null, - "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(115, 191, 105, 0)", - "value": null - } - ] - }, - "unit": "gbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Available (%)" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "yellow", - "value": 0.2 - }, - { - "color": "green", - "value": 0.3 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 20, - "y": 33 - }, - "id": 299, - "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(cortex_kvm_host_capacity_utilized{resource=\"disk\",compute_host=\"$nodes\"})", - "interval": "", - "legendFormat": "Workload", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_failover{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Failover", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_payg{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Available", - "refId": "C" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_total{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "refId": "D" - }, - { - "exemplar": true, - "expr": "sum(cortex_kvm_host_capacity_reserved{resource=\"disk\",compute_host=\"$nodes\"})", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "refId": "E" - } - ], - "timeFrom": null, - "timeShift": null, - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "Available (%)", - "binary": { - "left": "Available", - "operator": "/", - "reducer": "sum", - "right": "Total" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": { - "Available": 1, - "Available (%)": 0, - "Failover": 5, - "Reserved": 6, - "Time": 3, - "Total": 2, - "Workload": 4 - }, - "renameByName": {} - } - } - ], - "type": "stat" - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "prometheus-openstack", - "definition": "label_values(cortex_kvm_host_capacity_utilized, availability_zone)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Availability Zone", - "multi": true, - "name": "availability_zone", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized, 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_kvm_host_capacity_utilized, building_block)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Building Block", - "multi": true, - "name": "building_block", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized, building_block)", - "refId": "prometheus-openstack-building_block-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_kvm_host_capacity_utilized, enabled)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Enabled", - "multi": false, - "name": "enabled", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized, 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_kvm_host_capacity_utilized, compute_host)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Nodes", - "multi": true, - "name": "nodes", - "options": [], - "query": { - "query": "label_values(cortex_kvm_host_capacity_utilized{building_block=~\"$building_block\",enabled=~\"$enabled\"}, compute_host)", - "refId": "prometheus-openstack-nodes-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-14d", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "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 deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/compute/kvm-overview.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# 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 deleted file mode 100644 index 29875c773..000000000 --- a/tools/plutono/provisioning/dashboards/compute/vmware-details.json +++ /dev/null @@ -1,3041 +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, - "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 deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/compute/vmware-details.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# 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 deleted file mode 100644 index c5fcbd331..000000000 --- a/tools/plutono/provisioning/dashboards/compute/vmware-overview.json +++ /dev/null @@ -1,8957 +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, - "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 deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/compute/vmware-overview.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/cortex-placement-shim-status.json b/tools/plutono/provisioning/dashboards/cortex-placement-shim-status.json deleted file mode 100644 index f8d786082..000000000 --- a/tools/plutono/provisioning/dashboards/cortex-placement-shim-status.json +++ /dev/null @@ -1,976 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Plutono --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "Cortex Placement Shim status dashboard", - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, - "id": 1, - "panels": [], - "title": "Downstream Requests (Client → Shim)", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 0, "y": 1 }, - "hiddenSeries": false, - "id": 2, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(rate(cortex_placement_shim_downstream_request_duration_seconds_count{responsecode=~\"2..\"}[2m])) by (method, pattern, responsecode)", - "interval": "", - "legendFormat": "{{method}} {{pattern}} {{responsecode}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Downstream successful request rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 6, "y": 1 }, - "hiddenSeries": false, - "id": 3, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(rate(cortex_placement_shim_downstream_request_duration_seconds_count{responsecode=~\"4..|5..\"}[2m])) by (method, pattern, responsecode)", - "interval": "", - "legendFormat": "{{method}} {{pattern}} {{responsecode}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Downstream error request rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "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": "s" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 12, "y": 1 }, - "hiddenSeries": false, - "id": 4, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_downstream_request_duration_seconds_bucket{responsecode=~\"2..\"}[2m])) by (le, method, pattern))", - "interval": "", - "legendFormat": "{{method}} {{pattern}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Downstream p95 latency (successful)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "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": "s" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 18, "y": 1 }, - "hiddenSeries": false, - "id": 5, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_downstream_request_duration_seconds_bucket{responsecode=~\"4..|5..\"}[2m])) by (le, method, pattern))", - "interval": "", - "legendFormat": "{{method}} {{pattern}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Downstream p95 latency (errors)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { "align": false, "alignLevel": null } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { "h": 1, "w": 24, "x": 0, "y": 12 }, - "id": 6, - "panels": [], - "title": "Upstream Requests (Shim → Placement API)", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 0, "y": 13 }, - "hiddenSeries": false, - "id": 7, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(rate(cortex_placement_shim_upstream_request_duration_seconds_count{responsecode=~\"2..\"}[2m])) by (method, pattern, responsecode)", - "interval": "", - "legendFormat": "{{method}} {{pattern}} {{responsecode}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Upstream successful request rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 6, "y": 13 }, - "hiddenSeries": false, - "id": 8, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(rate(cortex_placement_shim_upstream_request_duration_seconds_count{responsecode=~\"4..|5..\"}[2m])) by (method, pattern, responsecode)", - "interval": "", - "legendFormat": "{{method}} {{pattern}} {{responsecode}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Upstream error request rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "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": "s" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 12, "y": 13 }, - "hiddenSeries": false, - "id": 9, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_upstream_request_duration_seconds_bucket{responsecode=~\"2..\"}[2m])) by (le, method, pattern))", - "interval": "", - "legendFormat": "{{method}} {{pattern}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Upstream p95 latency (successful)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "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": "s" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 6, "x": 18, "y": 13 }, - "hiddenSeries": false, - "id": 10, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_placement_shim_upstream_request_duration_seconds_bucket{responsecode=~\"4..|5..\"}[2m])) by (le, method, pattern))", - "interval": "", - "legendFormat": "{{method}} {{pattern}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Upstream p95 latency (errors)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { "align": false, "alignLevel": null } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { "h": 1, "w": 24, "x": 0, "y": 24 }, - "id": 15, - "panels": [], - "title": "Kubernetes Pods", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "decmbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 12, "x": 0, "y": 25 }, - "hiddenSeries": false, - "id": 16, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "go_memstats_alloc_bytes{pod=~\"cortex-placement-shim-.*\"} / 1_000_000", - "hide": false, - "interval": "", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "warning", - "fill": true, - "line": false, - "op": "gt", - "value": 1500, - "yaxis": "left" - }, - { - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 2048, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory usage (MiB)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decmbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { "align": false, "alignLevel": null } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { "h": 11, "w": 12, "x": 12, "y": 25 }, - "hiddenSeries": false, - "id": 17, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { "alertThreshold": true }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "rate(process_cpu_seconds_total{pod=~\"cortex-placement-shim-.*\"}[2m])", - "hide": false, - "interval": "", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "warning", - "fill": true, - "line": false, - "op": "gt", - "value": 0.4, - "yaxis": "left" - }, - { - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 0.5, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU usage (cores)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { "align": false, "alignLevel": null } - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { "list": [] }, - "time": { "from": "now-6h", "to": "now" }, - "timepicker": {}, - "timezone": "", - "title": "Cortex Placement Shim Status", - "uid": "cortex-placement-shim-status-dashboard", - "version": 1 -} diff --git a/tools/plutono/provisioning/dashboards/cortex-placement-shim-status.license b/tools/plutono/provisioning/dashboards/cortex-placement-shim-status.license deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/cortex-placement-shim-status.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/cortex-status.json b/tools/plutono/provisioning/dashboards/cortex-status.json deleted file mode 100644 index 37f4b2479..000000000 --- a/tools/plutono/provisioning/dashboards/cortex-status.json +++ /dev/null @@ -1,2366 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Plutono --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "", - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 1, - "links": [], - "panels": [ - { - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 57, - "title": "Custom Resources", - "type": "row" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgb(66, 66, 66)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 1 - }, - "id": 7, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "exemplar": true, - "expr": "max by(datasource) (cortex_datasource_state{state!=\"ready\"}) * 0", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{datasource}}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max by(datasource) (cortex_datasource_state{state=\"ready\"}) * 1", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{datasource}}", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Datasource status", - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgb(66, 66, 66)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 1 - }, - "id": 51, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "exemplar": true, - "expr": "max by(knowledge) (cortex_knowledge_state{state!=\"ready\"}) * 0", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{knowledge}}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max by(knowledge) (cortex_knowledge_state{state=\"ready\"}) * 1", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{knowledge}}", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Knowledge status", - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgb(66, 66, 66)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 9 - }, - "id": 52, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "exemplar": true, - "expr": "max by(pipeline) (cortex_pipeline_state{state!=\"ready\"}) * 0", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{pipeline}}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max by(pipeline) (cortex_pipeline_state{state=\"ready\"}) * 1", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{pipeline}}", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Pipeline status", - "type": "stat" - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "rgb(66, 66, 66)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 9 - }, - "id": 54, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "exemplar": true, - "expr": "max by(kpi) (cortex_kpi_state{state!=\"ready\"}) * 0", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{kpi}}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max by(kpi) (cortex_kpi_state{state=\"ready\"}) * 1", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{kpi}}", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "KPI status", - "type": "stat" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 49, - "panels": [], - "title": "Scheduling Activity", - "type": "row" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 0, - "y": 18 - }, - "id": 41, - "options": { - "content": "", - "mode": "markdown" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Pipeline: kvm-* (Nova)", - "type": "text" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 18 - }, - "id": 43, - "options": { - "content": "", - "mode": "markdown" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Pipeline: manila-external-scheduler", - "type": "text" - }, - { - "cards": { - "cardPadding": 0, - "cardRound": 0 - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateTurbo", - "exponent": 0.01, - "max": null, - "min": null, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": "prometheus-openstack", - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 19 - }, - "heatmap": {}, - "hideZeroBuckets": false, - "highlightCards": true, - "id": 45, - "interval": null, - "legend": { - "show": true - }, - "pluginVersion": "7.5.35", - "reverseYBuckets": false, - "targets": [ - { - "exemplar": false, - "expr": "sum(delta(cortex_filter_weigher_pipeline_step_shift_origin_bucket{outidx=\"0\",pipeline=~\"kvm-.*\"}[2m]) / 2) by (le)", - "format": "heatmap", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{le}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Nova: from which idx the selected host came from", - "tooltip": { - "show": true, - "showHistogram": false - }, - "tooltipDecimals": null, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": 0, - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "cards": { - "cardPadding": 0, - "cardRound": 0 - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateTurbo", - "exponent": 0.01, - "max": null, - "min": null, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": "prometheus-openstack", - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 19 - }, - "heatmap": {}, - "hideZeroBuckets": false, - "highlightCards": true, - "id": 47, - "interval": null, - "legend": { - "show": true - }, - "pluginVersion": "7.5.35", - "reverseYBuckets": false, - "targets": [ - { - "exemplar": false, - "expr": "sum(delta(cortex_filter_weigher_pipeline_step_shift_origin_bucket{outidx=\"0\",pipeline=\"manila-external-scheduler\"}[2m]) / 2) by (le)", - "format": "heatmap", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{le}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Manila: from which idx the selected host came from", - "tooltip": { - "show": true, - "showHistogram": false - }, - "tooltipDecimals": null, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": 0, - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "description": "", - "fieldConfig": { - "defaults": { - "unit": "short" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 31 - }, - "hiddenSeries": false, - "id": 58, - "interval": null, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "sum by (faultmsg,state) (cortex_vm_faults{faultyvm!=\"no\"})", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{state}} {{faultmsg}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Nova: faults in vm scheduling lifecycle", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:234", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:235", - "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": "short" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 43 - }, - "hiddenSeries": false, - "id": 39, - "legend": { - "avg": false, - "current": false, - "hideZero": true, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (pipeline, host, step, alias) (delta(cortex_filter_weigher_pipeline_step_weight_modification[2m]))", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{ pipeline }} {{ host }} {{ step }} ({{ alias }})", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Weight modifications", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:556", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:557", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 6, - "x": 0, - "y": 55 - }, - "hiddenSeries": false, - "id": 31, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(rate(cortex_scheduler_api_request_duration_seconds_count{status=~\"2.+\"}[2m])) by (method, path, status, error)", - "interval": "", - "legendFormat": "{{method}} {{path}} {{status}} {{error}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Successful request rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:181", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:182", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 6, - "x": 6, - "y": 55 - }, - "hiddenSeries": false, - "id": 33, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum(rate(cortex_scheduler_api_request_duration_seconds_count{status=~\"4.+|5.+\"}[2m])) by (method, path, status, error)", - "instant": false, - "interval": "", - "legendFormat": "{{method}} {{path}} {{status}} {{error}}", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:702", - "colorMode": "critical", - "fill": true, - "fillColor": "rgba(51, 162, 229, 0.2)", - "line": false, - "lineColor": "rgba(31, 96, 196, 0.6)", - "op": "gt", - "value": 0.1, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Error request rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:181", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:182", - "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": "s" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 6, - "x": 12, - "y": 55 - }, - "hiddenSeries": false, - "id": 35, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_scheduler_api_request_duration_seconds_bucket{status=~\"2.+\"}[2m])) by (le, method, path, status, error))", - "interval": "", - "legendFormat": "{{method}} {{path}} {{status}} {{error}}", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:211", - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 5, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Average response time (success)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1136", - "format": "s", - "label": null, - "logBase": 1, - "max": "6.5", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:1137", - "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": "s" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 6, - "x": 18, - "y": 55 - }, - "hiddenSeries": false, - "id": 37, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_scheduler_api_request_duration_seconds_bucket{status=~\"4.+|5.+\"}[2m])) by (le, method, path, status, error))", - "interval": "", - "legendFormat": "{{method}} {{path}} {{status}} {{error}}", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:122", - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 5, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Average response time (error)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1136", - "format": "s", - "label": null, - "logBase": 1, - "max": "6.5", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:1137", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 66 - }, - "hiddenSeries": false, - "id": 27, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_filter_weigher_pipeline_step_run_duration_seconds_bucket[2m])) by (le, step, alias, pipeline))", - "interval": "", - "legendFormat": "{{pipeline}} {{step}}", - "refId": "A" - } - ], - "thresholds": [ - { - "$$hashKey": "object:1853", - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 5, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Time needed to run scheduler steps", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:438", - "format": "s", - "label": null, - "logBase": 1, - "max": "6.5", - "min": null, - "show": true - }, - { - "$$hashKey": "object:439", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 66 - }, - "hiddenSeries": false, - "id": 29, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "exemplar": true, - "expr": "sum by(pipeline) (rate(cortex_filter_weigher_pipeline_requests_total{}[2m]))", - "interval": "", - "legendFormat": "Pipeline: {{pipeline}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Requests by type (rate over 2min)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:438", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:439", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 78 - }, - "id": 5, - "panels": [], - "title": "Kubernetes Pods", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "unit": "decmbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 12, - "x": 0, - "y": 79 - }, - "hiddenSeries": false, - "id": 2, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "go_memstats_alloc_bytes{pod=~\"cortex-.*\"} / 1_000_000", - "hide": false, - "interval": "", - "legendFormat": "{{pod}}", - "refId": "B" - } - ], - "thresholds": [ - { - "$$hashKey": "object:475", - "colorMode": "warning", - "fill": true, - "line": false, - "op": "gt", - "value": 1000, - "yaxis": "left" - }, - { - "$$hashKey": "object:481", - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 3000, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:447", - "decimals": null, - "format": "decmbytes", - "label": null, - "logBase": 1, - "max": "4000", - "min": null, - "show": true - }, - { - "$$hashKey": "object:448", - "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": "percentunit" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 12, - "x": 12, - "y": 79 - }, - "hiddenSeries": false, - "id": 3, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "rate(process_cpu_seconds_total{pod=~\"cortex-.*\"}[2m])", - "hide": false, - "interval": "", - "legendFormat": "{{pod}}", - "refId": "B" - } - ], - "thresholds": [ - { - "$$hashKey": "object:406", - "colorMode": "warning", - "fill": true, - "line": false, - "op": "gt", - "value": 0.6, - "yaxis": "left" - }, - { - "$$hashKey": "object:412", - "colorMode": "critical", - "fill": true, - "line": false, - "op": "gt", - "value": 0.8, - "yaxis": "left" - } - ], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:228", - "decimals": 1, - "format": "percentunit", - "label": "", - "logBase": 1, - "max": "1", - "min": null, - "show": true - }, - { - "$$hashKey": "object:229", - "decimals": null, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "rgb(66, 66, 66)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 90 - }, - "id": 50, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "name" - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "exemplar": true, - "expr": "up{pod=~\"cortex-.*\"}", - "hide": false, - "interval": "", - "legendFormat": "{{pod}}", - "refId": "B" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "All Pods Up?", - "type": "stat" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 102 - }, - "id": 25, - "panels": [], - "title": "Datasources", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 103 - }, - "hiddenSeries": false, - "id": 21, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max by(datasource) (increase(cortex_sync_objects[2m]))", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{ datasource }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "New objects synced", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:227", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:228", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 14, - "w": 12, - "x": 12, - "y": 103 - }, - "hiddenSeries": false, - "id": 23, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": false, - "min": false, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "max by(datasource) (increase(cortex_sync_request_processed_total[2m]))", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{ datasource }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Times synced", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:227", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:228", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 117 - }, - "id": 19, - "panels": [], - "title": "Descheduling Activity", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 13, - "w": 12, - "x": 0, - "y": 118 - }, - "hiddenSeries": false, - "id": 17, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_descheduler_pipeline_vm_descheduling_duration_seconds_bucket[2m])) by (le, error, skipped))", - "interval": "", - "legendFormat": "Error: {{error}}, Skipped: {{skipped}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Time needed to deschedule VM", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:438", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:439", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 13, - "w": 12, - "x": 12, - "y": 118 - }, - "hiddenSeries": false, - "id": 15, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "exemplar": true, - "expr": "sum by(error) (rate(cortex_detector_pipeline_run_duration_seconds_count{}[2m]))", - "interval": "", - "legendFormat": "Error: {{error}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Deschedulings (rate over 2min)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:438", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:439", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus-openstack", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 131 - }, - "hiddenSeries": false, - "id": 11, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(cortex_detector_pipeline_step_run_duration_seconds_bucket[2m])) by (le, step))", - "interval": "", - "legendFormat": "{{step}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Time needed to run descheduler steps", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:438", - "format": "s", - "label": null, - "logBase": 1, - "max": "1.5", - "min": null, - "show": true - }, - { - "$$hashKey": "object:439", - "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": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 131 - }, - "hiddenSeries": false, - "id": 13, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.37", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (error) (delta(cortex_detector_pipeline_run_duration_seconds_count{}[2m]))", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "Error: {{error}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Triggered migrations", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:468", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:469", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Cortex Status Dashboard", - "uid": "cortex-status-dashboard", - "version": 1 -} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/cortex-status.json.license b/tools/plutono/provisioning/dashboards/cortex-status.json.license deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/cortex-status.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/cortex.json b/tools/plutono/provisioning/dashboards/cortex.json deleted file mode 100644 index f36f99695..000000000 --- a/tools/plutono/provisioning/dashboards/cortex.json +++ /dev/null @@ -1,72 +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, - "id": 3, - "links": [], - "panels": [ - { - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 18, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "maxItems": 10, - "query": "Cortex ", - "showHeadings": false, - "showRecentlyViewed": false, - "showSearch": true, - "showStarred": false, - "tags": [] - }, - "pluginVersion": "7.5.37", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Cortex Dashboards", - "type": "dashlist" - } - ], - "refresh": "10s", - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Cortex", - "uid": "cortex", - "version": 1 -} \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/cortex.json.license b/tools/plutono/provisioning/dashboards/cortex.json.license deleted file mode 100644 index afcb6a5ce..000000000 --- a/tools/plutono/provisioning/dashboards/cortex.json.license +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/tools/plutono/provisioning/dashboards/dashboards.yml b/tools/plutono/provisioning/dashboards/dashboards.yml deleted file mode 100644 index d83d66d4f..000000000 --- a/tools/plutono/provisioning/dashboards/dashboards.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 - -apiVersion: 1 - -providers: - - name: 'default' - orgId: 1 - folder: '' - type: file - disableDeletion: false - editable: true - allowUiUpdates: true - options: - 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 diff --git a/tools/plutono/provisioning/datasources/datasources.yml b/tools/plutono/provisioning/datasources/datasources.yml deleted file mode 100644 index cb53c8e99..000000000 --- a/tools/plutono/provisioning/datasources/datasources.yml +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright SAP SE -# SPDX-License-Identifier: Apache-2.0 - -apiVersion: 1 - -datasources: - - name: prometheus-openstack - type: prometheus - access: proxy - # Created by the prometheus-operator. - url: prometheus-operated:9090 - jsonData: - timeInterval: "5s" - editable: true - - name: Nova Postgres - type: postgres - access: proxy - # Point at the postgres proxy that is running locally. - url: cortex-nova-postgresql:5432 - user: postgres - uid: nova-postgres - secureJsonData: - password: 'secret' - jsonData: - database: postgres - sslmode: 'disable' # disable/require/verify-ca/verify-full - maxOpenConns: 100 # Grafana v5.4+ - maxIdleConns: 100 # Grafana v5.4+ - maxIdleConnsAuto: true # Grafana v9.5.1+ - connMaxLifetime: 14400 # Grafana v5.4+ - postgresVersion: 1700 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10 - timescaledb: false - editable: true - - name: Manila Postgres - type: postgres - access: proxy - # Point at the postgres proxy that is running locally. - url: cortex-manila-postgresql:5432 - user: postgres - uid: manila-postgres - secureJsonData: - password: 'secret' - jsonData: - database: postgres - sslmode: 'disable' # disable/require/verify-ca/verify-full - maxOpenConns: 100 # Grafana v5.4+ - maxIdleConns: 100 # Grafana v5.4+ - maxIdleConnsAuto: true # Grafana v9.5.1+ - connMaxLifetime: 14400 # Grafana v5.4+ - postgresVersion: 1700 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10 - timescaledb: false - editable: true - - name: Cinder Postgres - type: postgres - access: proxy - # Point at the postgres proxy that is running locally. - url: cortex-cinder-postgresql:5432 - user: postgres - uid: cinder-postgres - secureJsonData: - password: 'secret' - jsonData: - database: postgres - sslmode: 'disable' # disable/require/verify-ca/verify-full - maxOpenConns: 100 # Grafana v5.4+ - maxIdleConns: 100 # Grafana v5.4+ - maxIdleConnsAuto: true # Grafana v9.5.1+ - connMaxLifetime: 14400 # Grafana v5.4+ - postgresVersion: 1700 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10 - timescaledb: false - editable: true \ No newline at end of file From d1f8649f2a37ee8d890101527d173462f098a0fd Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 14 Oct 2026 18:14:55 +0200 Subject: [PATCH 08/13] feat: add VCenter field to VMwareHostDetails and update vmware infrastructure metrics (#1356) Signed-off-by: Markus Wieland --- .../plugins/compute/vmware_host_details.go | 4 ++++ .../plugins/compute/vmware_host_details.sql | 19 ++++++++++++++++-- .../compute/vmware_host_details_test.go | 19 ++++++++++++++++++ .../kpis/plugins/infrastructure/shared.go | 2 ++ .../plugins/infrastructure/shared_test.go | 20 ++++++++++++++----- 5 files changed, 57 insertions(+), 7 deletions(-) diff --git a/internal/knowledge/extractor/plugins/compute/vmware_host_details.go b/internal/knowledge/extractor/plugins/compute/vmware_host_details.go index 14bca07ba..c87a8aa93 100644 --- a/internal/knowledge/extractor/plugins/compute/vmware_host_details.go +++ b/internal/knowledge/extractor/plugins/compute/vmware_host_details.go @@ -45,6 +45,10 @@ type VMwareHostDetails struct { // (e.g. "4TiB"), or to the nearest GiB (e.g. "512GiB") when smaller than // 1 TiB. "unknown" when the memory inventory is missing. PhysicalHostSize string `db:"physical_host_size"` + // VCenter of the building block this host belongs to, derived from the + // OpenStack aggregate whose name starts with "vc-". "unknown" when no such + // aggregate is associated with the host. + VCenter string `db:"vcenter"` } type VMwareHostDetailsExtractor struct { diff --git a/internal/knowledge/extractor/plugins/compute/vmware_host_details.sql b/internal/knowledge/extractor/plugins/compute/vmware_host_details.sql index 6be4fe1b4..788a71eb7 100644 --- a/internal/knowledge/extractor/plugins/compute/vmware_host_details.sql +++ b/internal/knowledge/extractor/plugins/compute/vmware_host_details.sql @@ -33,6 +33,18 @@ host_physical_memory AS ( WHERE i.inventory_class_name = 'MEMORY_MB' AND i.max_unit > 0 AND (i.total - i.reserved) > 0 +), +-- VCenter of the building block, derived from the OpenStack aggregate whose +-- name starts with 'vc-'. Aggregates are a flattened (name, compute_host) +-- membership table. In practice each host belongs to exactly one 'vc-' +-- aggregate; MIN keeps the result deterministic (lowest name) should a host +-- ever be a member of more than one. +host_vcenter AS ( + SELECT + a.compute_host, + MIN(CASE WHEN a.name LIKE 'vc-%' THEN a.name END) AS vcenter + FROM openstack_aggregates_v2 a + GROUP BY a.compute_host ) SELECT ht.service_host AS compute_host, @@ -76,7 +88,10 @@ SELECT WHEN ROUND(hpm.physical_size_mb / 1024.0) >= 1024 THEN CAST(CAST(ROUND(ROUND(hpm.physical_size_mb / 1024.0) / 1024.0) AS INTEGER) AS TEXT) || 'TiB' ELSE CAST(CAST(ROUND(hpm.physical_size_mb / 1024.0) AS INTEGER) AS TEXT) || 'GiB' - END AS physical_host_size + END AS physical_host_size, + COALESCE(hvc.vcenter, 'unknown') AS vcenter FROM host_traits ht LEFT JOIN host_physical_memory hpm - ON ht.hypervisor_id = hpm.resource_provider_uuid; + ON ht.hypervisor_id = hpm.resource_provider_uuid +LEFT JOIN host_vcenter hvc + ON ht.service_host = hvc.compute_host; diff --git a/internal/knowledge/extractor/plugins/compute/vmware_host_details_test.go b/internal/knowledge/extractor/plugins/compute/vmware_host_details_test.go index d24b1c0b1..8eb4edd83 100644 --- a/internal/knowledge/extractor/plugins/compute/vmware_host_details_test.go +++ b/internal/knowledge/extractor/plugins/compute/vmware_host_details_test.go @@ -37,6 +37,7 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { // Create dependency tables if err := testDB.CreateTable( testDB.AddTable(nova.Hypervisor{}), + testDB.AddTable(nova.Aggregate{}), testDB.AddTable(placement.Trait{}), testDB.AddTable(placement.InventoryUsage{}), ); err != nil { @@ -128,6 +129,19 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { t.Fatalf("expected no error, got %v", err) } + // Aggregates model vcenter membership: aggregate names starting with "vc-" + // identify the vcenter of a host. nova-compute-bb01 belongs to vc-a-0; the + // other hosts have no vc-* aggregate and must fall back to "unknown". The + // non-vc aggregate on bb01 must be ignored. + aggregates := []any{ + &nova.Aggregate{UUID: "agg1", Name: "vc-a-0", ComputeHost: new("nova-compute-bb01")}, + &nova.Aggregate{UUID: "agg2", Name: "some-other-aggregate", ComputeHost: new("nova-compute-bb01")}, + &nova.Aggregate{UUID: "agg3", Name: "not-a-vcenter", ComputeHost: new("nova-compute-bb04")}, + } + if err := testDB.Insert(aggregates...); err != nil { + t.Fatalf("expected no error, got %v", err) + } + hostAvailabilityZones, err := v1alpha1.BoxFeatureList([]any{ &HostAZ{AvailabilityZone: new("az1"), ComputeHost: "nova-compute-bb01"}, &HostAZ{AvailabilityZone: new("az1"), ComputeHost: "nova-compute-bb04"}, @@ -173,6 +187,7 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { RunningVMs: 5, PinnedProjects: new("project-123,project-456"), PhysicalHostSize: "4TiB", + VCenter: "vc-a-0", }, { ComputeHost: "nova-compute-bb04", @@ -186,6 +201,7 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { RunningVMs: 1, PinnedProjects: nil, PhysicalHostSize: "512GiB", + VCenter: "unknown", }, { ComputeHost: "nova-compute-bb05", @@ -199,6 +215,7 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { RunningVMs: 1, PinnedProjects: nil, PhysicalHostSize: "1TiB", + VCenter: "unknown", }, { ComputeHost: "nova-compute-bb06", @@ -212,6 +229,7 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { RunningVMs: 2, PinnedProjects: nil, PhysicalHostSize: "unknown", + VCenter: "unknown", }, { ComputeHost: "nova-compute-bb07", @@ -225,6 +243,7 @@ func TestVMwareHostDetailsExtractor_Extract(t *testing.T) { RunningVMs: 2, PinnedProjects: nil, PhysicalHostSize: "unknown", + VCenter: "unknown", }, } diff --git a/internal/knowledge/kpis/plugins/infrastructure/shared.go b/internal/knowledge/kpis/plugins/infrastructure/shared.go index d71585825..47e1d65f0 100644 --- a/internal/knowledge/kpis/plugins/infrastructure/shared.go +++ b/internal/knowledge/kpis/plugins/infrastructure/shared.go @@ -56,6 +56,7 @@ func (h vmwareHost) getHostLabels() []string { strconv.FormatBool(pinnedProjects), pinnedProjectIds, physicalHostSize, + h.VCenter, } } @@ -71,6 +72,7 @@ var vmwareHostLabels = []string{ "pinned_projects", "pinned_project_ids", "physical_host_size", + "vcenter", } var kvmHostLabels = []string{ diff --git a/internal/knowledge/kpis/plugins/infrastructure/shared_test.go b/internal/knowledge/kpis/plugins/infrastructure/shared_test.go index db5b88cda..78d4f3125 100644 --- a/internal/knowledge/kpis/plugins/infrastructure/shared_test.go +++ b/internal/knowledge/kpis/plugins/infrastructure/shared_test.go @@ -47,6 +47,7 @@ func mockVMwareHostLabels(computeHost, az string) map[string]string { "pinned_projects": "false", "pinned_project_ids": "", "physical_host_size": "unknown", + "vcenter": "", } } @@ -71,7 +72,7 @@ func TestVMwareHost_GetHostLabels(t *testing.T) { DisabledReason: nil, PinnedProjects: nil, }}, - want: []string{"az1", "nova-compute-1", "cascade-lake", "general-purpose", "true", "false", "false", "-", "false", "", "unknown"}, + want: []string{"az1", "nova-compute-1", "cascade-lake", "general-purpose", "true", "false", "false", "-", "false", "", "unknown", ""}, }, { name: "disabled reason set", @@ -80,7 +81,7 @@ func TestVMwareHost_GetHostLabels(t *testing.T) { ComputeHost: "nova-compute-2", DisabledReason: str("scheduled-maintenance"), }}, - want: []string{"az2", "nova-compute-2", "", "", "false", "false", "false", "scheduled-maintenance", "false", "", "unknown"}, + want: []string{"az2", "nova-compute-2", "", "", "false", "false", "false", "scheduled-maintenance", "false", "", "unknown", ""}, }, { name: "pinned projects set", @@ -89,7 +90,7 @@ func TestVMwareHost_GetHostLabels(t *testing.T) { ComputeHost: "nova-compute-3", PinnedProjects: str("proj-a,proj-b"), }}, - want: []string{"az1", "nova-compute-3", "", "", "false", "false", "false", "-", "true", "proj-a,proj-b", "unknown"}, + want: []string{"az1", "nova-compute-3", "", "", "false", "false", "false", "-", "true", "proj-a,proj-b", "unknown", ""}, }, { name: "decommissioned and external customer", @@ -99,7 +100,7 @@ func TestVMwareHost_GetHostLabels(t *testing.T) { Decommissioned: true, ExternalCustomer: true, }}, - want: []string{"az3", "nova-compute-4", "", "", "false", "true", "true", "-", "false", "", "unknown"}, + want: []string{"az3", "nova-compute-4", "", "", "false", "true", "true", "-", "false", "", "unknown", ""}, }, { name: "physical host size set", @@ -108,7 +109,16 @@ func TestVMwareHost_GetHostLabels(t *testing.T) { ComputeHost: "nova-compute-5", PhysicalHostSize: "4TiB", }}, - want: []string{"az1", "nova-compute-5", "", "", "false", "false", "false", "-", "false", "", "4TiB"}, + want: []string{"az1", "nova-compute-5", "", "", "false", "false", "false", "-", "false", "", "4TiB", ""}, + }, + { + name: "vcenter set", + host: vmwareHost{compute.VMwareHostDetails{ + AvailabilityZone: "az1", + ComputeHost: "nova-compute-6", + VCenter: "vc-a-0", + }}, + want: []string{"az1", "nova-compute-6", "", "", "false", "false", "false", "-", "false", "", "unknown", "vc-a-0"}, }, } From 830963b8b79e2125b94660bfb0fd3314804558f5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 19:58:52 +0200 Subject: [PATCH 09/13] Renovate: Update kube-prometheus-stack Docker tag to v92.6.0 (#1364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kube-prometheus-stack](https://redirect.github.com/prometheus-operator/kube-prometheus) ([source](https://redirect.github.com/prometheus-community/helm-charts)) | minor | `92.3.1` → `92.6.0` | --- ### Release Notes
prometheus-community/helm-charts (kube-prometheus-stack) ### [`v92.6.0`](https://redirect.github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-92.6.0) kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator. #### What's Changed - \[kube-prometheus-stack] Update ghcr.io/jkroepke/kube-webhook-certgen Docker tag to v1.11.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7372](https://redirect.github.com/prometheus-community/helm-charts/pull/7372) **Full Changelog**: ### [`v92.5.0`](https://redirect.github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-92.5.0) kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator. #### What's Changed - \[kube-prometheus-stack] Update kube-prometheus-stack dependency non-major updates by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7369](https://redirect.github.com/prometheus-community/helm-charts/pull/7369) **Full Changelog**: ### [`v92.4.0`](https://redirect.github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-92.4.0) kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator. #### What's Changed - \[kube-prometheus-stack] Update prometheus-node-exporter Docker tag to v4.60.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7367](https://redirect.github.com/prometheus-community/helm-charts/pull/7367) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - "after 6pm every weekday,every weekend,before 8am every weekday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cobaltcore-dev/cortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- helm/dev/cortex-prometheus-operator/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/dev/cortex-prometheus-operator/Chart.yaml b/helm/dev/cortex-prometheus-operator/Chart.yaml index d0c9a9f43..a74949fb8 100644 --- a/helm/dev/cortex-prometheus-operator/Chart.yaml +++ b/helm/dev/cortex-prometheus-operator/Chart.yaml @@ -10,4 +10,4 @@ dependencies: # CRDs of the prometheus operator, such as PrometheusRule, ServiceMonitor, etc. - name: kube-prometheus-stack repository: oci://ghcr.io/prometheus-community/charts - version: 92.3.1 + version: 92.6.0 From 41509d6eb1cfac7ca3e4733533d667d1b423d5e9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2026 09:25:46 +0200 Subject: [PATCH 10/13] Renovate: Update kube-prometheus-stack Docker tag to v92.7.0 (#1365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kube-prometheus-stack](https://redirect.github.com/prometheus-operator/kube-prometheus) ([source](https://redirect.github.com/prometheus-community/helm-charts)) | minor | `92.6.0` → `92.7.0` | --- ### Release Notes
prometheus-community/helm-charts (kube-prometheus-stack) ### [`v92.7.0`](https://redirect.github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-92.7.0) kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator. #### What's Changed - \[kube-prometheus-stack] Update grafana Docker tag to v13.6.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7375](https://redirect.github.com/prometheus-community/helm-charts/pull/7375) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - "after 6pm every weekday,every weekend,before 8am every weekday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cobaltcore-dev/cortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- helm/dev/cortex-prometheus-operator/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/dev/cortex-prometheus-operator/Chart.yaml b/helm/dev/cortex-prometheus-operator/Chart.yaml index a74949fb8..e23ba5bf9 100644 --- a/helm/dev/cortex-prometheus-operator/Chart.yaml +++ b/helm/dev/cortex-prometheus-operator/Chart.yaml @@ -10,4 +10,4 @@ dependencies: # CRDs of the prometheus operator, such as PrometheusRule, ServiceMonitor, etc. - name: kube-prometheus-stack repository: oci://ghcr.io/prometheus-community/charts - version: 92.6.0 + version: 92.7.0 From ccca27e5d12b2269b36985397cf27b8602209e1e Mon Sep 17 00:00:00 2001 From: Philipp Matthes Date: Thu, 15 Oct 2026 11:48:01 +0200 Subject: [PATCH 11/13] Create vm resources as part of nova pipeline execution (#1362) This adds a `VirtualMachineHandler` to the nova pipeline controller, executed after the pipeline has processed the scheduling request as part of the `processMu` mutex. The handler maps our scheduling request and the processed result into a virtual machine resource. If no such resource exists, the handler creates it. If it already exists, the handler performs a merge of the new fields into the existing resource. --------- Signed-off-by: Philipp Matthes Co-authored-by: cortex-ai-agents[bot] <279748396+cortex-ai-agents[bot]@users.noreply.github.com> --- api/external/nova/messages.go | 19 ++ cmd/manager/main.go | 22 +- go.mod | 1 + go.sum | 6 + .../cortex-nova/templates/kpis_kvm.yaml | 1 + helm/bundles/cortex-nova/templates/rbac.yaml | 44 ++++ helm/bundles/cortex-nova/values.yaml | 6 + internal/scheduling/nova/features.go | 8 + .../filter_weigher_pipeline_controller.go | 24 ++ internal/scheduling/nova/vm_handler.go | 233 ++++++++++++++++++ internal/scheduling/nova/vm_handler_test.go | 189 ++++++++++++++ 11 files changed, 541 insertions(+), 12 deletions(-) create mode 100644 internal/scheduling/nova/vm_handler.go create mode 100644 internal/scheduling/nova/vm_handler_test.go diff --git a/api/external/nova/messages.go b/api/external/nova/messages.go index d3021ffd3..7cd877bff 100644 --- a/api/external/nova/messages.go +++ b/api/external/nova/messages.go @@ -212,6 +212,16 @@ func (req ExternalSchedulerRequest) GetHypervisorType() (HypervisorType, error) return "", errors.New("hypervisor type not specified in flavor extra specs") } +// IsKVMRequest determines whether the request is intended for a KVM-based hypervisor. +// If no hypervisor type is specified or an error occurs, it returns false. +func (req ExternalSchedulerRequest) IsKVMRequest() bool { + hvType, err := req.GetHypervisorType() + if err != nil { + return false + } + return hvType == HypervisorTypeQEMU || hvType == HypervisorTypeCH +} + const ( // LiveMigrationIntent indicates that the request is intended for live migration. LiveMigrationIntent v1alpha1.SchedulingIntent = "live_migration" @@ -239,6 +249,15 @@ const ( HintKeyResourceGroup = "_cortex_resource_group" ) +// NovaIntents lists all scheduling intents relevant to Nova. +var NovaIntents = []v1alpha1.SchedulingIntent{ + LiveMigrationIntent, + RebuildIntent, + ResizeIntent, + EvacuateIntent, + CreateIntent, +} + // GetIntent analyzes the request spec and determines the intent of the scheduling request. func (req ExternalSchedulerRequest) GetIntent() (v1alpha1.SchedulingIntent, error) { str, err := req.Spec.Data.GetSchedulerHintStr("_nova_check_type") diff --git a/cmd/manager/main.go b/cmd/manager/main.go index f49638eb1..e9bcfc25f 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -72,6 +72,8 @@ import ( "github.com/cobaltcore-dev/cortex/pkg/sso" "github.com/cobaltcore-dev/cortex/pkg/task" hv1 "github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1" + vmopv1alpha1 "github.com/cobaltcore-dev/vm-operator/api/v1alpha1" + vmopmcl "github.com/cobaltcore-dev/vm-operator/pkg/multicluster" "github.com/sapcc/go-bits/httpext" "github.com/sapcc/go-bits/must" corev1 "k8s.io/api/core/v1" @@ -90,6 +92,7 @@ func init() { utilruntime.Must(ironcorev1alpha1.AddToScheme(scheme)) utilruntime.Must(corev1.AddToScheme(scheme)) utilruntime.Must(hv1.AddToScheme(scheme)) + utilruntime.Must(vmopv1alpha1.AddToScheme(scheme)) // +kubebuilder:scaffold:scheme } @@ -370,12 +373,6 @@ func main() { setupLog.Error(err, "unable to add home cluster") os.Exit(1) } - hvGVK := schema.GroupVersionKind{Group: "kvm.cloud.sap", Version: "v1", Kind: "Hypervisor"} - reservationGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "Reservation"} - historyGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "History"} - committedResourceGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "CommittedResource"} - flavorGroupCapacityGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "FlavorGroupCapacity"} - projectQuotaGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "ProjectQuota"} multiclusterMonitor := multicluster.NewMonitor("cortex_") multiclusterClient := &multicluster.Client{ HomeCluster: homeCluster, @@ -383,12 +380,13 @@ func main() { HomeScheme: scheme, Monitor: multiclusterMonitor, ResourceRouters: map[schema.GroupVersionKind]multicluster.ResourceRouter{ - hvGVK: multicluster.HypervisorResourceRouter{}, - reservationGVK: multicluster.ReservationsResourceRouter{}, - historyGVK: multicluster.HistoryResourceRouter{}, - committedResourceGVK: multicluster.CommittedResourceRouter{}, - flavorGroupCapacityGVK: multicluster.FlavorGroupCapacityResourceRouter{}, - projectQuotaGVK: multicluster.ProjectQuotaResourceRouter{}, + {Group: "kvm.cloud.sap", Version: "v1", Kind: "Hypervisor"}: multicluster.HypervisorResourceRouter{}, + {Group: "cobaltcore.cloud", Version: "v1alpha1", Kind: "VirtualMachine"}: vmopmcl.VirtualMachineRouter{}, + {Group: "cortex.cloud", Version: "v1alpha1", Kind: "Reservation"}: multicluster.ReservationsResourceRouter{}, + {Group: "cortex.cloud", Version: "v1alpha1", Kind: "History"}: multicluster.HistoryResourceRouter{}, + {Group: "cortex.cloud", Version: "v1alpha1", Kind: "CommittedResource"}: multicluster.CommittedResourceRouter{}, + {Group: "cortex.cloud", Version: "v1alpha1", Kind: "FlavorGroupCapacity"}: multicluster.FlavorGroupCapacityResourceRouter{}, + {Group: "cortex.cloud", Version: "v1alpha1", Kind: "ProjectQuota"}: multicluster.ProjectQuotaResourceRouter{}, }, } multiclusterClientConfig := conf.GetConfigOrDie[multicluster.ClientConfig]() diff --git a/go.mod b/go.mod index 80fdb51f2..ed2a0b02a 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.27 require ( github.com/cobaltcore-dev/openstack-hypervisor-operator v1.2.3 + github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261014085525-20c781d5a4eb github.com/go-gorp/gorp v2.2.0+incompatible github.com/go-logr/logr v1.4.4 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 68929fdd2..af6ffdf0f 100644 --- a/go.sum +++ b/go.sum @@ -24,6 +24,12 @@ github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UF github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cobaltcore-dev/openstack-hypervisor-operator v1.2.3 h1:2KjrD+LzU8pgvm1HEIEw5qlRF1gcbFp7Q/t9z+AnY4g= github.com/cobaltcore-dev/openstack-hypervisor-operator v1.2.3/go.mod h1:DyQ6MO1TsC4kzeG3l8tnIXQVeA/PITm22RyitJhDaKI= +github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261013143410-18c5ab1c4c9c h1:CB+9SiS9z+2cmWrHw519C6UU8SpzDezM6BktoshLlJE= +github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261013143410-18c5ab1c4c9c/go.mod h1:0Lanmhb7onfOIHX+4h1lGLC7vga/nNYabJ6a/y/APk4= +github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261014064538-fa16f4c21e31 h1:CZpisES+VGjZrxzjHrsJ8n1OdsMb97yKRW8sGuyENe0= +github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261014064538-fa16f4c21e31/go.mod h1:0Lanmhb7onfOIHX+4h1lGLC7vga/nNYabJ6a/y/APk4= +github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261014085525-20c781d5a4eb h1:Tg8nIIubpwT7oWbKfYfc9Y/xEToVk1nwraZyQ17WIJI= +github.com/cobaltcore-dev/vm-operator v0.1.2-0.20261014085525-20c781d5a4eb/go.mod h1:0Lanmhb7onfOIHX+4h1lGLC7vga/nNYabJ6a/y/APk4= github.com/containerd/continuity v0.4.5 h1:ZRoN1sXq9u7V6QoHMcVWGhOwDFqZ4B9i5H6un1Wh0x4= github.com/containerd/continuity v0.4.5/go.mod h1:/lNJvtJKUQStBzpVQ1+rasXO1LAWtUQssk28EZvJ3nE= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= diff --git a/helm/bundles/cortex-nova/templates/kpis_kvm.yaml b/helm/bundles/cortex-nova/templates/kpis_kvm.yaml index d9ad32d2e..734063c54 100644 --- a/helm/bundles/cortex-nova/templates/kpis_kvm.yaml +++ b/helm/bundles/cortex-nova/templates/kpis_kvm.yaml @@ -54,6 +54,7 @@ spec: - cortex.cloud/v1alpha1/ReservationList - cortex.cloud/v1alpha1/CommittedResourceList - kvm.cloud.sap/v1/HypervisorList + - cobaltcore.cloud/v1alpha1/VirtualMachineList description: | This KPI reports the number of objects of each configured GVK per cluster (home and remote), labelled by the configured cluster labels. Home-cluster diff --git a/helm/bundles/cortex-nova/templates/rbac.yaml b/helm/bundles/cortex-nova/templates/rbac.yaml index c47a8f061..590b12094 100644 --- a/helm/bundles/cortex-nova/templates/rbac.yaml +++ b/helm/bundles/cortex-nova/templates/rbac.yaml @@ -47,6 +47,24 @@ rules: - get --- apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: cortex-nova-manager-role-vm +rules: +- apiGroups: + - cobaltcore.cloud + resources: + - virtualmachines + - virtualmachines/status + verbs: + - create + - get + - list + - patch + - update + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: cortex-nova-manager-rolebinding-hypervisor-scheduling @@ -71,3 +89,29 @@ subjects: - kind: ServiceAccount name: {{ (index .Values "cortex-knowledge-controllers").namePrefix }}-controller-manager namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: cortex-nova-manager-rolebinding-vm-scheduling +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cortex-nova-manager-role-vm +subjects: +- kind: ServiceAccount + name: {{ (index .Values "cortex-scheduling-controllers").namePrefix }}-controller-manager + namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: cortex-nova-manager-rolebinding-vm-knowledge +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cortex-nova-manager-role-vm +subjects: +- kind: ServiceAccount + name: {{ (index .Values "cortex-knowledge-controllers").namePrefix }}-controller-manager + namespace: {{ .Release.Namespace }} diff --git a/helm/bundles/cortex-nova/values.yaml b/helm/bundles/cortex-nova/values.yaml index ca217ea2a..312c73b38 100644 --- a/helm/bundles/cortex-nova/values.yaml +++ b/helm/bundles/cortex-nova/values.yaml @@ -145,6 +145,8 @@ cortex: &cortex - cortex.cloud/v1alpha1/FlavorGroupCapacityList - kvm.cloud.sap/v1/Hypervisor - kvm.cloud.sap/v1/HypervisorList + - cobaltcore.cloud/v1alpha1/VirtualMachine + - cobaltcore.cloud/v1alpha1/VirtualMachineList - v1/Secret keystoneSecretRef: name: cortex-nova-openstack-keystone @@ -196,6 +198,10 @@ cortex-scheduling-controllers: # classification by committed resource coverage. Enable only on deployments # that use committed resources. Requires also enabling of CR controllers and tasks committedResourceTracking: false + # Enables the creation of VM resources based on the scheduling spec for + # non-read-only requests. + virtualMachineCreation: true + virtualMachineCreationMandatory: false # Pipeline used for the empty-state capacity probe (ignores allocations and reservations). capacityTotalPipeline: "kvm-general-purpose-load-balancing" # Pipeline used for the current-state capacity probe (considers current VM allocations). diff --git a/internal/scheduling/nova/features.go b/internal/scheduling/nova/features.go index 1b8db73e0..4da6ebc89 100644 --- a/internal/scheduling/nova/features.go +++ b/internal/scheduling/nova/features.go @@ -12,4 +12,12 @@ type FeatureGates struct { // results by committed resource coverage. Enable only on deployments that // use committed resources. CommittedResourceTracking bool `json:"committedResourceTracking,omitempty"` + + // VirtualMachineCreation enables the creation of VM resources based on the + // scheduling spec for non-read-only requests. + VirtualMachineCreation bool `json:"virtualMachineCreation,omitempty"` + // VirtualMachineCreationMandatory must be enabled together with + // the VirtualMachineCreation feature. If set, the pipeline will + // require that a VM is created for each scheduling request. + VirtualMachineCreationMandatory bool `json:"virtualMachineCreationMandatory,omitempty"` } diff --git a/internal/scheduling/nova/filter_weigher_pipeline_controller.go b/internal/scheduling/nova/filter_weigher_pipeline_controller.go index 5b4b9cae3..5eee060e4 100644 --- a/internal/scheduling/nova/filter_weigher_pipeline_controller.go +++ b/internal/scheduling/nova/filter_weigher_pipeline_controller.go @@ -8,6 +8,7 @@ import ( "encoding/json" "errors" "fmt" + "slices" "sync" "time" @@ -50,6 +51,9 @@ type FilterWeigherPipelineController struct { // Candidate gatherer to get all placement candidates if needed. gatherer CandidateGatherer + // vmHandler maps processed decisions into vm-operator VirtualMachine resources. + vmHandler *VirtualMachineHandler + // CRRecorder receives scheduling events and updates CR reservations and metrics. CRRecorder crs.Recorder } @@ -209,6 +213,25 @@ func (c *FilterWeigherPipelineController) process(ctx context.Context, decision if !request.Options.SkipHistory { c.upsertHistory(ctx, decision, err) } + + // We create a virtual machine resource based on the scheduling decision if ... + createVM := err == nil && // The pipeline was executed successfully + !request.Options.ReadOnly && // The request is not read-only + c.FeatureGates.VirtualMachineCreation && // VM creation is enabled + slices.Contains(api.NovaIntents, decision.Spec.Intent) && // Triggered by Nova + request.IsKVMRequest() // Supported hypervisor type + if createVM { + vmUpsertErr := c.vmHandler.Upsert(ctx, decision, request) + if c.FeatureGates.VirtualMachineCreationMandatory && vmUpsertErr != nil { + log.Error(vmUpsertErr, "failed to upsert virtual machine resource and it is mandatory") + return &request, vmUpsertErr + } + if vmUpsertErr != nil { + // Non-fatal: the placement decision itself succeeded. + log.Error(vmUpsertErr, "failed to upsert virtual machine resource") + } + } + if err != nil { log.Error(err, "failed to run pipeline") return &request, err @@ -254,6 +277,7 @@ func (c *FilterWeigherPipelineController) SetupWithManager(mgr manager.Manager, c.SchedulingDomain = v1alpha1.SchedulingDomainNova c.HistoryManager = lib.HistoryClient{Client: mcl, Recorder: mcl.GetEventRecorder("cortex-nova-scheduler")} c.gatherer = &candidateGatherer{Client: mcl} + c.vmHandler = &VirtualMachineHandler{Client: mcl} if err := mgr.Add(manager.RunnableFunc(c.InitAllPipelines)); err != nil { return err } diff --git a/internal/scheduling/nova/vm_handler.go b/internal/scheduling/nova/vm_handler.go new file mode 100644 index 000000000..970bd88e0 --- /dev/null +++ b/internal/scheduling/nova/vm_handler.go @@ -0,0 +1,233 @@ +// Copyright SAP SE +// SPDX-License-Identifier: Apache-2.0 + +package nova + +import ( + "context" + "errors" + "fmt" + "maps" + "strings" + + api "github.com/cobaltcore-dev/cortex/api/external/nova" + "github.com/cobaltcore-dev/cortex/api/v1alpha1" + hv1 "github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1" + vmv1alpha1 "github.com/cobaltcore-dev/vm-operator/api/v1alpha1" + corev1 "k8s.io/api/core/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/api/meta" + "k8s.io/apimachinery/pkg/api/resource" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" + ctrl "sigs.k8s.io/controller-runtime" + "sigs.k8s.io/controller-runtime/pkg/client" +) + +// VirtualMachineHandler maps a processed scheduling decision into a +// vm-operator VirtualMachine resource and upserts it. The VirtualMachine is +// routed to the cluster matching its availability zone by the multicluster +// client's VirtualMachineRouter. +type VirtualMachineHandler struct { + client.Client +} + +// Upsert creates or patches the VirtualMachine resource described by the +// decision and request. Region and AZ are immutable on the CRD and only written +// on create; mutable fields (target host, cortex spec, labels) are patched on +// updates. +func (h *VirtualMachineHandler) Upsert(ctx context.Context, decision *v1alpha1.Decision, request api.ExternalSchedulerRequest) error { + log := ctrl.LoggerFrom(ctx) + + if decision.Status.Result == nil || decision.Status.Result.TargetHost == nil { + log.V(1).Info("skipping virtual machine upsert, no target host in decision") + return nil + } + + // We derive hierarchical location information (region and az) from the + // target host (i.e. the first host in the list). This assumes that all + // hosts in the list share the same region and availability zone. + targetHost := *decision.Status.Result.TargetHost + targetHv := &hv1.Hypervisor{} + if err := h.Get(ctx, client.ObjectKey{Name: targetHost}, targetHv); err != nil { + return fmt.Errorf("failed to get hypervisor %q: %w", targetHost, err) + } + targetHvRegion, ok := targetHv.Labels[corev1.LabelTopologyRegion] + if !ok || targetHvRegion == "" { + return fmt.Errorf("hypervisor %q has no %s label", targetHost, corev1.LabelTopologyRegion) + } + targetHvAZ, ok := targetHv.Labels[corev1.LabelTopologyZone] + // Sanity check: the availability zone inside the request should match the + // hypervisor's zone if not explicitly set. + if !ok || request.Spec.Data.AvailabilityZone != targetHvAZ { + return fmt.Errorf("availability zone mismatch for virtual machine %q: request has %q, hypervisor has %q", request.Spec.Data.InstanceUUID, request.Spec.Data.AvailabilityZone, targetHvAZ) + } + + // Start building up the virtual machine resource with metadata. + vm := &vmv1alpha1.VirtualMachine{} + vm.ObjectMeta = metav1.ObjectMeta{ + Name: request.Spec.Data.InstanceUUID, + Labels: map[string]string{ + vmv1alpha1.LabelRegion: targetHvRegion, + vmv1alpha1.LabelAZ: targetHvAZ, + vmv1alpha1.LabelTargetHost: targetHv.Name, + }, + } + + // Add hierarchical location information to the virtual machine spec. + vm.Spec.Region = targetHvRegion + vm.Spec.AZ = targetHvAZ + vm.Spec.TargetHost = &vmv1alpha1.HostRef{ + APIVersion: hv1.GroupVersion.String(), + Kind: "Hypervisor", + Name: targetHost, + } + + // Derive the hypervisor type from the flavor extra spec hypervisor type. + if hvType, ok := request.Spec.Data.Flavor. + Data.ExtraSpecs["capabilities:hypervisor_type"]; ok { + switch { + case strings.EqualFold(hvType, "CH"): + vm.Spec.HypervisorType = new(vmv1alpha1.HypervisorTypeCH) + case strings.EqualFold(hvType, "QEMU"): + vm.Spec.HypervisorType = new(vmv1alpha1.HypervisorTypeQEMU) + default: + return fmt.Errorf("unsupported hypervisor type %q", hvType) + } + } else { + return errors.New("hypervisor type not specified in flavor extra specs") + } + + // Derive the hypervisor resources from the flavor size. + flavor := request.Spec.Data.Flavor.Data + vm.Spec.Resources = map[vmv1alpha1.ResourceName]resource.Quantity{ + vmv1alpha1.ResourceCPU: *resource.NewQuantity(int64(flavor.VCPUs), resource.DecimalSI), //nolint:gosec + vmv1alpha1.ResourceMemory: *resource.NewQuantity(int64(flavor.MemoryMB)*1024*1024, resource.BinarySI), //nolint:gosec + } + + // Build the nova information from the request data + vm.Spec.Nova.Ownership = vmv1alpha1.Ownership{ + Project: request.Spec.Data.ProjectID, + User: request.Spec.Data.UserID, + } + vm.Spec.Nova.Flavor = vmv1alpha1.Flavor{ + Name: request.Spec.Data.Flavor.Data.Name, + FlavorID: request.Spec.Data.Flavor.Data.FlavorID, + ExtraSpecs: request.Spec.Data.Flavor.Data.ExtraSpecs, + } + props := make(map[string]string) // Needs conversion from map[string]any + for k, v := range request.Spec.Data.Image.Data.Properties.Data { + if vStr, ok := v.(string); ok { + props[k] = vStr + } else { + log.V(1).Info("skipping non-string image property", + "key", k, "value", v) + } + } + vm.Spec.Nova.Image = vmv1alpha1.Image{ + UUID: request.Spec.Data.Image.Data.ID, + Properties: props, + } + if request.Spec.Data.InstanceGroup != nil { + group := request.Spec.Data.InstanceGroup.Data + vm.Spec.Nova.InstanceGroup = &vmv1alpha1.InstanceGroup{ + UUID: group.UUID, + Policy: group.Policy, + } + } + + // Write the cortex spec (our scheduling result). + vm.Spec.Cortex = &vmv1alpha1.CortexSpec{} + for _, host := range decision.Status.Result.OrderedHosts { + vm.Spec.Cortex.HostCandidates = append(vm.Spec.Cortex.HostCandidates, vmv1alpha1.HostRef{ + APIVersion: hv1.GroupVersion.String(), + Kind: "Hypervisor", + Name: host, + }) + } + + // Write the ConditionTypeScheduled condition to indicate that the VM has + // been successfully scheduled. For that we need to extract the scheduling + // intent from request and verify that the operation + var reason string + intent, err := request.GetIntent() + if err != nil { + return fmt.Errorf("failed to get intent: %w", err) + } + switch intent { + case api.LiveMigrationIntent: + reason = vmv1alpha1.ConditionReasonScheduledLiveMigration + case api.RebuildIntent: + reason = vmv1alpha1.ConditionReasonScheduledRebuild + case api.ResizeIntent: + reason = vmv1alpha1.ConditionReasonScheduledResize + case api.EvacuateIntent: + reason = vmv1alpha1.ConditionReasonScheduledEvacuation + case api.CreateIntent: + reason = vmv1alpha1.ConditionReasonScheduledInitialPlacement + default: + reason = "Unknown intent: " + string(intent) + } + meta.SetStatusCondition(&vm.Status.Conditions, metav1.Condition{ + Type: vmv1alpha1.ConditionTypeScheduled, + Status: metav1.ConditionTrue, + Reason: reason, + Message: "VM has been successfully scheduled by Cortex", + }) + + // If the vm resource doesn't exist yet, create it. + vmInCluster := &vmv1alpha1.VirtualMachine{} + err = h.Get(ctx, types.NamespacedName{ + Namespace: vm.Namespace, + Name: vm.Name, + }, vmInCluster) + if err != nil && apierrors.IsNotFound(err) { + if err := h.Create(ctx, vm); err != nil { + return fmt.Errorf("failed to create VM: %w", err) + } + if err := h.Status().Update(ctx, vm); err != nil { + return fmt.Errorf("failed to update VM status: %w", err) + } + return nil + } else if err != nil { + return fmt.Errorf("error talking to apiserver: %w", err) + } + + // The vm already exists, so update the existing resource with the new + // object meta, spec, and status. For map data like the labels, we preserve + // existing map entries that are not inside the new object, and only + // store/override the entries that are present in the new object. For status + // conditions, we only update the conditions that are present in the new + // object. In contrast, for the host candidates we completely replace the + // existing list with the new list from the object. For the remaining spec + // fields, we follow the same approach as for labels: preserve existing + // entries that are not present in the new object, and only store/override + // the entries that are present in the new object. + if vmInCluster.Labels == nil { + vmInCluster.Labels = map[string]string{} + } + maps.Copy(vmInCluster.Labels, vm.Labels) + // Region and AZ are immutable and are only ever written on create, so we + // leave vmInCluster.Spec.Region and vmInCluster.Spec.AZ untouched. + vmInCluster.Spec.TargetHost = vm.Spec.TargetHost + vmInCluster.Spec.HypervisorType = vm.Spec.HypervisorType + if vmInCluster.Spec.Resources == nil { + vmInCluster.Spec.Resources = map[vmv1alpha1.ResourceName]resource.Quantity{} + } + maps.Copy(vmInCluster.Spec.Resources, vm.Spec.Resources) + vmInCluster.Spec.Nova = vm.Spec.Nova + if vmInCluster.Spec.Cortex == nil { + vmInCluster.Spec.Cortex = &vmv1alpha1.CortexSpec{} + } + vmInCluster.Spec.Cortex.HostCandidates = vm.Spec.Cortex.HostCandidates + if err := h.Update(ctx, vmInCluster); err != nil { + return fmt.Errorf("failed to update VM: %w", err) + } + for _, cond := range vm.Status.Conditions { + meta.SetStatusCondition(&vmInCluster.Status.Conditions, cond) + } + if err := h.Status().Update(ctx, vmInCluster); err != nil { + return fmt.Errorf("failed to update VM status: %w", err) + } + return nil +} diff --git a/internal/scheduling/nova/vm_handler_test.go b/internal/scheduling/nova/vm_handler_test.go new file mode 100644 index 000000000..e4d5b543e --- /dev/null +++ b/internal/scheduling/nova/vm_handler_test.go @@ -0,0 +1,189 @@ +// Copyright SAP SE +// SPDX-License-Identifier: Apache-2.0 + +package nova + +import ( + "context" + "testing" + + api "github.com/cobaltcore-dev/cortex/api/external/nova" + "github.com/cobaltcore-dev/cortex/api/v1alpha1" + hv1 "github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1" + vmopv1alpha1 "github.com/cobaltcore-dev/vm-operator/api/v1alpha1" + corev1 "k8s.io/api/core/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/client/fake" +) + +func vmTestScheme(t *testing.T) *runtime.Scheme { + scheme := runtime.NewScheme() + if err := hv1.AddToScheme(scheme); err != nil { + t.Fatalf("AddToScheme hv1: %v", err) + } + if err := vmopv1alpha1.AddToScheme(scheme); err != nil { + t.Fatalf("AddToScheme vmop: %v", err) + } + return scheme +} + +// vmTestRequest builds a minimal scheduling request targeting compute-1 / +// hv-host-1 with a 4 vCPU, 8 GiB flavor. +func vmTestRequest() api.ExternalSchedulerRequest { + req := api.ExternalSchedulerRequest{ + Hosts: []api.ExternalSchedulerHost{ + {ComputeHost: "compute-1", HypervisorHostname: "hv-host-1"}, + }, + } + req.Spec.Data.InstanceUUID = "vm-uuid-1" + req.Spec.Data.ProjectID = "project-1" + req.Spec.Data.UserID = "user-1" + req.Spec.Data.AvailabilityZone = "az-1" + req.Spec.Data.SchedulerHints = map[string]any{"_nova_check_type": "create"} + req.Spec.Data.Flavor.Data = api.NovaFlavor{ + Name: "m1.large", + FlavorID: "f1", + VCPUs: 4, + MemoryMB: 8192, + ExtraSpecs: map[string]string{ + "capabilities:hypervisor_type": "QEMU", + }, + } + req.Spec.Data.Image.Data = api.NovaImageMeta{ID: "image-1"} + return req +} + +func vmTestDecision(targetHost *string) *v1alpha1.Decision { + return &v1alpha1.Decision{Status: v1alpha1.DecisionStatus{ + Result: &v1alpha1.DecisionResult{TargetHost: targetHost}, + }} +} + +func vmTestHypervisor(region, az string) *hv1.Hypervisor { + labels := map[string]string{} + if region != "" { + labels[corev1.LabelTopologyRegion] = region + } + if az != "" { + labels[corev1.LabelTopologyZone] = az + } + return &hv1.Hypervisor{ObjectMeta: metav1.ObjectMeta{Name: "compute-1", Labels: labels}} +} + +func TestVirtualMachineHandlerCreate(t *testing.T) { + scheme := vmTestScheme(t) + fakeClient := fake.NewClientBuilder(). + WithScheme(scheme). + WithStatusSubresource(&vmopv1alpha1.VirtualMachine{}). + WithObjects(vmTestHypervisor("region-1", "az-1")). + Build() + h := &VirtualMachineHandler{Client: fakeClient} + + targetHost := "compute-1" + if err := h.Upsert(context.Background(), vmTestDecision(&targetHost), vmTestRequest()); err != nil { + t.Fatalf("Upsert: %v", err) + } + + vm := &vmopv1alpha1.VirtualMachine{} + if err := fakeClient.Get(context.Background(), client.ObjectKey{Name: "vm-uuid-1"}, vm); err != nil { + t.Fatalf("get created vm: %v", err) + } + if vm.Spec.Region != "region-1" || vm.Spec.AZ != "az-1" { + t.Errorf("region/az = %q/%q, want region-1/az-1", vm.Spec.Region, vm.Spec.AZ) + } + if vm.Spec.TargetHost == nil || vm.Spec.TargetHost.Name != "compute-1" { + t.Errorf("target host ref = %+v, want name compute-1", vm.Spec.TargetHost) + } + if cpu := vm.Spec.Resources[vmopv1alpha1.ResourceCPU]; cpu.Value() != 4 { + t.Errorf("cpu = %d, want 4", cpu.Value()) + } + if mem := vm.Spec.Resources[vmopv1alpha1.ResourceMemory]; mem.Value() != 8192*1024*1024 { + t.Errorf("memory = %d, want %d", mem.Value(), 8192*1024*1024) + } + if vm.Spec.Nova.Ownership.Project != "project-1" || vm.Spec.Nova.Flavor.Name != "m1.large" { + t.Errorf("nova spec = %+v, want project-1 / m1.large", vm.Spec.Nova) + } + if vm.Labels[vmopv1alpha1.LabelTargetHost] != "compute-1" { + t.Errorf("target host label = %q, want compute-1", vm.Labels[vmopv1alpha1.LabelTargetHost]) + } +} + +func TestVirtualMachineHandlerUpdate(t *testing.T) { + scheme := vmTestScheme(t) + existing := &vmopv1alpha1.VirtualMachine{ + ObjectMeta: metav1.ObjectMeta{ + Name: "vm-uuid-1", + Labels: map[string]string{vmopv1alpha1.LabelTargetHost: "old-host"}, + }, + Spec: vmopv1alpha1.VMSpec{ + Region: "region-1", + AZ: "az-1", + TargetHost: &corev1.ObjectReference{Name: "hv-old"}, + }, + } + fakeClient := fake.NewClientBuilder(). + WithScheme(scheme). + WithStatusSubresource(&vmopv1alpha1.VirtualMachine{}). + WithObjects(vmTestHypervisor("region-1", "az-1"), existing). + Build() + h := &VirtualMachineHandler{Client: fakeClient} + + targetHost := "compute-1" + if err := h.Upsert(context.Background(), vmTestDecision(&targetHost), vmTestRequest()); err != nil { + t.Fatalf("Upsert: %v", err) + } + + vm := &vmopv1alpha1.VirtualMachine{} + if err := fakeClient.Get(context.Background(), client.ObjectKey{Name: "vm-uuid-1"}, vm); err != nil { + t.Fatalf("get vm: %v", err) + } + if vm.Spec.TargetHost == nil || vm.Spec.TargetHost.Name != "compute-1" { + t.Errorf("target host ref = %+v, want name compute-1", vm.Spec.TargetHost) + } + if vm.Labels[vmopv1alpha1.LabelTargetHost] != "compute-1" { + t.Errorf("target host label = %q, want compute-1", vm.Labels[vmopv1alpha1.LabelTargetHost]) + } + // Immutable fields must remain unchanged. + if vm.Spec.Region != "region-1" || vm.Spec.AZ != "az-1" { + t.Errorf("immutable region/az changed: %q/%q", vm.Spec.Region, vm.Spec.AZ) + } +} + +func TestVirtualMachineHandlerNoTargetHost(t *testing.T) { + scheme := vmTestScheme(t) + fakeClient := fake.NewClientBuilder().WithScheme(scheme).Build() + h := &VirtualMachineHandler{Client: fakeClient} + + if err := h.Upsert(context.Background(), vmTestDecision(nil), vmTestRequest()); err != nil { + t.Fatalf("Upsert with nil target host should be a no-op, got: %v", err) + } + var vmList vmopv1alpha1.VirtualMachineList + if err := fakeClient.List(context.Background(), &vmList); err != nil { + t.Fatalf("list vms: %v", err) + } + if len(vmList.Items) != 0 { + t.Errorf("expected no vms created, got %d", len(vmList.Items)) + } +} + +func TestVirtualMachineHandlerMissingRegion(t *testing.T) { + scheme := vmTestScheme(t) + fakeClient := fake.NewClientBuilder(). + WithScheme(scheme). + WithObjects(vmTestHypervisor("", "az-1")). // no region label + Build() + h := &VirtualMachineHandler{Client: fakeClient} + + targetHost := "compute-1" + if err := h.Upsert(context.Background(), vmTestDecision(&targetHost), vmTestRequest()); err == nil { + t.Fatal("expected error for missing region label, got nil") + } + vm := &vmopv1alpha1.VirtualMachine{} + err := fakeClient.Get(context.Background(), client.ObjectKey{Name: "vm-uuid-1"}, vm) + if !apierrors.IsNotFound(err) { + t.Errorf("expected no vm created, get returned: %v", err) + } +} From a616d9048d57382151a44d71f77c35f3b48ec6a3 Mon Sep 17 00:00:00 2001 From: juliusclausnitzer Date: Thu, 15 Oct 2026 13:37:00 +0200 Subject: [PATCH 12/13] feat(reservations): steer CR VM live migrations toward reservation slot hosts (#981) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Summary - Adds `kvm_cr_migration_slot` weigher that nudges live migrations of CR VMs toward hosts that can accommodate the VM's reservation slot — either by already having a compatible CR slot, or by having enough free capacity for the slot to follow via the reconciler - Adds `cortex_nova_weigh_cr_migration_slot_requests_total` metric tracking per-migration outcome: `slot_found`, `no_slot`, `no_source_slot` - Wires the weigher into all 4 KVM pipelines ### Motivation When a CR VM migrates, its reservation slot stays behind on the source host until the reconciler catches up — temporarily double-blocking resources. Steering migrations toward hosts that can accommodate the slot (either existing slot or free capacity) avoids or shortens this window. The reconciler already handles moving reservations after migration. This weigher only influences where the VM lands. ### Behaviour Only activates for `LiveMigrationIntent`. For each candidate host: | Condition | Weight | |---|---| | Host has a ready CR slot (same project + resource group) with enough remaining capacity | `slotHostWeight` (default 0.1) | | Host has enough free capacity to absorb the slot when the reconciler moves it | `slotHostWeight` (default 0.1) | | Host can accommodate neither | `defaultHostWeight` (default 0.0, neutral) | Both weights are configurable via pipeline params. Start small; raise based on the alert (follow-up) once metric data shows how often a good host is found. ### Out of scope - Multi-VM reservation slots (#211) - Pessimistic blocking for migration targets (#214) - Alert on high reservation-drift ratio (follow-up) --------- Signed-off-by: Julius Clausnitzer Signed-off-by: juliusclausnitzer Co-authored-by: Marcel <156897072+mblos@users.noreply.github.com> --- .../cortex-nova/templates/pipelines_kvm.yaml | 40 +++ internal/scheduling/nova/crs/evaluator.go | 50 +++- .../plugins/weighers/kvm_cr_migration_slot.go | 160 +++++++++++ .../weighers/kvm_cr_migration_slot_test.go | 254 ++++++++++++++++++ 4 files changed, 497 insertions(+), 7 deletions(-) create mode 100644 internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot.go create mode 100644 internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot_test.go diff --git a/helm/bundles/cortex-nova/templates/pipelines_kvm.yaml b/helm/bundles/cortex-nova/templates/pipelines_kvm.yaml index ff2e66b93..5fa3230e0 100644 --- a/helm/bundles/cortex-nova/templates/pipelines_kvm.yaml +++ b/helm/bundles/cortex-nova/templates/pipelines_kvm.yaml @@ -159,6 +159,16 @@ spec: matching the request's project, resource group, and availability zone, with enough free memory capacity for the requested VM. Hosts without a matching reservation or without enough free capacity receive a lower weight. + - name: kvm_cr_migration_slot + description: | + During live migrations of VMs that occupy a committed-resource reservation + slot, this weigher boosts hosts that either have a ready matching CR slot + with enough remaining capacity for the full slot size, or have enough free + memory for the slot to follow via the reconciler. Hosts that can accommodate + neither receive a lower weight. If the VM has no confirmed CR slot, all + candidates receive equal weight. + Only activates for live_migrate requests. All other intents pass through. + Emits cortex_nova_weigh_cr_migration_slot_requests_total. --- apiVersion: cortex.cloud/v1alpha1 kind: Pipeline @@ -316,6 +326,16 @@ spec: matching the request's project, resource group, and availability zone, with enough free memory capacity for the requested VM. Hosts without a matching reservation or without enough free capacity receive a lower weight. + - name: kvm_cr_migration_slot + description: | + During live migrations of VMs that occupy a committed-resource reservation + slot, this weigher boosts hosts that either have a ready matching CR slot + with enough remaining capacity for the full slot size, or have enough free + memory for the slot to follow via the reconciler. Hosts that can accommodate + neither receive a lower weight. If the VM has no confirmed CR slot, all + candidates receive equal weight. + Only activates for live_migrate requests. All other intents pass through. + Emits cortex_nova_weigh_cr_migration_slot_requests_total. --- apiVersion: cortex.cloud/v1alpha1 kind: Pipeline @@ -786,6 +806,16 @@ spec: matching the request's project, resource group, and availability zone, with enough free memory capacity for the requested VM. Hosts without a matching reservation or without enough free capacity receive a lower weight. + - name: kvm_cr_migration_slot + description: | + During live migrations of VMs that occupy a committed-resource reservation + slot, this weigher boosts hosts that either have a ready matching CR slot + with enough remaining capacity for the full slot size, or have enough free + memory for the slot to follow via the reconciler. Hosts that can accommodate + neither receive a lower weight. If the VM has no confirmed CR slot, all + candidates receive equal weight. + Only activates for live_migrate requests. All other intents pass through. + Emits cortex_nova_weigh_cr_migration_slot_requests_total. --- apiVersion: cortex.cloud/v1alpha1 kind: Pipeline @@ -943,4 +973,14 @@ spec: matching the request's project, resource group, and availability zone, with enough free memory capacity for the requested VM. Hosts without a matching reservation or without enough free capacity receive a lower weight. + - name: kvm_cr_migration_slot + description: | + During live migrations of VMs that occupy a committed-resource reservation + slot, this weigher boosts hosts that either have a ready matching CR slot + with enough remaining capacity for the full slot size, or have enough free + memory for the slot to follow via the reconciler. Hosts that can accommodate + neither receive a lower weight. If the VM has no confirmed CR slot, all + candidates receive equal weight. + Only activates for live_migrate requests. All other intents pass through. + Emits cortex_nova_weigh_cr_migration_slot_requests_total. {{- end }} diff --git a/internal/scheduling/nova/crs/evaluator.go b/internal/scheduling/nova/crs/evaluator.go index bfd5f9607..67faef722 100644 --- a/internal/scheduling/nova/crs/evaluator.go +++ b/internal/scheduling/nova/crs/evaluator.go @@ -24,6 +24,19 @@ type SlotEvaluator struct { // BuildSlotEvaluator lists HV CRDs and CR Reservation CRDs once and returns an evaluator // that can answer slot-usability queries without further K8s reads. func BuildSlotEvaluator(ctx context.Context, c client.Client) (*SlotEvaluator, error) { + var resList v1alpha1.ReservationList + if err := c.List(ctx, &resList, + client.MatchingLabels{v1alpha1.LabelReservationType: v1alpha1.ReservationTypeLabelCommittedResource}, + ); err != nil { + return nil, err + } + return BuildSlotEvaluatorFromReservations(ctx, c, resList.Items) +} + +// BuildSlotEvaluatorFromReservations builds a SlotEvaluator from an already-fetched +// reservation slice. Use this when the caller has already listed reservations to avoid +// a redundant K8s read. +func BuildSlotEvaluatorFromReservations(ctx context.Context, c client.Client, reservations []v1alpha1.Reservation) (*SlotEvaluator, error) { eval := &SlotEvaluator{ hvFreeMemory: make(map[string]int64), reservationsByHost: make(map[string][]v1alpha1.Reservation), @@ -45,13 +58,7 @@ func BuildSlotEvaluator(ctx context.Context, c client.Client) (*SlotEvaluator, e eval.hvFreeMemory[hv.Name] = max(effectiveMemQ.Value()-allocMemQ.Value(), 0) } - var resList v1alpha1.ReservationList - if err := c.List(ctx, &resList, - client.MatchingLabels{v1alpha1.LabelReservationType: v1alpha1.ReservationTypeLabelCommittedResource}, - ); err != nil { - return nil, err - } - for _, res := range resList.Items { + for _, res := range reservations { if !res.IsReady() { continue } @@ -104,6 +111,35 @@ func (e *SlotEvaluator) HasUsableSlot(hostName, projectID, flavorGroup string, v return false } +// HasSlotWithCapacity reports whether hostName has at least one ready CR slot +// matching projectID + flavorGroup whose remaining memory is >= requiredBytes. +// Unlike HasUsableSlot, this does not apply the overfill model — it is used +// during migration slot filtering where the full slot size must fit within a +// single reservation on the target host. +func (e *SlotEvaluator) HasSlotWithCapacity(hostName, projectID, flavorGroup string, requiredBytes int64) bool { + for _, slot := range e.SlotsForHost(hostName, projectID, flavorGroup) { + if ReservationRemainingMemory(slot) >= requiredBytes { + return true + } + } + return false +} + +// CanAccommodateSlot reports whether hostName has enough free memory to absorb +// a reservation block of requiredBytes. Used to check whether a slot can follow +// a migrating VM to this host via the reconciler, even when no existing +// compatible slot is present. +// +// Free memory is computed as: hvFreeMemory - sum(all ready committed-resource reservation blocks on host). +func (e *SlotEvaluator) CanAccommodateSlot(hostName string, requiredBytes int64) bool { + var allBlocks int64 + for _, res := range e.reservationsByHost[hostName] { + blockQ := res.Spec.Resources[hv1.ResourceMemory] + allBlocks += blockQ.Value() + } + return e.hvFreeMemory[hostName]-allBlocks >= requiredBytes +} + // ReservationRemainingMemory returns how many bytes of memory remain // unallocated in a reservation slot. Returns 0 if the slot is full or nil. func ReservationRemainingMemory(res v1alpha1.Reservation) int64 { diff --git a/internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot.go b/internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot.go new file mode 100644 index 000000000..56f09651f --- /dev/null +++ b/internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot.go @@ -0,0 +1,160 @@ +// Copyright SAP SE +// SPDX-License-Identifier: Apache-2.0 + +package weighers + +import ( + "context" + "log/slog" + + "sigs.k8s.io/controller-runtime/pkg/client" + + api "github.com/cobaltcore-dev/cortex/api/external/nova" + "github.com/cobaltcore-dev/cortex/api/v1alpha1" + "github.com/cobaltcore-dev/cortex/internal/scheduling/lib" + "github.com/cobaltcore-dev/cortex/internal/scheduling/nova/crs" + hv1 "github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1" +) + +// Options for the KVM CR migration slot weigher. +type KVMCRMigrationSlotOpts struct { + // Weight assigned to hosts that can accommodate the CR reservation slot. + // Default: 0.1 + SlotHostWeight *float64 `json:"slotHostWeight,omitempty"` + // Weight assigned to hosts that cannot accommodate the CR reservation slot. + // Default: 0.0 + DefaultHostWeight *float64 `json:"defaultHostWeight,omitempty"` +} + +func (o KVMCRMigrationSlotOpts) Validate() error { + return nil +} + +func (o KVMCRMigrationSlotOpts) GetSlotHostWeight() float64 { + if o.SlotHostWeight == nil { + return 0.1 + } + return *o.SlotHostWeight +} + +func (o KVMCRMigrationSlotOpts) GetDefaultHostWeight() float64 { + if o.DefaultHostWeight == nil { + return 0.0 + } + return *o.DefaultHostWeight +} + +// KVMCRMigrationSlotStep weighs live-migration candidates by whether they can +// accommodate the CR reservation slot of the migrating VM. +// +// When a VM with a CR reservation slot is migrated, this weigher boosts hosts +// that either have a ready CR reservation with sufficient remaining capacity for +// the slot, or have enough free memory for the slot to follow via the reconciler. +// This steers the migration toward hosts where double-blocking is avoided or +// minimised. +// +// If the VM has no confirmed CR reservation, all candidates receive equal weight +// (no effect on ranking). +// +// Only activates for LiveMigrationIntent. +type KVMCRMigrationSlotStep struct { + lib.BaseWeigher[api.ExternalSchedulerRequest, KVMCRMigrationSlotOpts] +} + +func (s *KVMCRMigrationSlotStep) Run( + traceLog *slog.Logger, + request api.ExternalSchedulerRequest, +) (*lib.FilterWeigherPipelineStepResult, error) { + + result := s.IncludeAllHostsFromRequest(request) + + intent, err := request.GetIntent() + if err != nil || intent != api.LiveMigrationIntent { + traceLog.Info("not a live migration, skipping CR migration slot weigher") + return result, nil //nolint:nilerr + } + + instanceUUID := request.Spec.Data.InstanceUUID + projectID := request.Spec.Data.ProjectID + + var allReservations v1alpha1.ReservationList + if err := s.Client.List(context.Background(), &allReservations, + client.MatchingLabels{v1alpha1.LabelReservationType: v1alpha1.ReservationTypeLabelCommittedResource}, + ); err != nil { + return nil, err + } + + // Find the source slot that has this VM confirmed. + var sourceSlot *v1alpha1.Reservation + for i := range allReservations.Items { + res := &allReservations.Items[i] + if !res.IsReady() { + continue + } + if res.Status.CommittedResourceReservation == nil || res.Spec.CommittedResourceReservation == nil { + continue + } + if _, ok := res.Status.CommittedResourceReservation.Allocations[instanceUUID]; ok { + sourceSlot = res + break + } + } + + if sourceSlot == nil { + traceLog.Info("migrating VM has no confirmed CR reservation slot, skipping slot weigher", + "instanceUUID", instanceUUID) + return result, nil + } + + slotMemoryBytes := sourceSlot.Spec.Resources[hv1.ResourceMemory] + if slotMemoryBytes.IsZero() { + traceLog.Info("source CR slot has no memory resource, skipping slot weigher", + "instanceUUID", instanceUUID, + "reservation", sourceSlot.Name) + return result, nil + } + + resourceGroup := sourceSlot.Spec.CommittedResourceReservation.ResourceGroup + + traceLog.Info("found source CR reservation slot for migrating VM", + "instanceUUID", instanceUUID, + "reservation", sourceSlot.Name, + "slotMemoryBytes", slotMemoryBytes.Value(), + "resourceGroup", resourceGroup, + ) + + evaluator, err := crs.BuildSlotEvaluatorFromReservations(context.Background(), s.Client, allReservations.Items) + if err != nil { + return nil, err + } + + slotHostWeight := s.Options.GetSlotHostWeight() + defaultHostWeight := s.Options.GetDefaultHostWeight() + + for host := range result.Activations { + hasSlot := evaluator.HasSlotWithCapacity(host, projectID, resourceGroup, slotMemoryBytes.Value()) + canFit := evaluator.CanAccommodateSlot(host, slotMemoryBytes.Value()) + switch { + case hasSlot: + result.Activations[host] = slotHostWeight + traceLog.Info("host has existing CR slot for migration, boosting weight", + "host", host, "weight", slotHostWeight) + case canFit: + result.Activations[host] = slotHostWeight + traceLog.Info("host can accommodate slot via reconciler, boosting weight", + "host", host, "weight", slotHostWeight) + default: + result.Activations[host] = defaultHostWeight + traceLog.Info("host cannot accommodate CR slot, applying low weight", + "host", host, "weight", defaultHostWeight) + } + } + + return result, nil +} + +func init() { + Index["kvm_cr_migration_slot"] = func() NovaWeigher { + return &KVMCRMigrationSlotStep{} + } +} diff --git a/internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot_test.go b/internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot_test.go new file mode 100644 index 000000000..4ff8d3f21 --- /dev/null +++ b/internal/scheduling/nova/plugins/weighers/kvm_cr_migration_slot_test.go @@ -0,0 +1,254 @@ +// Copyright SAP SE +// SPDX-License-Identifier: Apache-2.0 + +package weighers + +import ( + "log/slog" + "testing" + + api "github.com/cobaltcore-dev/cortex/api/external/nova" + "github.com/cobaltcore-dev/cortex/api/v1alpha1" + hv1 "github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1" + "k8s.io/apimachinery/pkg/api/resource" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/client/fake" +) + +const ( + testInstanceUUID = "vm-migrating" + testProjectID = "proj-1" + testSourceHost = "host-src" + testResourceGroup = "hana-v2" +) + +// newCRMigrationSlotWeigher builds a KVMCRMigrationSlotStep backed by a fake client. +func newCRMigrationSlotWeigher(t *testing.T, opts KVMCRMigrationSlotOpts, objs ...client.Object) *KVMCRMigrationSlotStep { + t.Helper() + scheme := buildTestScheme(t) + step := &KVMCRMigrationSlotStep{} + step.Client = fake.NewClientBuilder().WithScheme(scheme).WithObjects(objs...).Build() + step.Options = opts + return step +} + +// migrationRequest builds a live-migration request from the given candidate hosts. +func migrationRequest(hosts ...string) api.ExternalSchedulerRequest { + hostList := make([]api.ExternalSchedulerHost, len(hosts)) + for i, h := range hosts { + hostList[i] = api.ExternalSchedulerHost{ComputeHost: h} + } + return api.ExternalSchedulerRequest{ + Spec: api.NovaObject[api.NovaSpec]{ + Data: api.NovaSpec{ + InstanceUUID: testInstanceUUID, + ProjectID: testProjectID, + SchedulerHints: map[string]any{ + "_nova_check_type": "live_migrate", + }, + }, + }, + Hosts: hostList, + } +} + +// confirmedSourceSlot builds a ready CR reservation with testInstanceUUID confirmed in Status. +func confirmedSourceSlot(memory string) *v1alpha1.Reservation { + return &v1alpha1.Reservation{ + ObjectMeta: metav1.ObjectMeta{ + Name: "slot-src-" + testSourceHost, + Labels: map[string]string{ + v1alpha1.LabelReservationType: v1alpha1.ReservationTypeLabelCommittedResource, + }, + }, + Spec: v1alpha1.ReservationSpec{ + Type: v1alpha1.ReservationTypeCommittedResource, + TargetHost: testSourceHost, + Resources: map[hv1.ResourceName]resource.Quantity{ + hv1.ResourceMemory: resource.MustParse(memory), + }, + CommittedResourceReservation: &v1alpha1.CommittedResourceReservationSpec{ + ProjectID: testProjectID, + ResourceGroup: testResourceGroup, + }, + }, + Status: v1alpha1.ReservationStatus{ + Host: testSourceHost, + Conditions: []metav1.Condition{ + {Type: v1alpha1.ReservationConditionReady, Status: metav1.ConditionTrue, Reason: "ReservationActive"}, + }, + CommittedResourceReservation: &v1alpha1.CommittedResourceReservationStatus{ + Allocations: map[string]string{testInstanceUUID: testSourceHost}, + }, + }, + } +} + +// emptyTargetSlot builds a ready CR reservation with no VM allocations on the given host. +func emptyTargetSlot(name, host, resourceGroup, memory string) *v1alpha1.Reservation { + return &v1alpha1.Reservation{ + ObjectMeta: metav1.ObjectMeta{ + Name: name, + Labels: map[string]string{ + v1alpha1.LabelReservationType: v1alpha1.ReservationTypeLabelCommittedResource, + }, + }, + Spec: v1alpha1.ReservationSpec{ + Type: v1alpha1.ReservationTypeCommittedResource, + TargetHost: host, + Resources: map[hv1.ResourceName]resource.Quantity{ + hv1.ResourceMemory: resource.MustParse(memory), + }, + CommittedResourceReservation: &v1alpha1.CommittedResourceReservationSpec{ + ProjectID: "proj-1", + ResourceGroup: resourceGroup, + }, + }, + Status: v1alpha1.ReservationStatus{ + Host: host, + Conditions: []metav1.Condition{ + {Type: v1alpha1.ReservationConditionReady, Status: metav1.ConditionTrue, Reason: "ReservationActive"}, + }, + }, + } +} + +// hvWithFreeMemory builds a Hypervisor with the given effective capacity and zero allocation. +func hvWithFreeMemory(name, memory string) *hv1.Hypervisor { + return &hv1.Hypervisor{ + ObjectMeta: metav1.ObjectMeta{Name: name}, + Status: hv1.HypervisorStatus{ + EffectiveCapacity: map[hv1.ResourceName]resource.Quantity{ + hv1.ResourceMemory: resource.MustParse(memory), + }, + Allocation: map[hv1.ResourceName]resource.Quantity{ + hv1.ResourceMemory: resource.MustParse("0"), + }, + }, + } +} + +func TestKVMCRMigrationSlotStep_Run(t *testing.T) { + defaultOpts := KVMCRMigrationSlotOpts{SlotHostWeight: floatPtr(1.0), DefaultHostWeight: floatPtr(0.1)} + + tests := []struct { + name string + objects []client.Object + request api.ExternalSchedulerRequest + opts KVMCRMigrationSlotOpts + expectedWeights map[string]float64 + }{ + { + name: "non-migration intent: all hosts get no-effect weight", + objects: []client.Object{ + confirmedSourceSlot("16Gi"), + }, + request: api.ExternalSchedulerRequest{ + Spec: api.NovaObject[api.NovaSpec]{ + Data: api.NovaSpec{ + InstanceUUID: testInstanceUUID, + ProjectID: testProjectID, + // no _nova_check_type → CreateIntent + }, + }, + Hosts: []api.ExternalSchedulerHost{{ComputeHost: "host-a"}, {ComputeHost: "host-b"}}, + }, + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 0.0, "host-b": 0.0}, + }, + { + name: "no source slot for VM: all candidates get no-effect weight", + objects: []client.Object{}, + request: migrationRequest("host-a", "host-b"), + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 0.0, "host-b": 0.0}, + }, + { + name: "host with matching slot gets slot weight, others get default weight", + objects: []client.Object{ + confirmedSourceSlot("16Gi"), + emptyTargetSlot("slot-a", "host-a", "hana-v2", "16Gi"), + emptyTargetSlot("slot-b", "host-b", "hana-v2", "8Gi"), // too small + }, + request: migrationRequest("host-a", "host-b", "host-c"), + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 1.0, "host-b": 0.1, "host-c": 0.1}, + }, + { + name: "no compatible slot on any candidate: hosts penalised (no capacity)", + objects: []client.Object{ + confirmedSourceSlot("16Gi"), + }, + request: migrationRequest("host-a", "host-b"), + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 0.1, "host-b": 0.1}, + }, + { + name: "host with free capacity but no slot: boosted via accommodate path", + objects: []client.Object{ + confirmedSourceSlot("16Gi"), + hvWithFreeMemory("host-a", "32Gi"), // enough free memory for the slot + hvWithFreeMemory("host-b", "8Gi"), // too small for the slot + }, + request: migrationRequest("host-a", "host-b"), + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 1.0, "host-b": 0.1}, + }, + { + name: "wrong resource group on target: no slot match, falls back to capacity check", + objects: []client.Object{ + confirmedSourceSlot("16Gi"), + emptyTargetSlot("slot-a", "host-a", "general-v3", "16Gi"), + }, + request: migrationRequest("host-a"), + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 0.1}, + }, + { + name: "source slot has zero memory: no-effect weight for all", + objects: []client.Object{ + // source slot with no memory resource + func() *v1alpha1.Reservation { + res := confirmedSourceSlot("0") + res.Spec.Resources = map[hv1.ResourceName]resource.Quantity{} // no memory key + return res + }(), + emptyTargetSlot("slot-a", "host-a", "hana-v2", "16Gi"), + }, + request: migrationRequest("host-a"), + opts: defaultOpts, + expectedWeights: map[string]float64{"host-a": 0.0}, + }, + { + name: "nil opts use default weights", + objects: []client.Object{ + confirmedSourceSlot("16Gi"), + emptyTargetSlot("slot-a", "host-a", "hana-v2", "16Gi"), + }, + request: migrationRequest("host-a", "host-b"), + opts: KVMCRMigrationSlotOpts{}, // nil → defaults: slot=0.1, default=0.0 + expectedWeights: map[string]float64{"host-a": 0.1, "host-b": 0.0}, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + weigher := newCRMigrationSlotWeigher(t, tt.opts, tt.objects...) + result, err := weigher.Run(slog.Default(), tt.request) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + for host, expected := range tt.expectedWeights { + actual := result.Activations[host] + if actual != expected { + t.Errorf("host %q: expected weight %v, got %v", host, expected, actual) + } + } + if len(result.Activations) != len(tt.expectedWeights) { + t.Errorf("expected %d hosts in activations, got %d: %v", + len(tt.expectedWeights), len(result.Activations), result.Activations) + } + }) + } +} From 1ddf9495ef241ce146f28702e3f922813c17f0f6 Mon Sep 17 00:00:00 2001 From: "cortex-ai-agents[bot]" <279748396+cortex-ai-agents[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2026 16:06:17 +0200 Subject: [PATCH 13/13] Release cortex 0.6.8 (#1368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Release prep for #1367: changelog entry and helm chart version bumps - Bumps cortex `0.6.7` → `0.6.8`, cortex-postgres `0.6.26` → `0.6.27`, cortex-shim `0.1.31` → `0.1.32`, bundles `0.0.105` → `0.0.106`, cortex-placement-shim `0.1.31` → `0.1.32` - Adds changelog entry documenting security fixes, features, chores, and dependency updates > **Merge this before merging #1367.** ## Test plan - [ ] Verify all 10 `Chart.yaml` files have correct version bumps - [ ] Verify `CHANGELOG.md` entry is well-formed and references the correct PRs - [ ] Confirm helm chart dependency versions are consistent across bundles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: cortex-ai-agents[bot] <279748396+cortex-ai-agents[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 --- CHANGELOG.md | 34 +++++++++++++++++++ helm/bundles/cortex-cinder/Chart.yaml | 8 ++--- helm/bundles/cortex-crds/Chart.yaml | 4 +-- helm/bundles/cortex-ironcore/Chart.yaml | 4 +-- helm/bundles/cortex-manila/Chart.yaml | 8 ++--- helm/bundles/cortex-nova/Chart.yaml | 8 ++--- helm/bundles/cortex-placement-shim/Chart.yaml | 4 +-- helm/bundles/cortex-pods/Chart.yaml | 4 +-- helm/library/cortex-postgres/Chart.yaml | 2 +- helm/library/cortex-shim/Chart.yaml | 2 +- helm/library/cortex/Chart.yaml | 2 +- 11 files changed, 57 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94324f3d1..992f33c43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # Changelog +## Release 2026-10-15 — PR [#1367](https://github.com/cobaltcore-dev/cortex/pull/1367) + +### Bumped Versions + +| Package | Version | +|---|---| +| cortex | 0.6.7 → 0.6.8 | +| cortex-postgres | 0.6.26 → 0.6.27 | +| cortex-shim | 0.1.31 → 0.1.32 | +| bundles | 0.0.105 → 0.0.106 | +| cortex-placement-shim | 0.1.31 → 0.1.32 | + +### Security Fixes + +- **github.com/google/cel-go** upgraded from v0.29.2 to v0.30.0 — fixes [GHSA-gcjh-h69q-9w9g](https://github.com/advisories/GHSA-gcjh-h69q-9w9g) (JSON private fields exposed via NativeTypes / ParseStructTag). +- **github.com/moby/sys/user** upgraded from v0.4.0 to v0.4.1 — fixes [CVE-2026-61801](https://nvd.nist.gov/vuln/detail/CVE-2026-61801), a medium-severity (CVSS 5.5) DoS via unbounded parsing of user/group database files. + +### Features + +- **CR VM live-migration slot weigher** ([#981](https://github.com/cobaltcore-dev/cortex/pull/981)) — New `kvm_cr_migration_slot` weigher that steers Capacity Reservation VM live migrations toward hosts that can accommodate the reservation slot (either an existing compatible slot or enough free capacity for the reconciler to move it). Includes a new `cortex_nova_weigh_cr_migration_slot_requests_total` metric and is wired into all 4 KVM pipelines. *(Julius Clausnitzer & Marcel)* +- **VM resource handler in nova pipeline** ([#1362](https://github.com/cobaltcore-dev/cortex/pull/1362)) — Adds a `VirtualMachineHandler` to the nova pipeline controller that creates or merge-updates a virtual machine resource after each scheduling request. *(Philipp Matthes)* +- **VCenter field on VMwareHostDetails** ([#1356](https://github.com/cobaltcore-dev/cortex/pull/1356)) — Adds a `VCenter` field to `VMwareHostDetails` and updates VMware infrastructure metrics accordingly. *(Markus Wieland)* + +### Chores & Fixes + +- **Migrate from Plutono to Perses** ([#1363](https://github.com/cobaltcore-dev/cortex/pull/1363)) — Replaces the Plutono dashboarding stack with Perses, removing all Plutono assets and adding new Perses JSON dashboards. *(Markus Wieland)* +- **Remove large runner from workflows** ([#1360](https://github.com/cobaltcore-dev/cortex/pull/1360)) — Fixes CI workflows by removing references to a large runner. *(Markus Wieland)* +- **Avoid review comments on outdated language features** ([#1361](https://github.com/cobaltcore-dev/cortex/pull/1361)) — Updates the AI review agent prompt to stop flagging valid modern Go syntax (e.g. `new()`) as uncompilable. *(Philipp Matthes)* + +### Dependency Updates + +- **github.com/sapcc/go-bits** — digest update c011033 → 416f3ad ([#1358](https://github.com/cobaltcore-dev/cortex/pull/1358)) +- **kube-prometheus-stack** — 92.3.0 → 92.7.0 ([#1359](https://github.com/cobaltcore-dev/cortex/pull/1359), [#1364](https://github.com/cobaltcore-dev/cortex/pull/1364), [#1365](https://github.com/cobaltcore-dev/cortex/pull/1365)) + ## Release PR [#1350](https://github.com/cobaltcore-dev/cortex/pull/1350) ### Bumped Versions diff --git a/helm/bundles/cortex-cinder/Chart.yaml b/helm/bundles/cortex-cinder/Chart.yaml index 307d2545e..0ea91b342 100644 --- a/helm/bundles/cortex-cinder/Chart.yaml +++ b/helm/bundles/cortex-cinder/Chart.yaml @@ -5,23 +5,23 @@ apiVersion: v2 name: cortex-cinder description: A Helm chart deploying Cortex for Cinder. type: application -version: 0.0.105 +version: 0.0.106 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex-postgres - name: cortex-postgres repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.26 + version: 0.6.27 # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 alias: cortex-knowledge-controllers # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 alias: cortex-scheduling-controllers # Owner info adds a configmap to the kubernetes cluster with information on diff --git a/helm/bundles/cortex-crds/Chart.yaml b/helm/bundles/cortex-crds/Chart.yaml index 96200470d..f7e4d3cdb 100644 --- a/helm/bundles/cortex-crds/Chart.yaml +++ b/helm/bundles/cortex-crds/Chart.yaml @@ -5,13 +5,13 @@ apiVersion: v2 name: cortex-crds description: A Helm chart deploying Cortex CRDs. type: application -version: 0.0.105 +version: 0.0.106 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 # Owner info adds a configmap to the kubernetes cluster with information on # the service owner. This makes it easier to find out who to contact in case diff --git a/helm/bundles/cortex-ironcore/Chart.yaml b/helm/bundles/cortex-ironcore/Chart.yaml index 3662f6cfe..fdae16a8a 100644 --- a/helm/bundles/cortex-ironcore/Chart.yaml +++ b/helm/bundles/cortex-ironcore/Chart.yaml @@ -5,13 +5,13 @@ apiVersion: v2 name: cortex-ironcore description: A Helm chart deploying Cortex for IronCore. type: application -version: 0.0.105 +version: 0.0.106 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 # Owner info adds a configmap to the kubernetes cluster with information on # the service owner. This makes it easier to find out who to contact in case diff --git a/helm/bundles/cortex-manila/Chart.yaml b/helm/bundles/cortex-manila/Chart.yaml index 263326559..82cace9a7 100644 --- a/helm/bundles/cortex-manila/Chart.yaml +++ b/helm/bundles/cortex-manila/Chart.yaml @@ -5,23 +5,23 @@ apiVersion: v2 name: cortex-manila description: A Helm chart deploying Cortex for Manila. type: application -version: 0.0.105 +version: 0.0.106 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex-postgres - name: cortex-postgres repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.26 + version: 0.6.27 # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 alias: cortex-knowledge-controllers # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 alias: cortex-scheduling-controllers # Owner info adds a configmap to the kubernetes cluster with information on diff --git a/helm/bundles/cortex-nova/Chart.yaml b/helm/bundles/cortex-nova/Chart.yaml index 4018a5094..abe0d30f8 100644 --- a/helm/bundles/cortex-nova/Chart.yaml +++ b/helm/bundles/cortex-nova/Chart.yaml @@ -5,23 +5,23 @@ apiVersion: v2 name: cortex-nova description: A Helm chart deploying Cortex for Nova. type: application -version: 0.0.105 +version: 0.0.106 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex-postgres - name: cortex-postgres repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.26 + version: 0.6.27 # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 alias: cortex-knowledge-controllers # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 alias: cortex-scheduling-controllers # Owner info adds a configmap to the kubernetes cluster with information on diff --git a/helm/bundles/cortex-placement-shim/Chart.yaml b/helm/bundles/cortex-placement-shim/Chart.yaml index 25a35b508..862eda447 100644 --- a/helm/bundles/cortex-placement-shim/Chart.yaml +++ b/helm/bundles/cortex-placement-shim/Chart.yaml @@ -5,13 +5,13 @@ apiVersion: v2 name: cortex-placement-shim description: A Helm chart deploying the Cortex placement shim. type: application -version: 0.1.31 +version: 0.1.32 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex-shim - name: cortex-shim repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.1.31 + version: 0.1.32 # Owner info adds a configmap to the kubernetes cluster with information on # the service owner. This makes it easier to find out who to contact in case # of issues. See: https://github.com/sapcc/helm-charts/pkgs/container/helm-charts%2Fowner-info diff --git a/helm/bundles/cortex-pods/Chart.yaml b/helm/bundles/cortex-pods/Chart.yaml index 388a949b0..2fa7941ac 100644 --- a/helm/bundles/cortex-pods/Chart.yaml +++ b/helm/bundles/cortex-pods/Chart.yaml @@ -5,13 +5,13 @@ apiVersion: v2 name: cortex-pods description: A Helm chart deploying Cortex for Pods. type: application -version: 0.0.105 +version: 0.0.106 appVersion: 0.1.0 dependencies: # from: file://../../library/cortex - name: cortex repository: oci://ghcr.io/cobaltcore-dev/cortex/charts - version: 0.6.7 + version: 0.6.8 # Owner info adds a configmap to the kubernetes cluster with information on # the service owner. This makes it easier to find out who to contact in case diff --git a/helm/library/cortex-postgres/Chart.yaml b/helm/library/cortex-postgres/Chart.yaml index e6fc9e147..cfbed9775 100644 --- a/helm/library/cortex-postgres/Chart.yaml +++ b/helm/library/cortex-postgres/Chart.yaml @@ -5,5 +5,5 @@ apiVersion: v2 name: cortex-postgres description: Postgres setup for Cortex. type: application -version: 0.6.26 +version: 0.6.27 appVersion: "sha-dbe244dd" diff --git a/helm/library/cortex-shim/Chart.yaml b/helm/library/cortex-shim/Chart.yaml index 5e2dbaa5e..971de5e6b 100644 --- a/helm/library/cortex-shim/Chart.yaml +++ b/helm/library/cortex-shim/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: cortex-shim description: A Helm chart to distribute cortex shims. type: application -version: 0.1.31 +version: 0.1.32 appVersion: "sha-f73e47fa" icon: "https://example.com/icon.png" dependencies: [] diff --git a/helm/library/cortex/Chart.yaml b/helm/library/cortex/Chart.yaml index a588a39c6..31edd9ffd 100644 --- a/helm/library/cortex/Chart.yaml +++ b/helm/library/cortex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: cortex description: A Helm chart to distribute cortex. type: application -version: 0.6.7 +version: 0.6.8 appVersion: "sha-01f5a42b" icon: "https://example.com/icon.png" dependencies: []