Skip to content

Backport: chore(observability): fix cpu core usage gauge#2295

Merged
deckhouse-BOaTswain merged 1 commit into
release-1.8from
cherry-pick-release-1.8-6d67100331f6ff62a496f9a0c1c3d41d8c19cb4f
Apr 28, 2026
Merged

Backport: chore(observability): fix cpu core usage gauge#2295
deckhouse-BOaTswain merged 1 commit into
release-1.8from
cherry-pick-release-1.8-6d67100331f6ff62a496f9a0c1c3d41d8c19cb4f

Conversation

@deckhouse-BOaTswain
Copy link
Copy Markdown
Contributor

Description

Adjust the VM CPU usage dashboard query to use the hypervisor CPU usage metric and deduplicate replicated virtualmachine_cpu_cores series exposed by multiple virtualization-controller pods in HA clusters. Also update the panel description to remove the CPU reservation mention.

Why do we need it, and what problem does it solve?

In multi-master clusters, d8_virtualization_virtualmachine_cpu_cores is exposed by each virtualization-controller replica. Using the raw gauge in the dashboard query can multiply the denominator depending on the number of controller pods and show misleading CPU usage values. This change makes the panel resilient to duplicated HA scrape targets and aligns the calculation with the hypervisor CPU usage metric.

What is the expected result?

  1. Open the VM dashboard for a virtual machine in a multi-master cluster.
  2. Check the CPU usage panel.
  3. Verify that the percentage is no longer affected by the number of virtualization-controller replicas.
  4. Verify that single-master clusters continue to show the expected value.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: observability
type: fix
summary: "Fix VM CPU usage dashboard calculation in HA clusters by deduplicating replicated controller metrics."
impact_level: low

Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
@deckhouse-BOaTswain deckhouse-BOaTswain merged commit 47b9b56 into release-1.8 Apr 28, 2026
1 check passed
@deckhouse-BOaTswain deckhouse-BOaTswain deleted the cherry-pick-release-1.8-6d67100331f6ff62a496f9a0c1c3d41d8c19cb4f branch April 28, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants