Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@machadovilaca
Copy link
Member

manual cherry-pick of #14805

Before this PR:

kubevirt_vmi_info and kubevirt_vm_info should not report for missing labels. Like workload, flavor, instance_type, and preference.

This complicates the dashboards, since we don't want to show value for labels that don't exist.

After this PR:

We only report labels if we have data for them

Fixes #

jira-ticket: https://issues.redhat.com/browse/CNV-62761

  • Partially addresses #
    -->

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Special notes for your reviewer

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note

Replace metric labels' none values with empty values

@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Jun 11, 2025
@kubevirt-bot kubevirt-bot added size/XL sig/observability Denotes an issue or PR that relates to observability. labels Jun 11, 2025
@machadovilaca
Copy link
Member Author

/cc @sradco @enp0s3

@kubevirt-bot kubevirt-bot requested review from enp0s3 and sradco June 11, 2025 17:17
const (
none = "<none>"
none = "" // Empty values will be ignored by operator-observability and label will not be created
other = "<other>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "other"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom instance types and preferences not whitelisted (not provided by neither kubevirt or redhat) to reduce cardinality of the metrics

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update to other.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a backport, should be done now in different prs/jira issues

@machadovilaca
Copy link
Member Author

/test pull-kubevirt-build

@kubevirt-bot
Copy link
Contributor

@machadovilaca: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

/test pull-kubevirt-apidocs-1.5
/test pull-kubevirt-build-1.5
/test pull-kubevirt-build-arm64-1.5
/test pull-kubevirt-build-s390x-1.5
/test pull-kubevirt-check-unassigned-tests-1.5
/test pull-kubevirt-client-python-1.5
/test pull-kubevirt-code-lint-1.5
/test pull-kubevirt-e2e-k8s-1.30-sig-compute-1.5
/test pull-kubevirt-e2e-k8s-1.30-sig-network-1.5
/test pull-kubevirt-e2e-k8s-1.30-sig-operator-1.5
/test pull-kubevirt-e2e-k8s-1.30-sig-storage-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-compute-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-network-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-operator-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-performance-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-storage-1.5
/test pull-kubevirt-e2e-k8s-1.32-ipv6-sig-network-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-compute-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-compute-migrations-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-compute-serial-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-network-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-operator-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-storage-1.5
/test pull-kubevirt-e2e-kind-1.30-vgpu-1.5
/test pull-kubevirt-e2e-kind-sriov-1.5
/test pull-kubevirt-e2e-windows2016-1.5
/test pull-kubevirt-generate-1.5
/test pull-kubevirt-manifests-1.5
/test pull-kubevirt-prom-rules-verify-1.5
/test pull-kubevirt-unit-test-1.5
/test pull-kubevirt-unit-test-s390x-1.5
/test pull-kubevirt-verify-go-mod-1.5

The following commands are available to trigger optional jobs:

/test build-kubevirt-builder-1.5
/test pull-kubevirt-check-tests-for-flakes-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-compute-root-1.5
/test pull-kubevirt-e2e-k8s-1.31-sig-storage-root-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-compute-realtime-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-network-multus-v4-1.5
/test pull-kubevirt-e2e-k8s-1.32-sig-performance-kwok-1.5
/test pull-kubevirt-e2e-k8s-1.32-single-node-1.5
/test pull-kubevirt-e2e-k8s-1.32-swap-enabled-1.5
/test pull-kubevirt-fuzz-1.5
/test pull-kubevirt-gosec-1.5
/test pull-kubevirt-metrics-lint-1.5
/test pull-kubevirt-unit-test-arm64-1.5
/test pull-kubevirt-verify-rpms-1.5

Use /test all to run the following jobs that were automatically triggered:

pull-kubevirt-apidocs-1.5
pull-kubevirt-build-1.5
pull-kubevirt-build-arm64-1.5
pull-kubevirt-build-s390x-1.5
pull-kubevirt-check-tests-for-flakes-1.5
pull-kubevirt-check-unassigned-tests-1.5
pull-kubevirt-client-python-1.5
pull-kubevirt-code-lint-1.5
pull-kubevirt-e2e-k8s-1.30-sig-compute-1.5
pull-kubevirt-e2e-k8s-1.30-sig-network-1.5
pull-kubevirt-e2e-k8s-1.30-sig-operator-1.5
pull-kubevirt-e2e-k8s-1.30-sig-storage-1.5
pull-kubevirt-e2e-k8s-1.31-sig-compute-1.5
pull-kubevirt-e2e-k8s-1.31-sig-monitoring-1.5
pull-kubevirt-e2e-k8s-1.31-sig-network-1.5
pull-kubevirt-e2e-k8s-1.31-sig-operator-1.5
pull-kubevirt-e2e-k8s-1.31-sig-performance-1.5
pull-kubevirt-e2e-k8s-1.31-sig-storage-1.5
pull-kubevirt-e2e-k8s-1.32-ipv6-sig-network-1.5
pull-kubevirt-e2e-k8s-1.32-sig-compute-1.5
pull-kubevirt-e2e-k8s-1.32-sig-compute-migrations-1.5
pull-kubevirt-e2e-k8s-1.32-sig-compute-serial-1.5
pull-kubevirt-e2e-k8s-1.32-sig-network-1.5
pull-kubevirt-e2e-k8s-1.32-sig-operator-1.5
pull-kubevirt-e2e-k8s-1.32-sig-storage-1.5
pull-kubevirt-e2e-kind-1.30-vgpu-1.5
pull-kubevirt-e2e-kind-sriov-1.5
pull-kubevirt-e2e-windows2016-1.5
pull-kubevirt-fuzz-1.5
pull-kubevirt-generate-1.5
pull-kubevirt-manifests-1.5
pull-kubevirt-prom-rules-verify-1.5
pull-kubevirt-unit-test-1.5
pull-kubevirt-unit-test-arm64-1.5
pull-kubevirt-unit-test-s390x-1.5
pull-kubevirt-verify-go-mod-1.5
Details

In response to this:

/test pull-kubevirt-build

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@machadovilaca
Copy link
Member Author

/test pull-kubevirt-build-1.5

@sradco
Copy link
Contributor

sradco commented Jun 23, 2025

/approve

@avlitman please review

@machadovilaca machadovilaca changed the title Replace metric labels' none values with empty values [release-1.5] Replace metric labels' none values with empty values Jul 7, 2025
@enp0s3
Copy link
Contributor

enp0s3 commented Jul 7, 2025

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enp0s3, sradco

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 7, 2025
@machadovilaca
Copy link
Member Author

/lgtm

@kubevirt-bot
Copy link
Contributor

@machadovilaca: you cannot LGTM your own PR.

Details

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sradco
Copy link
Contributor

sradco commented Jul 7, 2025

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 7, 2025
@brianmcarey
Copy link
Member

/test pull-kubevirt-unit-test-s390x-1.5

@kubevirt-bot kubevirt-bot merged commit af7734c into kubevirt:release-1.5 Jul 7, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/monitoring dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/observability Denotes an issue or PR that relates to observability. size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants