Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metric names to fit metrics naming conventions #9821

Merged
merged 1 commit into from Aug 17, 2023

Conversation

sradco
Copy link
Contributor

@sradco sradco commented May 30, 2023

Signed-off-by: Shirly Radco sradco@redhat.com

What this PR does / why we need it:
This PR updated metrics names to meet the metrics naming conventions.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #9714

Special notes for your reviewer:

Release note:

Deprecation notice for the metrics listed in the PR. Please update your systems to use the new metrics names.

|kubevirt_migrate_vmi_failed | kubevirt_vmi_migrations_failed|
|kubevirt_migrate_vmi_succeeded | kubevirt_vmi_migrations_succeeded|
|kubevirt_migrate_vmi_pending_count | kubevirt_vmi_migrations_pending|
|kubevirt_migrate_vmi_running_count | kubevirt_vmi_migrations_running|
|kubevirt_migrate_vmi_scheduling_count | kubevirt_vmi_migrations_scheduling|
|kubevirt_vmi_filesystem_capacity_bytes_total | kubevirt_vmi_filesystem_capacity_bytes|
|kubevirt_vmi_memory_domain_bytes_total | kubevirt_vmi_memory_domain_bytes|
|kubevirt_vmi_memory_pgmajfault | kubevirt_vmi_memory_pgmajfault_total|
|kubevirt_vmi_memory_pgminfault | kubevirt_vmi_memory_pgminfault_total|
|kubevirt_vmi_memory_swap_in_traffic_bytes_total | kubevirt_vmi_memory_swap_in_traffic_bytes|
|kubevirt_vmi_memory_swap_out_traffic_bytes_total | kubevirt_vmi_memory_swap_out_traffic_bytes|
|kubevirt_vmi_outdated_count | kubevirt_vmi_number_of_outdated|
|kubevirt_vmi_storage_flush_times_ms_total | kubevirt_vmi_storage_flush_times_seconds_total|
|kubevirt_vmi_storage_read_times_ms_total | kubevirt_vmi_storage_read_times_seconds_total|
|kubevirt_vmi_storage_write_times_ms_total | kubevirt_vmi_storage_write_times_seconds_total|
|kubevirt_vmi_vcpu_seconds | kubevirt_vmi_vcpu_seconds_total|
|kubevirt_vmi_vcpu_wait_seconds | kubevirt_vmi_vcpu_wait_seconds_total|
|kubevirt_vmsnapshot_disks_restored_from_source_total | kubevirt_vmsnapshot_disks_restored_from_source|
|kubevirt_allocatable_nodes_count | kubevirt_allocatable_nodes|
|kubevirt_kvm_available_nodes_count | kubevirt_nodes_with_kvm|
|kubevirt_virt_api_up_total | kubevirt_virt_api_up|
|kubevirt_virt_controller_ready_total | kubevirt_virt_controller_ready|
|kubevirt_virt_controller_ready | kubevirt_virt_controller_ready_status|
|kubevirt_virt_controller_up_total | kubevirt_virt_controller_up|
|kubevirt_virt_handler_up_total | kubevirt_virt_handler_up|
|kubevirt_virt_operator_leading_total | kubevirt_virt_operator_leading|
|kubevirt_virt_operator_leading | kubevirt_virt_operator_leading_status|
|kubevirt_virt_operator_ready_total | kubevirt_virt_operator_ready|
|kubevirt_virt_operator_ready | kubevirt_virt_operator_ready_status|
|kubevirt_virt_operator_up_total | kubevirt_virt_operator_up|

@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. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L area/monitoring labels May 30, 2023
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 30, 2023
@sradco
Copy link
Contributor Author

sradco commented May 30, 2023

@machadovilaca @assafad @avlitman Please review

@sradco
Copy link
Contributor Author

sradco commented May 30, 2023

/retest-required

@sradco
Copy link
Contributor Author

sradco commented May 30, 2023

/retest-required

@avlitman
Copy link
Contributor

avlitman commented May 30, 2023

Hi @sradco I'm not sure how it happened since I rebased few times before running the linter but my fork was not up to date so I missed some new metrics that also failing the linter.
The linter output after this changes is:
kubevirt_allocatable_nodes_count: non-histogram and non-summary metrics should not have "_count" suffix
kubevirt_kvm_available_nodes_count: non-histogram and non-summary metrics should not have "_count" suffix
kubevirt_virt_api_up_total: non-counter metrics should not have "_total" suffix
kubevirt_virt_controller_ready_total: non-counter metrics should not have "_total" suffix
kubevirt_virt_controller_up_total: non-counter metrics should not have "_total" suffix
kubevirt_virt_handler_up_total: non-counter metrics should not have "_total" suffix
kubevirt_virt_operator_leading_total: non-counter metrics should not have "_total" suffix
kubevirt_virt_operator_ready_total: non-counter metrics should not have "_total" suffix
kubevirt_virt_operator_up_total: non-counter metrics should not have "_total" suffix
kubevirt_vmi_phase_count: non-histogram and non-summary metrics should not have "_count" suffix

so needs to update this names as well:
kubevirt_allocatable_nodes_count: kubevirt_number_of_allocatable_nodes
kubevirt_kvm_available_nodes_count: kubevirt_kvm_number_of_available_nodes
not sure about this names all are Gauge's type so can't end with count/total:
kubevirt_virt_api_up_total
kubevirt_virt_controller_ready_total
kubevirt_virt_controller_up_total
kubevirt_virt_handler_up_total
kubevirt_virt_operator_leading_total
kubevirt_virt_operator_ready_total
kubevirt_virt_operator_up_total
kubevirt_vmi_phase_count: kubevirt_vmi_number_of_phases or kubevirt_vmi_number_of_phase

@sradco
Copy link
Contributor Author

sradco commented Jun 1, 2023

@avlitman please open the new metrics names that needs update in a separate issue, for an easier review.
Thank you.

@avlitman
Copy link
Contributor

avlitman commented Jun 1, 2023

@avlitman please open the new metrics names that needs update in a separate issue, for an easier review. Thank you.

New issue: #9836
New bug: https://bugzilla.redhat.com/show_bug.cgi?id=2211671

Comment on lines 691 to 891
},
MType: prometheusv1.MetricTypeGauge,
Description: "Total VM filesystem capacity in bytes. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_memory_domain_bytes_total",
Expr: intstr.FromString("kubevirt_vmi_memory_domain_bytes"),
},
MType: prometheusv1.MetricTypeGauge,
Description: "The amount of memory in bytes allocated to the domain. The `memory` value in domain xml file. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_memory_pgmajfault",
Expr: intstr.FromString("kubevirt_vmi_memory_pgmajfault_total"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "The number of page faults when disk IO was required. Page faults occur when a process makes a valid access to virtual memory that is not available. When servicing the page fault, if disk IO is required, it is considered as major fault. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_memory_pgminfault",
Expr: intstr.FromString("kubevirt_vmi_memory_pgminfault_total"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "The number of other page faults, when disk IO was not required. Page faults occur when a process makes a valid access to virtual memory that is not available. When servicing the page fault, if disk IO is NOT required, it is considered as minor fault. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_memory_swap_in_traffic_bytes_total",
Expr: intstr.FromString("kubevirt_vmi_memory_swap_in_traffic_bytes"),
},
MType: prometheusv1.MetricTypeGauge,
Description: "The total amount of data read from swap space of the guest in bytes. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_memory_swap_out_traffic_bytes_total",
Expr: intstr.FromString("kubevirt_vmi_memory_swap_out_traffic_bytes"),
},
MType: prometheusv1.MetricTypeGauge,
Description: "The total amount of memory written out to swap space of the guest in bytes. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_outdated_count",
Expr: intstr.FromString("kubevirt_vmi_number_of_outdated"),
},
MType: prometheusv1.MetricTypeGauge,
Description: "Indication for the total number of VirtualMachineInstance workloads that are not running within the most up-to-date version of the virt-launcher environment. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_storage_flush_times_ms_total",
Expr: intstr.FromString("kubevirt_vmi_storage_flush_times_seconds_total * 1000"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "Total time (ms) spent on cache flushing. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_storage_read_times_ms_total",
Expr: intstr.FromString("kubevirt_vmi_storage_read_times_ms_total * 1000"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "Total time (ms) spent on read operations. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_storage_write_times_ms_total",
Expr: intstr.FromString("kubevirt_vmi_storage_write_times_seconds_total * 1000"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "Total time (ms) spent on write operations. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_vcpu_seconds",
Expr: intstr.FromString("kubevirt_vmi_vcpu_seconds_total"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "Total amount of time spent in each state by each vcpu (cpu_time excluding hypervisor time). Where `id` is the vcpu identifier and `state` can be one of the following: [`OFFLINE`, `RUNNING`, `BLOCKED`]. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmi_vcpu_wait_seconds",
Expr: intstr.FromString("kubevirt_vmi_vcpu_wait_seconds_total"),
},
MType: prometheusv1.MetricTypeCounter,
Description: "Amount of time spent by each vcpu while waiting on I/O. [Deprecated]",
},
{
Rule: v1.Rule{
Record: "kubevirt_vmsnapshot_disks_restored_from_source_total",
Expr: intstr.FromString("kubevirt_vmsnapshot_disks_restored_from_source"),
},
MType: prometheusv1.MetricTypeGauge,
Description: "Returns the total number of virtual machine disks restored from the source virtual machine. [Deprecated]",
},
Copy link
Member

Choose a reason for hiding this comment

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

maybe can we move these to a separate function, maybe GetDeprecatedRecordingRules, to have a clear distinction for the deprecated items?

maybe even somehow include the last version they were not deprecated -> GetDeprecatedRecordingRulesAfterRelease59

that would make it easier to track the metrics to completely remove after 2 minor releases or something, and it would be very simple to remove them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the PR so that the new metric names will be the recording rules and in 2 versions we would replace the metric names and remove the recording rules.
I did this since the help text is not visible for recording rule, only for metrics.

@sradco sradco force-pushed the update_metrics_names branch 2 times, most recently from 8c5fe6a to c335d1a Compare June 12, 2023 20:06
@sradco
Copy link
Contributor Author

sradco commented Jun 12, 2023

/retest-required

1 similar comment
@sradco
Copy link
Contributor Author

sradco commented Jun 14, 2023

/retest-required

@sradco
Copy link
Contributor Author

sradco commented Jun 14, 2023

/retest-required

pull-kubevirt-code-lint isn't failing on something that is related to this PR.

@sradco
Copy link
Contributor Author

sradco commented Jun 14, 2023

@machadovilaca @vladikr @lyarwood Please review.

@lyarwood
Copy link
Member

I don't really have any comments on the new names but I've got a few nits below regarding the PR description and release note:

What this PR does / why we need it: This PR updated metrics names to meet the metrics naming conventions. The old metrics names will still be available in order to allow the users to update their dashboards, but will be deprecated in a few months.

I think you mean removed in a future release instead of deprecated right?

Release note:

Deprecation notice for the metrics listed in the PR. They will be removed in the next releases. Please update your systems to use the new metrics names.

Can we list the deprecated metrics in the docs somewhere and link to that here? Referencing the PR isn't helpful IMHO.

Also as above I'd change this to They will be removed in a future release.

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 5, 2023
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 23, 2023
sradco added a commit to sradco/user-guide that referenced this pull request Jul 23, 2023
Updated kubevirt_vmi_vcpu_seconds to
kubevirt_vmi_vcpu_seconds_total based on
PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
@avlitman
Copy link
Contributor

/retest-required

@sradco
Copy link
Contributor Author

sradco commented Aug 17, 2023

@enp0s3 @avlitman, can you please cherrypick this PR to 4.14 after it is merged?

@avlitman
Copy link
Contributor

/retest-required

1 similar comment
@enp0s3
Copy link
Contributor

enp0s3 commented Aug 17, 2023

/retest-required

@kubevirt-bot
Copy link
Contributor

kubevirt-bot commented Aug 17, 2023

@sradco: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubevirt-check-tests-for-flakes dfdd479 link false /test pull-kubevirt-check-tests-for-flakes

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/test-infra repository. I understand the commands that are listed here.

@enp0s3
Copy link
Contributor

enp0s3 commented Aug 17, 2023

@akalenyu @awels @ShellyKa13 Hey! can you please keep me honest about the sig-storage being flaky on this PR? I saw it fail 4 times in a row, each time on a different test.

@awels
Copy link
Member

awels commented Aug 17, 2023

Not aware of any particular flaky test in the storage lane.

@avlitman
Copy link
Contributor

/retest-required

@enp0s3
Copy link
Contributor

enp0s3 commented Aug 17, 2023

@avlitman Lets wait with the retest, I will either override it or there is a real issue, one way or another we need assistance from the storage folks.

@akalenyu
Copy link
Contributor

@akalenyu @awels @ShellyKa13 Hey! can you please keep me honest about the sig-storage being flaky on this PR? I saw it fail 4 times in a row, each time on a different test.

So analyzing the failing lanes:
one of them fails due to cluster-down err:

09:15:10: Error response from daemon: getting graph driver info "3d21579dd692968d8dcfea11258427da8fa537f7255f519fbbfe17feb0e8116b": readlink /var/lib/containers/storage/overlay/l/WTISSZB7Y4M2FBXJNTY2VDHGQV: no such file or directory
make: *** [Makefile:153: cluster-down] Error 1

The other 3 runs have real flakes:
NFS pod test

This other flake
Seems like the importer pod's init container is failing to start with no interesting events

And last one is this
Not sure how we get 502, usually that would happen a lot with kubectl port forward, but we're not doing that anymore
and using a NodePort instead

@kubevirt-commenter-bot
Copy link

/retest-required
This bot automatically retries required jobs that failed/flaked on approved PRs.
Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@kubevirt-bot kubevirt-bot merged commit 7765946 into kubevirt:main Aug 17, 2023
37 of 38 checks passed
@sradco
Copy link
Contributor Author

sradco commented Aug 19, 2023

@avlitman @enp0s3 please backport this PR to 4.14

@avlitman
Copy link
Contributor

@enp0s3 Should I cherry-pick for both 0.59 and 1.0 like in this latest Joao's re-naming metrics pr: #10138?

@enp0s3
Copy link
Contributor

enp0s3 commented Aug 21, 2023

/cherry-pick release-1.0

@kubevirt-bot
Copy link
Contributor

@enp0s3: #9821 failed to apply on top of branch "release-1.0":

Applying: Update metric names to fit metrics naming conventions
Using index info to reconstruct a base tree...
M	docs/metrics.md
M	pkg/monitoring/domainstats/prometheus/prometheus.go
M	pkg/monitoring/domainstats/prometheus/prometheus_test.go
M	pkg/virt-operator/application.go
M	pkg/virt-operator/resource/generate/components/prometheus.go
A	tests/infrastructure/prometheus.go
M	tools/doc-generator/doc-generator.go
M	tools/prom-metrics-collector/metrics_collector.go
Falling back to patching base and 3-way merge...
Auto-merging tools/prom-metrics-collector/metrics_collector.go
CONFLICT (content): Merge conflict in tools/prom-metrics-collector/metrics_collector.go
Auto-merging tools/doc-generator/doc-generator.go
CONFLICT (content): Merge conflict in tools/doc-generator/doc-generator.go
CONFLICT (modify/delete): tests/infrastructure/prometheus.go deleted in HEAD and modified in Update metric names to fit metrics naming conventions. Version Update metric names to fit metrics naming conventions of tests/infrastructure/prometheus.go left in tree.
Auto-merging pkg/virt-operator/resource/generate/components/prometheus.go
Auto-merging pkg/virt-operator/application.go
Auto-merging pkg/monitoring/domainstats/prometheus/prometheus_test.go
Auto-merging pkg/monitoring/domainstats/prometheus/prometheus.go
CONFLICT (content): Merge conflict in pkg/monitoring/domainstats/prometheus/prometheus.go
Auto-merging docs/metrics.md
CONFLICT (content): Merge conflict in docs/metrics.md
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Update metric names to fit metrics naming conventions
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.0

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/test-infra repository.

@enp0s3
Copy link
Contributor

enp0s3 commented Aug 21, 2023

@avlitman @assafad @machadovilaca Hi, please create a manual backport PR.

sradco added a commit to sradco/openshift-docs that referenced this pull request Oct 22, 2023
Updated kubevirt metrics names:

kubevirt_vmi_vcpu_wait_seconds to
kubevirt_vmi_vcpu_wait_seconds_total

kubevirt_vmsnapshot_disks_restored_from_source_total to
kubevirt_vmsnapshot_disks_restored_from_source

kubevirt_vmi_memory_swap_in_traffic_bytes_total to
kubevirt_vmi_memory_swap_in_traffic_bytes

kubevirt_vmi_memory_swap_out_traffic_bytes_total to
kubevirt_vmi_memory_swap_out_traffic_bytes

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
sradco added a commit to sradco/openshift-docs that referenced this pull request Oct 22, 2023
Updated live migration metrics names

kubevirt_migrate_vmi_pending_count to
kubevirt_vmi_migrations_pending

kubevirt_migrate_vmi_scheduling_count to
kubevirt_vmi_migrations_scheduling

kubevirt_migrate_vmi_running_count to
kubevirt_vmi_migrations_running

kubevirt_migrate_vmi_succeeded to
kubevirt_vmi_migrations_succeeded

kubevirt_migrate_vmi_failed to
kubevirt_vmi_migrations_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
sradco added a commit to sradco/openshift-docs that referenced this pull request Oct 22, 2023
Updated live migration metrics names

kubevirt_migrate_vmi_data_processed_bytes to kubevirt_vmi_migration_data_processed_bytes

kubevirt_migrate_vmi_data_remaining_bytes to kubevirt_vmi_migration_data_remaining_bytes

kubevirt_migrate_vmi_dirty_memory_rate_bytes to kubevirt_vmi_migration_memory_transfer_rate_bytes

kubevirt_migrate_vmi_pending_count to kubevirt_vmi_migrations_in_pending_phase

kubevirt_migrate_vmi_scheduling_count to kubevirt_vmi_migrations_in_scheduling_phase

kubevirt_migrate_vmi_running_count to kubevirt_vmi_migrations_in_running_phase

kubevirt_migrate_vmi_succeeded to kubevirt_vmi_migration_succeeded

kubevirt_migrate_vmi_failed to kubevirt_vmi_migration_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
sradco added a commit to sradco/openshift-docs that referenced this pull request Oct 22, 2023
Updated kubevirt metrics names:

kubevirt_vmi_vcpu_wait_seconds to kubevirt_vmi_vcpu_wait_seconds_total

kubevirt_vmsnapshot_disks_restored_from_source_total to kubevirt_vmsnapshot_disks_restored_from_source

kubevirt_vmi_memory_swap_in_traffic_bytes_total to kubevirt_vmi_memory_swap_in_traffic_bytes

kubevirt_vmi_memory_swap_out_traffic_bytes_total to kubevirt_vmi_memory_swap_out_traffic_bytes

kubevirt_migrate_vmi_data_processed_bytes to kubevirt_vmi_migration_data_processed_bytes

kubevirt_migrate_vmi_data_remaining_bytes to kubevirt_vmi_migration_data_remaining_bytes

kubevirt_migrate_vmi_dirty_memory_rate_bytes to kubevirt_vmi_migration_memory_transfer_rate_bytes

kubevirt_migrate_vmi_pending_count to kubevirt_vmi_migrations_in_pending_phase

kubevirt_migrate_vmi_scheduling_count to kubevirt_vmi_migrations_in_scheduling_phase

kubevirt_migrate_vmi_running_count to kubevirt_vmi_migrations_in_running_phase

kubevirt_migrate_vmi_succeeded to kubevirt_vmi_migration_succeeded

kubevirt_migrate_vmi_failed to kubevirt_vmi_migration_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/openshift-docs that referenced this pull request Oct 30, 2023
Updated kubevirt metrics names:

kubevirt_vmi_vcpu_wait_seconds to kubevirt_vmi_vcpu_wait_seconds_total

kubevirt_vmsnapshot_disks_restored_from_source_total to kubevirt_vmsnapshot_disks_restored_from_source

kubevirt_vmi_memory_swap_in_traffic_bytes_total to kubevirt_vmi_memory_swap_in_traffic_bytes

kubevirt_vmi_memory_swap_out_traffic_bytes_total to kubevirt_vmi_memory_swap_out_traffic_bytes

kubevirt_migrate_vmi_data_processed_bytes to kubevirt_vmi_migration_data_processed_bytes

kubevirt_migrate_vmi_data_remaining_bytes to kubevirt_vmi_migration_data_remaining_bytes

kubevirt_migrate_vmi_dirty_memory_rate_bytes to kubevirt_vmi_migration_memory_transfer_rate_bytes

kubevirt_migrate_vmi_pending_count to kubevirt_vmi_migrations_in_pending_phase

kubevirt_migrate_vmi_scheduling_count to kubevirt_vmi_migrations_in_scheduling_phase

kubevirt_migrate_vmi_running_count to kubevirt_vmi_migrations_in_running_phase

kubevirt_migrate_vmi_succeeded to kubevirt_vmi_migration_succeeded

kubevirt_migrate_vmi_failed to kubevirt_vmi_migration_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
mjahoda pushed a commit to mjahoda/openshift-docs that referenced this pull request Oct 31, 2023
Updated kubevirt metrics names:

kubevirt_vmi_vcpu_wait_seconds to kubevirt_vmi_vcpu_wait_seconds_total

kubevirt_vmsnapshot_disks_restored_from_source_total to kubevirt_vmsnapshot_disks_restored_from_source

kubevirt_vmi_memory_swap_in_traffic_bytes_total to kubevirt_vmi_memory_swap_in_traffic_bytes

kubevirt_vmi_memory_swap_out_traffic_bytes_total to kubevirt_vmi_memory_swap_out_traffic_bytes

kubevirt_migrate_vmi_data_processed_bytes to kubevirt_vmi_migration_data_processed_bytes

kubevirt_migrate_vmi_data_remaining_bytes to kubevirt_vmi_migration_data_remaining_bytes

kubevirt_migrate_vmi_dirty_memory_rate_bytes to kubevirt_vmi_migration_memory_transfer_rate_bytes

kubevirt_migrate_vmi_pending_count to kubevirt_vmi_migrations_in_pending_phase

kubevirt_migrate_vmi_scheduling_count to kubevirt_vmi_migrations_in_scheduling_phase

kubevirt_migrate_vmi_running_count to kubevirt_vmi_migrations_in_running_phase

kubevirt_migrate_vmi_succeeded to kubevirt_vmi_migration_succeeded

kubevirt_migrate_vmi_failed to kubevirt_vmi_migration_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
kubevirt-bot pushed a commit to kubevirt/user-guide that referenced this pull request Nov 14, 2023
Updated kubevirt_vmi_vcpu_seconds to
kubevirt_vmi_vcpu_seconds_total based on
PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
GroceryBoyJr pushed a commit to GroceryBoyJr/openshift-docs that referenced this pull request Nov 17, 2023
Updated kubevirt metrics names:

kubevirt_vmi_vcpu_wait_seconds to kubevirt_vmi_vcpu_wait_seconds_total

kubevirt_vmsnapshot_disks_restored_from_source_total to kubevirt_vmsnapshot_disks_restored_from_source

kubevirt_vmi_memory_swap_in_traffic_bytes_total to kubevirt_vmi_memory_swap_in_traffic_bytes

kubevirt_vmi_memory_swap_out_traffic_bytes_total to kubevirt_vmi_memory_swap_out_traffic_bytes

kubevirt_migrate_vmi_data_processed_bytes to kubevirt_vmi_migration_data_processed_bytes

kubevirt_migrate_vmi_data_remaining_bytes to kubevirt_vmi_migration_data_remaining_bytes

kubevirt_migrate_vmi_dirty_memory_rate_bytes to kubevirt_vmi_migration_memory_transfer_rate_bytes

kubevirt_migrate_vmi_pending_count to kubevirt_vmi_migrations_in_pending_phase

kubevirt_migrate_vmi_scheduling_count to kubevirt_vmi_migrations_in_scheduling_phase

kubevirt_migrate_vmi_running_count to kubevirt_vmi_migrations_in_running_phase

kubevirt_migrate_vmi_succeeded to kubevirt_vmi_migration_succeeded

kubevirt_migrate_vmi_failed to kubevirt_vmi_migration_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
DCChadwick pushed a commit to DCChadwick/openshift-docs that referenced this pull request Nov 28, 2023
Updated kubevirt metrics names:

kubevirt_vmi_vcpu_wait_seconds to kubevirt_vmi_vcpu_wait_seconds_total

kubevirt_vmsnapshot_disks_restored_from_source_total to kubevirt_vmsnapshot_disks_restored_from_source

kubevirt_vmi_memory_swap_in_traffic_bytes_total to kubevirt_vmi_memory_swap_in_traffic_bytes

kubevirt_vmi_memory_swap_out_traffic_bytes_total to kubevirt_vmi_memory_swap_out_traffic_bytes

kubevirt_migrate_vmi_data_processed_bytes to kubevirt_vmi_migration_data_processed_bytes

kubevirt_migrate_vmi_data_remaining_bytes to kubevirt_vmi_migration_data_remaining_bytes

kubevirt_migrate_vmi_dirty_memory_rate_bytes to kubevirt_vmi_migration_memory_transfer_rate_bytes

kubevirt_migrate_vmi_pending_count to kubevirt_vmi_migrations_in_pending_phase

kubevirt_migrate_vmi_scheduling_count to kubevirt_vmi_migrations_in_scheduling_phase

kubevirt_migrate_vmi_running_count to kubevirt_vmi_migrations_in_running_phase

kubevirt_migrate_vmi_succeeded to kubevirt_vmi_migration_succeeded

kubevirt_migrate_vmi_failed to kubevirt_vmi_migration_failed

Based on PR kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
sradco added a commit to kubevirt/monitoring that referenced this pull request May 1, 2024
Update kubevirt-top-consumers dashboard.
Replace:
kubevirt_vmi_vcpu_wait_seconds -> kubevirt_vmi_vcpu_wait_seconds_total
kubevirt_vmi_memory_swap_in_traffic_bytes_total -> kubevirt_vmi_memory_swap_in_traffic_bytes

Since the vCPU Wait by Virtual Machines and Memory Swap Traffic by Virtual Machines graphs are also empty on CNV engineering due to the changes in: kubevirt/kubevirt#9821

Signed-off-by: Shirly Radco <sradco@redhat.com>
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. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics names failed promlint linter
10 participants